VANITYPASS
White-label APIAuth

Registration

Register new users and verify email.

Registration

Register new users and verify their email address before granting full account access. The X-App-Id header must be present on all registration requests.

Register

POST /v1/auths/register

Create a new user account. On success, sends a verification email containing a one-time password (OTP). The account is created in an unverified state — full access is granted after email verification.

FieldTypeRequiredDescription
emailstringyesEmail address for the new account.
passwordstringyesPassword (minimum 8 characters).
first_namestringyesUser's first name.
last_namestringyesUser's last name.
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/auths/register

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/auths/register' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"email":"user@example.com","password":"••••••••","first_name":"Jane","last_name":"Doe"}'

Verify Email

POST /v1/auths/verify/email

Verify email address with the OTP sent during registration. On success, the account is activated and the user can log in.

FieldTypeRequiredDescription
emailstringyesThe email address to verify.
otpstringyes6-digit OTP from the verification email.
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/auths/verify/email

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/auths/verify/email' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"email":"user@example.com","otp":"123456"}'

Resend OTP

POST /v1/auths/resend-otp

Resend OTP for email verification or MFA. Use this when the user did not receive the original email or when the OTP has expired.

FieldTypeRequiredDescription
emailstringyesEmail address to resend the OTP to.
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/auths/resend-otp

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/auths/resend-otp' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"email":"user@example.com"}'

Change Password

POST /v1/auths/change-password

Change password for an authenticated user. Requires a valid JWT. The current password must be provided to prevent unauthorised changes.

FieldTypeRequiredDescription
current_passwordstringyesThe user's current password.
new_passwordstringyesThe new password (minimum 8 characters).
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/auths/change-password

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/auths/change-password' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"current_password":"••••••••","new_password":"••••••••"}'