Skip to main content
POST
https://{yourDomain}
/
passwordless
/
verify
Verify
curl --request POST \
  --url https://{yourDomain}/passwordless/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "grant_type": "password",
  "client_id": "${account.clientId}",
  "connection": "email",
  "username": "USER_EMAIL_OR_PHONE",
  "password": "VERIFICATION_CODE",
  "redirect_uri": "https://yourapp.com/callback",
  "scope": "openid profile"
}
'

Authorizations

Authorization
string
header
required

Access token obtained from the authentication flow

Body

application/json
grant_type
string
required

Grant type, must be password.

Example:

"password"

client_id
string
required

The client_id of your application.

Example:

"${account.clientId}"

connection
enum<string>
required

Use sms or email (should be the same as POST /passwordless/start).

Available options:
email,
sms
Example:

"email"

username
string
required

The user's phone number if connection=sms, or the user's email if connection=email.

Example:

"USER_EMAIL_OR_PHONE"

password
string
required

The user's verification code.

Example:

"VERIFICATION_CODE"

redirect_uri
string
required

Callback URL registered with your application's Allowed Callback URLs.

Example:

"https://yourapp.com/callback"

scope
string

Use openid to get an ID Token, or openid profile email to include user profile information in the ID Token.

Example:

"openid profile"

Response

User authenticated successfully.