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.
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": {}
}API Secret token
User Access token
App ID
Was this page helpful?