> ## 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 Provider by ID

> Retrieve a specific telephony provider configuration by its ID

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

  ```json Error Response (404) theme={null}
  {
    "status_code": 404,
    "message": "Provider configuration not found."
  }
  ```
</ResponseExample>

# Get Provider Configuration by ID

Retrieve a specific telephony provider configuration by its unique integer identifier. Use this to inspect the details of a particular provider setup.

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

### Path Parameters

| Name | Type    | Required | Description                                     |
| ---- | ------- | -------- | ----------------------------------------------- |
| id   | integer | Yes      | Unique identifier of the provider configuration |

<Note>
  You can get the provider configuration `id` by hitting the [Get All Providers](/api/provider/get-all-providers) API.
</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         | object  | Provider configuration details |

### 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 - Configuration fetched successfully |
| 401         | Unauthorized - Invalid or missing API token  |
| 403         | Forbidden - Invalid organization handle      |
| 404         | Not Found - Provider configuration not found |
| 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 provider configuration by ID
  const getProviderById = async (id) => {
    const response = await axios.get(
      `https://unpod.ai/api/v2/platform/telephony/providers-configurations/${id}/`,
      { headers }
    );
    const config = response.data.data;
    console.log(`Provider: ${config.provider}`);
    console.log(`Account SID: ${config.account_sid}`);
    return config;
  };

  // Example usage
  getProviderById(42);
  ```

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

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

  def get_provider_by_id(config_id: int):
      """Get a specific provider configuration by ID"""
      url = f'https://unpod.ai/api/v2/platform/telephony/providers-configurations/{config_id}/'
      response = requests.get(url, headers=headers)
      data = response.json()
      config = data['data']
      print(f"Provider: {config['provider']}")
      print(f"Account SID: {config['account_sid']}")
      return config

  # Example usage
  get_provider_by_id(42)
  ```

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

## Best Practices

1. **ID Lookup**: Use [Get All Providers](/api/provider/get-all-providers) to find IDs before fetching individual records
2. **Error Handling**: Handle 404 responses when a configuration ID is no longer valid
3. **Security**: `auth_token` is never returned - only `account_sid` is visible for security
4. **Org-Handle**: Ensure the correct organization handle is used to access configurations within your org
5. **Validation**: Use this endpoint to verify a provider configuration exists before connecting it to a bridge


## OpenAPI

````yaml GET /api/v2/platform/telephony/providers-configurations/{id}/
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/{id}/:
    get:
      tags:
        - Providers
      summary: Get Provider by ID
      operationId: getProviderById
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            example: 42
        - $ref: '#/components/parameters/OrgHandle'
      responses:
        '200':
          description: Provider configuration details
          content:
            application/json:
              example:
                status_code: 200
                message: Provider configuration fetched successfully.
                data:
                  id: 42
                  provider: twilio
                  account_sid: ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                  created_at: '2026-02-07T10:00:00Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      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.
    NotFound:
      description: Resource not found
      content:
        application/json:
          example:
            status_code: 404
            message: Not found.
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Format: Token <your-api-key>'

````