API ReferenceAuth
Send an OTP to the authenticated user's email for verification.
Pulls the destination from the bearer-token user — clients don't need to echo the email. Idempotent: if the email is already verified, the call returns `alreadyVerified: true` and skips sending.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/auth/verify-email/start"{ "data": { "sent": true, "alreadyVerified": false, "challengeId": "otc_01jq8z6m1n2p3q4r5s6t7u8v9w", "destination": "[email protected]", "channel": "email", "expiresAt": "2026-05-24T19:42:00.000Z", "resendAvailableAt": "2026-05-24T19:33:00.000Z" }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "RATE_LIMITED", "message": "Too many requests — slow down and retry after the indicated delay.", "retryAfterSeconds": 60 }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}Exchange a refresh token for a new access + refresh token pair. POST
Rotates the refresh token (single use): the supplied refresh token is revoked, a new access token + a new refresh token are minted. Clients should overwrite both stored tokens with what they receive here. Rate-limited per token to defeat replay floods.
Re-send the email verification OTP. Rate-limited. POST
Next Page