Authentication

Rememberizer provides several authentication endpoints to manage user accounts and sessions. This document outlines the available authentication APIs.

Sign Up

Example Requests

curl -X POST \
  https://api.rememberizer.ai/api/v1/auth/signup/ \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "secure_password",
    "name": "John Doe",
    "captcha": "recaptcha_response"
  }'

Replace recaptcha_response with an actual reCAPTCHA response.

Sign In

Example Requests

curl -X POST \
  https://api.rememberizer.ai/api/v1/auth/signin/ \
  -H "Content-Type: application/json" \
  -d '{
    "login": "[email protected]",
    "password": "secure_password",
    "captcha": "recaptcha_response"
  }'

Replace recaptcha_response with an actual reCAPTCHA response.

Email Verification

Example Requests

curl -X POST \
  https://api.rememberizer.ai/api/v1/auth/verify-email/ \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "verification_code": "123456"
  }'

Replace YOUR_JWT_TOKEN with your actual JWT token and use the verification code sent to your email.

Token Management

Example Requests

curl -X POST \
  https://api.rememberizer.ai/api/v1/auth/custom-refresh/ \
  -b "refresh_token=YOUR_REFRESH_TOKEN"

This endpoint uses cookies for authentication. The refresh token should be sent as a cookie.

Logout

Example Requests

curl -X POST \
  https://api.rememberizer.ai/api/v1/auth/custom-logout/

This endpoint will clear the authentication cookies.

Last updated