Skip to content

Toggle Email Verification

Toggle the authenticated user's email verification status. Only available when sandbox mode is enabled (APP_SANDBOX=true).

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.