Users

User management endpoints

Add phone number

post

Add phone number to user account and send verification SMS (required for all users)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Request payload for adding phone number to user account

phone_numberstringRequired

Valid phone number in E.164 format (e.g., +14155552671). Must include country code and contain only digits after the '+' sign.

Example: +14155552671Pattern: ^\+[1-9][0-9]{7,14}$
Responses
200

Phone number added successfully, verification SMS sent

application/json
post
/api/v1/users/add-phone

Get current user's details

get

Retrieve current user's details

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Profile retrieved successfully

application/json
get
/api/v1/users/me

Delete current user's account

delete

Delete current user's account

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Request payload for deleting current user's account

passwordstringWrite-onlyRequired

Password for verification

Example: SecurePass@123
Responses
200

Account deleted successfully

application/json
delete
/api/v1/users/me

Change password

put

Change current user's password (requires current password verification)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Request payload for changing user's password

current_passwordstring · passwordWrite-onlyRequired

Current password for verification

Example: CurrentSecurePass@123
new_passwordstring · password · min: 8 · max: 50Write-onlyRequired

New password for the user account. Must be at least 8 characters long, and contain at least one uppercase letter, one lowercase letter, one digit, and one special character.

Example: NewSecurePass@123
Responses
200

Password changed successfully

application/json
put
/api/v1/users/me/change-password

Last updated