Connect Provider to Bridge
Telephony & Bridges
Connect Provider to Bridge
Connect a provider credential to a telephony bridge to add a number
POST
Connect Provider to Bridge
Documentation Index
Fetch the complete documentation index at: https://docs.unpod.dev/llms.txt
Use this file to discover all available pages before exploring further.
Connect Provider to Bridge
Connect a telephony provider configuration to a specific bridge, linking a phone number to the bridge for call routing. This enables inbound and outbound calls through the connected provider.Prerequisites: Make sure you have your API Token, Org-Handle, a configured Bridge, and a Provider Configuration ready. See Authentication for details.
The
provider_config_id must be a valid provider configuration already created for your organization. You can only use a phone_number that is linked to the provider account.Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| slug | string | Yes | Unique bridge slug |
You can get the bridge
slug by hitting the Get All Bridges API. The slug field in the response is your Bridge Slug.Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
| Org-Handle | string | Yes | Organization domain handle |
| Content-Type | string | Yes | application/json |
You can get the
Org-Handle by hitting the Get All Organizations API. The domain_handle field in the response is your Org-Handle.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| provider_config_id | integer | Yes | ID of the provider configuration to connect |
| phone_number | string | Yes | Phone number (E.164 format) to assign to the bridge |
Response Fields
| Field | Type | Description |
|---|---|---|
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | object | Connection result |
Data Object Fields
| Field | Type | Description |
|---|---|---|
| message | string | Success message |
| bridge_slug | string | The bridge slug the provider connected to |
| phone_number | string | The phone number assigned to the bridge |
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Provider connected successfully |
| 400 | Bad Request - Invalid provider ID or phone number |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Invalid organization handle |
| 404 | Not Found - Bridge not found |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Provider Config ID: Get the correct
provider_config_idfrom Get All Providers before connecting - Phone Number Format: Use E.164 format (e.g.,
+1234567890) for phone numbers - Verify Bridge: Confirm the bridge exists using Get Bridge by Slug before connecting
- One Provider per Bridge: A bridge typically connects to one provider — verify current state before re-connecting
- Error Handling: Handle 400 errors that may indicate an invalid phone number or provider config
- Security: Keep API tokens secure and rotate them regularly
Authorizations
Format: Token
Headers
Organization domain handle
Example:
"unpod.tv"
Path Parameters
Example:
"sales-bridge-001"
Body
application/json
Response
Provider connected to bridge