Backend API
Add a new phone number to a user account
cURL
curl --request POST \ --url https://api.wacht.dev/users/{user_id}/phones \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "phone_number": "+1234567890", "is_primary": false } '
{ "id": "<string>", "phone_number": "+1234567890", "is_primary": true, "is_verified": true, "verified_at": "2023-11-07T05:31:56Z" }
JWT Bearer token authentication using the Authorization header
(i64 formatted as string)
"+1234567890"
Phone added successfully