Providers API
The Providers API allows you to fetch information about all configured telephony providers to help identify and manage available calling services.Prerequisites: Make sure you have your API Token ready. See Authentication for details.
Get Telephony Providers
Retrieve a list of all telephony providers in the system along with their details.Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
Example Request
Success Response (200)
Response Fields
| Field | Type | Description |
|---|---|---|
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | array | Array of provider objects |
Provider Object Fields
| Field | Type | Description |
|---|---|---|
| id | integer | Provider unique identifier |
| name | string | Provider name |
| description | string | Provider description |
| icon | string | Provider icon URL |
Error Response (401 Unauthorized)
Code Examples
Best Practices
- Provider Selection: Choose the appropriate provider based on your region and requirements
- Error Handling: Always handle potential errors and implement retry logic
- Security: Keep API tokens secure and rotate them regularly
- Caching: Cache provider list locally to reduce API calls