Unassign a channel from an API key
/api-keys/{apiKey}/channels/{channel}Removes the API key's ownership of a channel's line. The key can no longer send from it. Hybrid mode is re-evaluated for the key.
Blooio Apps (OAuth) only. Requires the apikeys:manage scope. API-key and dashboard authentication are rejected with 403 oauth_token_required.
Path parameters
apiKeyRequiredstringThe API key value (prefixed with api_), as returned when the key was created or by the List API keys endpoint.
channelRequiredstringThe channel reference — the same three forms from accepts: a phone number (URL-encode + as %2B), a channel alias, or the exact channel id (ch_...).
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Returns
dataoptionalApiKeyChannelAssignmentResult of assigning/unassigning a channel to an API key.
dataoptionalApiKeyChannelAssignmentResult of assigning/unassigning a channel to an API key.
api_keyoptionalstringchannel_idoptionalstringThe resolved channel id (ch_...) the line belongs to.
addressoptionalstringThe line in E.164 that was (un)assigned.
successoptionalbooleanreassignedoptionalbooleanPresent on assign: true when the line was taken from a previous owner.
unchangedoptionalbooleanPresent on assign: true when the key already owned the line (no-op).
Response codes
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X DELETE https://api.blooio.com/v4/api-keys/sk_live_a1b2c3d4/channels/string \{ "data": { "api_key": "sk_live_a1b2c3d4", "channel_id": "ch_a1b2c3d4", "address": "123 Main St", "success": false, "reassigned": false, "unchanged": false }}