Overview
This endpoint returns a list of all phone numbers configured for your organization, including their status, provider information, and associated metadata.Request
Headers
| Header | Value | Required |
|---|---|---|
x-api-key | Your API key | Yes |
accept | */* | No |
Example Request
Response
Success Response (200)
Returns an array of phone number objects.Response Schema
| Field | Type | Description |
|---|---|---|
phoneNumbers | Array | Array of phone number objects |
id | String | Unique identifier for the phone number |
accountId | String | Account identifier |
did | String | Direct inward dialing number |
domain | String | SIP domain for the phone number |
provider | String | Phone number provider (e.g., pliwo, telnyx) |
externalId | String | External identifier from the provider |
status | Boolean | Active status of the phone number |
createdAt | String (ISO 8601) | Creation timestamp |
updatedAt | String (ISO 8601) | Last update timestamp |
organization.id | String | Organization identifier |
organization.name | String | Organization name |
Error Responses
| Status Code | Description |
|---|---|
| 500 | Error fetching phone numbers |
Use Cases
- Phone Number Management: View all available phone numbers for your organization
- Provider Integration: Check which phone number providers are configured
- Status Monitoring: Verify the active status of phone numbers
- Organization Setup: Review phone number configurations across different accounts
Related Endpoints
- Place Outbound Call - Use a phone number to make outbound calls
- List Calls - View call history for specific phone numbers
Authorizations
Response
List of phone numbers retrieved successfully.