POST
/
v1
/
users
/
{user_id}
/
phone_numbers
curl --request POST \
  --url https://api.rootly.com/v1/users/{user_id}/phone_numbers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "user_phone_numbers",
    "attributes": {
      "phone": "<string>"
    }
  }
}'
{
  "data": {
    "id": "dfeeb87c-5756-4381-82c8-a3c390fe8213",
    "type": "user_phone_numbers",
    "attributes": {
      "user_id": 482,
      "phone": "+14155552671",
      "primary": true,
      "created_at": "2025-05-29T17:49:38.510-07:00",
      "updated_at": "2025-05-29T17:49:38.510-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

Body

application/vnd.api+json

Response

201
application/vnd.api+json

user_phone_number created

The response is of type object.