> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unpod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Telephony Providers

> Retrieve a list of all available telephony providers in the system

<ResponseExample>
  ```json Success Response (200) theme={null}
  {
    "status_code": 200,
    "message": "Voice infra providers fetched successfully.",
    "data": [
      {
        "id": 1,
        "name": "Twilio",
        "slug": "twilio"
      },
      {
        "id": 2,
        "name": "Plivo",
        "slug": "plivo"
      }
    ]
  }
  ```

  ```json Error Response (401) theme={null}
  {
    "status_code": 401,
    "message": "Authentication credentials were not provided."
  }
  ```
</ResponseExample>

# Get Telephony Providers

Retrieve a list of all available telephony providers in the system. These are the supported providers that you can configure credentials for using the Provider Configurations endpoints.

<Note>
  **Prerequisites:** Make sure you have your API Token and Org-Handle ready. See [Authentication](/api/get-started/authentication) for details.
</Note>

***

## Get Telephony Providers

Retrieve all supported telephony providers available for configuration.

```http theme={null}
GET /api/v2/platform/telephony/providers/
```

### Headers

| Name          | Type   | Required | Description                     |
| ------------- | ------ | -------- | ------------------------------- |
| Authorization | string | Yes      | API Key format: `Token <token>` |
| Org-Handle    | string | Yes      | Organization domain handle      |

<Note>
  You can get the `Org-Handle` by hitting the [Get All Organizations](/api/space/organizations#get-all-organizations) API. The `domain_handle` field in the response is your Org-Handle.
</Note>

### 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 display name                               |
| slug  | string  | URL-friendly provider identifier used in config API |

## Common Error Codes

| Status Code | Description                                 |
| ----------- | ------------------------------------------- |
| 200         | Success - Providers fetched successfully    |
| 401         | Unauthorized - Invalid or missing API token |
| 403         | Forbidden - Invalid organization handle     |
| 500         | Internal Server Error - Server-side error   |

## Code Examples

<CodeGroup>
  ```javascript Node.js theme={null}
  const axios = require('axios');

  const headers = {
    'Authorization': 'Token your-api-token',
    'Org-Handle': 'your-org-handle'
  };

  // Get all available telephony providers
  const getTelephonyProviders = async () => {
    const response = await axios.get(
      'https://unpod.ai/api/v2/platform/telephony/providers/',
      { headers }
    );
    console.log(`Available providers: ${response.data.data.length}`);
    response.data.data.forEach(provider => {
      console.log(`${provider.name} (id: ${provider.id}, slug: ${provider.slug})`);
    });
    return response.data.data;
  };

  // Example usage
  getTelephonyProviders();
  ```

  ```python Python theme={null}
  import requests

  headers = {
      'Authorization': 'Token your-api-token',
      'Org-Handle': 'your-org-handle'
  }

  def get_telephony_providers():
      """Get all available telephony providers"""
      url = 'https://unpod.ai/api/v2/platform/telephony/providers/'
      response = requests.get(url, headers=headers)
      data = response.json()
      print(f"Available providers: {len(data['data'])}")
      for provider in data['data']:
          print(f"{provider['name']} (id: {provider['id']}, slug: {provider['slug']})")
      return data['data']

  # Example usage
  get_telephony_providers()
  ```

  ```bash cURL theme={null}
  # Get all telephony providers
  curl -X GET "https://unpod.ai/api/v2/platform/telephony/providers/" \
    -H "Authorization: Token your-api-token" \
    -H "Org-Handle: your-org-handle"
  ```
</CodeGroup>

## Best Practices

1. **Provider ID**: Use the `id` field when creating provider configurations via the [Create Provider](/api/provider/create-provider) endpoint
2. **Provider Selection**: Choose the provider that best suits your region and call volume requirements
3. **Caching**: Cache the providers list locally since it changes infrequently
4. **Error Handling**: Always handle potential errors and implement retry logic
5. **Security**: Keep API tokens secure and rotate them regularly


## OpenAPI

````yaml GET /api/v2/platform/telephony/providers/
openapi: 3.0.3
info:
  title: Unpod API
  description: REST API for Unpod Voice AI Platform
  version: 2.0.0
servers:
  - url: https://unpod.ai/
    description: QA
  - url: https://unpod.ai/
    description: Production
security: []
tags:
  - name: Organisation
  - name: Spaces
  - name: Agents
  - name: Tasks
  - name: Runs
  - name: Call Logs
  - name: Analytics
  - name: Providers
  - name: Bridges
  - name: Numbers
  - name: Trunks
  - name: Telephony
  - name: Billing
paths:
  /api/v2/platform/telephony/providers/:
    get:
      tags:
        - Providers
      summary: Get Telephony Providers
      operationId: getTelephonyProviders
      parameters:
        - $ref: '#/components/parameters/OrgHandle'
      responses:
        '200':
          description: List of available telephony providers
          content:
            application/json:
              example:
                status_code: 200
                message: Voice infra providers fetched successfully.
                data:
                  - id: 1
                    name: Twilio
                    slug: twilio
                  - id: 2
                    name: Plivo
                    slug: plivo
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - TokenAuth: []
components:
  parameters:
    OrgHandle:
      name: Org-Handle
      in: header
      required: true
      schema:
        type: string
        example: unpod.tv
      description: Organization domain handle
  responses:
    Unauthorized:
      description: Unauthorized - Invalid or missing API token
      content:
        application/json:
          example:
            status_code: 401
            message: Authentication credentials were not provided.
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Format: Token <your-api-key>'

````