Skip to main content
POST
/
auth
/
email
/
verify
Verify email login
curl --request POST \
  --url https://apiv2.example.com/auth/email/verify \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "nonce": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "code": "123456"
}
'
{
  "accessToken": "<string>",
  "tokenType": "Bearer",
  "expiresIn": 604800,
  "userId": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}

Body

application/json

Request to verify an email login by providing the verification code sent to the email address.

email
string<email>
required

The email address used to initiate the login.

nonce
string
required

The nonce returned from the start login request.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

code
string
required

The 6-digit verification code sent to the email address.

Example:

"123456"

Response

Login verified successfully. Returns access token for API authentication.

OAuth2-compatible token response containing the access token for authenticating API requests.

accessToken
string
required

JWT access token for authenticating API requests. Include in the Authorization header as "Bearer {accessToken}".

tokenType
enum<string>
required

The type of token issued. Always "Bearer" for JWT tokens.

Available options:
Bearer
Example:

"Bearer"

expiresIn
integer
required

Number of seconds until the access token expires.

Example:

604800

userId
string

The unique identifier of the authenticated user.

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"