Create Bridge
Telephony & Bridges
Create Bridge
Create a new telephony bridge for call routing
POST
Create 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.
Create Bridge
Create a new telephony bridge for call routing. Bridges are the core routing entities that link telephony providers and phone numbers to your Voice AI agents.Prerequisites: Make sure you have your API Token and Org-Handle ready. See Authentication for details.
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 |
|---|---|---|---|
| name | string | Yes | Display name for the bridge |
| slug | string | Yes | URL-friendly unique identifier for the bridge |
Response Fields
| Field | Type | Description |
|---|---|---|
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | object | Created bridge details |
Bridge Object Fields
| Field | Type | Description |
|---|---|---|
| id | integer | Bridge unique identifier |
| name | string | Bridge display name |
| slug | string | Unique bridge slug identifier |
| created_at | string | Bridge creation timestamp (ISO 8601) |
Common Error Codes
| Status Code | Description |
|---|---|
| 201 | Created - Bridge created successfully |
| 400 | Bad Request - Invalid or duplicate slug/name |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Invalid organization handle |
| 409 | Conflict - Bridge with this slug already exists |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Slug Naming: Use descriptive, lowercase slugs (e.g.,
sales-outbound-us) to easily identify bridges - Unique Slugs: Ensure slugs are unique across your organization to avoid conflicts
- Post-Creation: After creating a bridge, use Connect Provider to Bridge to link a telephony provider
- Bridge ID: Store the returned
idandslugfor subsequent bridge management operations - Error Handling: Handle 409 Conflict responses for duplicate slugs
- Security: Keep API tokens secure and rotate them regularly