Skip to main content
POST
/
users
/
{user_id}
/
phones
Add user phone
curl --request POST \
  --url https://api.wacht.dev/users/{user_id}/phones \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone_number": "<string>",
  "is_primary": false
}
'
{
  "message": "Resource not found"
}

Authorizations

Authorization
string
header
required

API key authentication (Bearer token)

Path Parameters

user_id
string
required

Body

application/json
phone_number
string
required
is_primary
boolean
default:false

Response

Phone added successfully