> ## 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 All Providers

> Retrieve all configured telephony provider configurations

<ResponseExample>
  ```json Success Response (200) theme={null}
  {
    "status_code": 200,
    "message": "Provider configurations fetched successfully.",
    "data": [
      {
        "id": 42,
        "provider": "twilio",
        "account_sid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "created_at": "2026-02-07T10:00:00Z"
      },
      {
        "id": 43,
        "provider": "plivo",
        "account_sid": "MAyyyyyyyyyyyyyyyyyyyyyyy",
        "created_at": "2026-02-10T09:00:00Z"
      }
    ]
  }
  ```

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

# Get All Provider Configurations

Retrieve all telephony provider configurations that have been set up for your organization. Each configuration represents a set of credentials (account SID) linked to a specific telephony provider.

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

### 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 configuration objects |

### Provider Config Object Fields

| Field        | Type    | Description                              |
| ------------ | ------- | ---------------------------------------- |
| id           | integer | Unique provider configuration identifier |
| provider     | string  | Provider slug/identifier                 |
| account\_sid | string  | Account SID for the provider             |
| created\_at  | string  | Configuration creation timestamp         |

## Common Error Codes

| Status Code | Description                                   |
| ----------- | --------------------------------------------- |
| 200         | Success - Configurations 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 provider configurations
  const getAllProviders = async () => {
    const response = await axios.get(
      'https://unpod.ai/api/v2/platform/telephony/providers-configurations/',
      { headers }
    );
    console.log(`Total configurations: ${response.data.data.length}`);
    response.data.data.forEach(config => {
      console.log(`Config #${config.id}: ${config.provider} - ${config.account_sid}`);
    });
    return response.data.data;
  };

  // Example usage
  getAllProviders();
  ```

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

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

  def get_all_providers():
      """Get all provider configurations"""
      url = 'https://unpod.ai/api/v2/platform/telephony/providers-configurations/'
      response = requests.get(url, headers=headers)
      data = response.json()
      print(f"Total configurations: {len(data['data'])}")
      for config in data['data']:
          print(f"Config #{config['id']}: {config['provider']} - {config['account_sid']}")
      return data['data']

  # Example usage
  get_all_providers()
  ```

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

## Best Practices

1. **Configuration ID**: Note each configuration `id` - it is used when connecting a provider to a bridge
2. **Multiple Providers**: You can have configurations for multiple providers to support different regions
3. **Security**: `auth_token` is never returned in responses for security - only `account_sid` is shown
4. **Error Handling**: Always handle potential errors and edge cases
5. **Regular Auditing**: Periodically review and remove unused provider configurations


## OpenAPI

````yaml GET /api/v2/platform/telephony/providers-configurations/
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-configurations/:
    get:
      tags:
        - Providers
      summary: Get All Providers
      operationId: getAllProviders
      parameters:
        - $ref: '#/components/parameters/OrgHandle'
      responses:
        '200':
          description: List of provider configurations
          content:
            application/json:
              example:
                status_code: 200
                message: Provider configurations fetched successfully.
                data:
                  - id: 42
                    provider: twilio
                    account_sid: ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                    created_at: '2026-02-07T10:00:00Z'
                  - id: 43
                    provider: plivo
                    account_sid: MAyyyyyyyyyyyyyyyyyyyyyyy
                    created_at: '2026-02-10T09:00:00Z'
        '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>'

````