Skip to content

Toggle Email Verification ​

Toggle the authenticated user's email verification status. Only available when sandbox mode is enabled (APP_SANDBOX=true) — and never in production, regardless of the flag.

HTTP Request ​

POST /api/v1/sandbox/me/email-verification/toggle

Response ​

200 OK

Returns a message indicating the new email verification status.

json
{
  "data": {
    "message": "Email is now verified."
  }
}

Or when toggled off:

json
{
  "data": {
    "message": "Email is now unverified."
  }
}

Error Handling ​

401 Unauthorized

json
{
  "message": "Unauthenticated."
}

404 Not Found — Sandbox mode is not enabled, or the environment is production.

429 Too Many Requests — more than 120 requests per minute for this user.