Disconnect Provider from Bridge
Telephony & Bridges
Disconnect Provider from Bridge
Disconnect a provider credential from a telephony bridge to remove the number
POST
Disconnect Provider from 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.
Disconnect Provider from Bridge
Disconnect a telephony provider from a specific bridge, removing the associated phone number from the bridge. Use this before deleting a bridge or reassigning a phone number to a different bridge.Prerequisites: Make sure you have your API Token and Org-Handle ready. See Authentication for details.
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 |
|---|---|---|---|
| phone_number | string | Yes | Phone number (E.164 format) to remove from the bridge |
Response Fields
| Field | Type | Description |
|---|---|---|
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | object | Disconnection result |
Data Object Fields
| Field | Type | Description |
|---|---|---|
| message | string | Success message |
| bridge_slug | string | The bridge slug the provider disconnected from |
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Provider disconnected successfully |
| 400 | Bad Request - Phone number not connected or invalid |
| 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
- Pre-disconnect Check: Verify the phone number is currently connected using Get Bridge by Slug before disconnecting
- Phone Number Format: Use E.164 format (e.g.,
+1234567890) for thephone_numberfield - Before Deletion: Always disconnect providers before deleting a bridge to ensure clean teardown
- Error Handling: Handle 400 errors — the phone number may not be connected to the specified bridge
- Service Disruption: Disconnecting an active number will stop calls routing through the bridge immediately
- 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
Example:
"+1234567890"
Response
Provider disconnected from bridge