cURL
curl --request POST \ --url https://{defaultHost}/v1/auth/{app_id}/otps/login \ --header 'Authorization: Bearer <token>' \ --header 'X-Authorization: <api-key>'
{ "otp": { "success": true, "sent_at": "2023-11-07T05:31:56Z", "id": "<string>" }, "user_id": "<string>", "user_meta_errors": {} }
Send a one-time passcode to the user’s phone number via SMS or email. Creates a new user if the identifier doesn’t exist.
API Secret token
User Access token
App ID
OTP sent successfully
Show child attributes
Challenge token (used as user_id for backwards compatibility with SDK)
Validation errors for user metadata if provided
Was this page helpful?