Phone Numbers
List phone numbers attached to a DIR
Changed onList the phone numbers registered under a DIR. The enterprise is resolved server-side from the DIR id.
get/dir/{dir_id}/phone_numbers
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/dir/{dir_id}/phone_numbers
- Auth: HTTP bearer
Path parameters
dir_idstring uuid required
Example:16635d38-75a6-4481-82e8-69af60e05011
The DIR id. Lowercase UUID.
Query parameters
page[number]integer
Example:1
1-based page number. Out-of-range values return an empty page with correct meta.
page[size]integer
Example:20
Items per page. Maximum 250; values above are clamped to 250.
Response
Paginated list of phone numbers.
Example response
{
"data": [
{
"id": "1f56eb76-4078-4af7-ad4d-564b027256ee",
"dir_id": "16635d38-75a6-4481-82e8-69af60e05011",
"enterprise_id": "4a6192a4-573d-446d-b3ce-aff9117272a6",
"phone_number": "+19493253498",
"batch_id": "0a4b1f5e-2f12-4c0c-9a98-9b3a7d8b8e62",
"rejection_reason": {
"code": "documentation_incomplete",
"title": "Documentation incomplete",
"detail": "Provided documents do not establish business identity.",
"message": "Please re-upload a clearer scan of the certificate."
},
"created_at": "2026-04-26T18:11:42.850928Z",
"updated_at": "2026-04-26T18:12:11.123456Z",
"verified_at": "2026-04-26T18:12:11.123456Z"
}
],
"meta": {
"total_pages": 3,
"total_results": 42,
"page_number": 1,
"page_size": 20
}
}Changes
- warning
deleted the
queryrequest parameterstatus
- warning