Skip to main content
POST
/
api
/
auth
/
email
/
verify
{
  "user": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "[email protected]",
    "name": "<string>",
    "emailVerified": true,
    "identities": [
      {
        "provider": "<string>"
      }
    ],
    "providerType": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "accessToken": "<string>",
  "redirectTo": "<string>"
}

Body

application/json
otp
string
required

Either a 6-digit numeric code or a 64-character hex token from magic link

Example:

"123456"

email
string<email>

Required for numeric code verification, omit for magic link verification

Response

Email verified successfully, session created

user
object
accessToken
string

JWT authentication token

redirectTo
string<uri>

Optional URL to redirect user after verification (only present if configured)