Skip to main content
POST
Disconnect Provider from Bridge

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

You can get the bridge slug by hitting the Get All Bridges API. The slug field in the response is your Bridge Slug.

Headers

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

Response Fields

Data Object Fields

Common Error Codes

Code Examples

Best Practices

  1. Pre-disconnect Check: Verify the phone number is currently connected using Get Bridge by Slug before disconnecting
  2. Phone Number Format: Use E.164 format (e.g., +1234567890) for the phone_number field
  3. Before Deletion: Always disconnect providers before deleting a bridge to ensure clean teardown
  4. Error Handling: Handle 400 errors - the phone number may not be connected to the specified bridge
  5. Service Disruption: Disconnecting an active number will stop calls routing through the bridge immediately
  6. Security: Keep API tokens secure and rotate them regularly

Authorizations

Authorization
string
header
required

Format: Token

Headers

Org-Handle
string
required

Organization domain handle

Example:

"unpod.tv"

Path Parameters

slug
string
required
Example:

"sales-bridge-001"

Body

application/json
phone_number
string
required
Example:

"+1234567890"

Response

Provider disconnected from bridge