Creates a new user phone number from provided data
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": "62d2987e-823f-48f7-8c87-c8fa8401499a",
"type": "user_phone_numbers",
"attributes": {
"user_id": 617,
"phone": "+14155552671",
"primary": true,
"created_at": "2025-12-22T14:57:53.579-08:00",
"updated_at": "2025-12-22T14:57:53.579-08:00"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
user_phone_number created
Show child attributes
Was this page helpful?
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": "62d2987e-823f-48f7-8c87-c8fa8401499a",
"type": "user_phone_numbers",
"attributes": {
"user_id": 617,
"phone": "+14155552671",
"primary": true,
"created_at": "2025-12-22T14:57:53.579-08:00",
"updated_at": "2025-12-22T14:57:53.579-08:00"
}
}
}