Users
User management endpoints
Add phone number to user account and send verification SMS (required for all users)
Request payload for adding phone number to user account
Valid phone number in E.164 format (e.g., +14155552671). Must include country code and contain only digits after the '+' sign.
+14155552671Pattern: ^\+[1-9][0-9]{7,14}$Phone number added successfully, verification SMS sent
Invalid phone number format or missing required fields.
Missing or invalid authentication token.
Phone number already exists or already verified.
Internal server error occurred while adding phone number.
Retrieve current user's details
Profile retrieved successfully
Missing or invalid authentication token.
User not found.
Internal server error occurred while retrieving user's details.
Delete current user's account
Request payload for deleting current user's account
Password for verification
SecurePass@123Account deleted successfully
Invalid password or missing required fields.
Missing or invalid authentication token.
User not found.
Internal server error occurred while deleting account.
Change current user's password (requires current password verification)
Request payload for changing user's password
Current password for verification
CurrentSecurePass@123New 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.
NewSecurePass@123Password changed successfully
Invalid password format or missing required fields.
Missing or invalid authentication token, or current password is incorrect.
Internal server error occurred while changing password.
Last updated