Voice Templates & Phone Numbers
List Phone Numbers
Retrieve a list of available phone numbers with filtering options
GET
List Phone Numbers
Retrieve a list of available phone numbers with various filtering options. This endpoint returns phone numbers with their capabilities, pricing, and status information.Endpoint
Request headers
Bearer token for authentication. Format:
Bearer talq_your_environment_token_hereQuery parameters
Filter by phone number type. Options:
voice, sms, whatsapp, mms, faxFilter by voice capability. Options:
true, falseFilter by WhatsApp capability. Options:
true, falseSearch by phone number or ID
Example requests
Response
Success Response (200 OK)
Response fields
Indicates if the operation was successful.
Array of phone number objects.
Error responses
401 Unauthorized
422 Validation Error
500 Server Error
Error codes
| Code | Description | HTTP Status |
|---|---|---|
INVALID_TOKEN | Authentication token is invalid or missing | 401 |
VALIDATION_ERROR | Query parameter validation failed | 422 |
SERVER_ERROR | Internal server error occurred | 500 |
Important notes
Filtering capabilities. Use query parameters to filter phone numbers by type, and capabilities.
Pricing information. Each phone number includes current pricing and renewal information.
Status tracking. Monitor phone number status and renewal dates to avoid service interruptions.
Related endpoints
- List Voice Templates:
GET /api/v1/voice-templates - Generate Voice Template Demo:
GET /api/v1/voice-templates/{voiceTemplate}/demo