Skip to main content
POST
/
auth
/
verify_user
Verify Email
curl --request POST \
  --url https://api.example.com/auth/verify_user

Verify Email

Verify a user’s email address using the token sent via email during registration.

Endpoint

POST /auth/verify_user

Authentication

No authentication required.

Request Body

FieldTypeRequiredDescription
emailstringYesUser’s email address
verification_tokenstringYesToken from the verification email

Example Request

curl -X POST https://api.app.shinzo.ai/auth/verify_user \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "verification_token": "abc123def456..."
  }'

Response

{
  "message": "Email verified successfully. You can now log in."
}

Status Codes

CodeDescription
200Email verified successfully
400Invalid request (missing fields, invalid token)
404User not found

Notes

  • Verification tokens are single-use and expire after a set period
  • If the token has expired, use the Resend Verification endpoint to request a new one
  • Users cannot log in until their email is verified