palbaseDocs

Palbase Auth API · API

POST/auth/verify-email

Verify email address

Completes the email verification challenge issued at signup. The request body must carry either token (link-based) or both code and email (OTP-based) — never both. After 5 failed OTP attempts the verification token is invalidated.

A guest's conversion (POST /auth/anonymous/convert) is completed here by the link's token only — its code is entered in the guest's own session at POST /auth/anonymous/convert/verify; a code with an address here confirms only an account's address. 409 email_exists when another account took the address meanwhile; the guest stays one.

Called by your app, with the publishable key.

Request body

codestring · optional
emailstring (email) · optional
tokenstring · optional
curl
curl -X POST "https://<your-ref>.palbase.studio/auth/verify-email" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "content-type: application/json" \
  -d '{"code":"string","email":"user@example.com","token":"string"}'

Responses

200Email verified

400Validation failed or required field missing

409Conflict with current resource state (duplicate, race)

429Rate limit exceeded

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation VerifyEmail of auth's contract.