Retrieves all phone numbers for the specified user
curl --request GET \
--url https://api.rootly.com/v1/users/{user_id}/phone_numbers \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "8a1231d1-1169-4688-88c0-7d26eeb8590f",
"type": "user_phone_numbers",
"attributes": {
"user_id": 1153,
"phone": "+19805639186",
"primary": true,
"created_at": "2026-02-18T09:14:10.430-08:00",
"updated_at": "2026-02-18T09:14:10.489-08:00"
}
},
{
"id": "7bf50af6-f3f3-4265-bcc1-0b4b070099fd",
"type": "user_phone_numbers",
"attributes": {
"user_id": 1153,
"phone": "+14045098759 x9020",
"primary": false,
"created_at": "2026-02-18T09:14:10.449-08:00",
"updated_at": "2026-02-18T09:14:10.449-08:00"
}
}
],
"links": {
"self": "http://www.example.com/v1/users/1153/phone_numbers?page%5Bnumber%5D=1&page%5Bsize%5D=50",
"first": "http://www.example.com/v1/users/1153/phone_numbers?page%5Bnumber%5D=1&page%5Bsize%5D=50",
"prev": null,
"next": null,
"last": "http://www.example.com/v1/users/1153/phone_numbers?page%5Bnumber%5D=1&page%5Bsize%5D=50"
},
"meta": {
"current_page": 1,
"next_page": null,
"prev_page": null,
"total_count": 2,
"total_pages": 1
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?
curl --request GET \
--url https://api.rootly.com/v1/users/{user_id}/phone_numbers \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "8a1231d1-1169-4688-88c0-7d26eeb8590f",
"type": "user_phone_numbers",
"attributes": {
"user_id": 1153,
"phone": "+19805639186",
"primary": true,
"created_at": "2026-02-18T09:14:10.430-08:00",
"updated_at": "2026-02-18T09:14:10.489-08:00"
}
},
{
"id": "7bf50af6-f3f3-4265-bcc1-0b4b070099fd",
"type": "user_phone_numbers",
"attributes": {
"user_id": 1153,
"phone": "+14045098759 x9020",
"primary": false,
"created_at": "2026-02-18T09:14:10.449-08:00",
"updated_at": "2026-02-18T09:14:10.449-08:00"
}
}
],
"links": {
"self": "http://www.example.com/v1/users/1153/phone_numbers?page%5Bnumber%5D=1&page%5Bsize%5D=50",
"first": "http://www.example.com/v1/users/1153/phone_numbers?page%5Bnumber%5D=1&page%5Bsize%5D=50",
"prev": null,
"next": null,
"last": "http://www.example.com/v1/users/1153/phone_numbers?page%5Bnumber%5D=1&page%5Bsize%5D=50"
},
"meta": {
"current_page": 1,
"next_page": null,
"prev_page": null,
"total_count": 2,
"total_pages": 1
}
}