Authentication
Verify User (JSON)
Verify email/phone confirmation via POST with JSON response
POST
Verify email or phone confirmation via POST request with JSON response. This endpoint is useful when you want to handle verification programmatically without redirects.
This endpoint does not require authentication and returns JSON data instead of redirects.
Request Body
The type of verification being performed.Options:
signup- Email/phone confirmation after registrationrecovery- Password recovery verificationmagiclink- Magic link authenticationinvite- User invitation acceptanceemail_change- Email change confirmationsms- SMS OTP verification
The verification token sent via email or SMS.
Email address (required for certain verification types).
Phone number (required for SMS verification).
Password (required for some verification flows like password recovery).
Response
JWT access token for authenticating API requests
Token type, always “bearer”
Token expiration time in seconds (typically 3600 for 1 hour)
Token expiration timestamp (Unix timestamp)
Refresh token for obtaining new access tokens
User information object
Error Responses
Verification Types
Email Signup Verification
Verify email after user registration:SMS OTP Verification
Verify SMS one-time password:Password Recovery
Verify password reset token and set new password:Magic Link Verification
Verify magic link authentication:Email Change Verification
Confirm email address change:Invitation Acceptance
Accept user invitation:Implementation Examples
React Verification Component
Node.js Backend Handler
Rate Limiting
This endpoint is rate limited to prevent abuse:- General verification: 10 attempts per minute per IP
- SMS verification: 5 attempts per minute per phone number
- Password recovery: 3 attempts per minute per email
Security Features
- Token Expiration: Verification tokens expire after a set time
- Single Use: Tokens can only be used once
- Type Validation: Strict validation of verification types
- Rate Limiting: Protection against brute force attacks
Testing
Unit Tests
Related Endpoints
Verify (Redirect)
GET endpoint for redirect-based verification
Resend Confirmation
Resend verification emails or SMS
Send OTP
Send SMS one-time passwords
Password Recovery
Initiate password recovery flow