Clara-Backend
  1. Auth
Clara-Backend
  • Clara-Backend
    • Get Started
    • Quickstart (Rest API)
    • Quickstart (MCP Server)
    • Auth
      • Register
        POST
      • Google OAuth
        POST
      • Login
        POST
      • Logout
        DELETE
      • Change Password
        PATCH
      • Send OTP
        POST
      • Activate
        POST
      • Enable 2FA
        POST
      • Disable 2FA
        DELETE
    • User
      • View
      • Update
    • API Key
      • View
      • Reset
    • Transaction
      • View All
      • View
    • Task
      • View All
      • View
    • Agent
      • Supported Attachments
      • Analysis
    • Stripe
      • Rate
      • Portal
      • Buy
    • Misc
      • Health
      • Version
  • Flask Backend Boilerplate
    • Get Started
    • Quickstart
    • Auth
      • Register
      • Google OAuth
      • Login
      • Logout
      • Change Password
      • Send OTP
      • Activate
      • Enable 2FA
      • Disable 2FA
    • User
      • View
      • Update
    • Transaction
      • View All
      • View
    • Stripe
      • Rate
      • Portal
      • Buy
    • Misc
      • Health
      • Version
  1. Auth

Send OTP

Prod Env
https://backend.crazi.co/api/v1
Prod Env
https://backend.crazi.co/api/v1
POST
https://backend.crazi.co/api/v1
/users/{user_email}/otp/{otp_type}
This endpoint lets a user send an OTP (code) for verification on Clara.
You can generate three types of OTP (code):
CHANGE_PASSWORD
TWO_FACTOR_AUTH
ACTIVATION

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Path Params

Responses

🟢201Success
application/json
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Resource Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://backend.crazi.co/api/v1/users/hello@crazi.co/otp/CHANGE_PASSWORD' \
--header 'Authorization: <api-key>'
Response Response Example
201 - Success
{
  "data": null,
  "message": "OTP sent successfully.",
  "status": "success"
}
Modified at 2025-11-27 01:48:25
Previous
Change Password
Next
Activate
Built with