> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unpair a channel

> Remove the pairing between a Channel conversation scope and its Identity.

`DELETE /api/v1/forward/channel_pairings/{pairing_id}`

## Headers

| Header          | Required | Description    |
| --------------- | -------- | -------------- |
| `Authorization` | Yes      | `Bearer <PAT>` |

## Path parameters

| Parameter    | Type   | Required | Description                               |
| ------------ | ------ | -------- | ----------------------------------------- |
| `pairing_id` | string | Yes      | Pairing ID returned by the Pair endpoint. |

## Example request

```bash theme={null}
curl -s -X DELETE 'https://api.qoder.com/api/v1/forward/channel_pairings/pair_019eabc123' \
  -H "Authorization: Bearer $QODER_PAT"
```

## Example response

**HTTP 200 OK**

```json theme={null}
{
  "id": "pair_019eabc123",
  "deleted": true
}
```

## Response fields

| Field     | Type    | Description                        |
| --------- | ------- | ---------------------------------- |
| `id`      | string  | Pairing ID.                        |
| `deleted` | boolean | `true` when successfully unpaired. |

## Error codes

| HTTP | Type                   | Trigger                    |
| ---- | ---------------------- | -------------------------- |
| 401  | `authentication_error` | PAT is invalid or expired. |

## Notes

* Returns `deleted=true` even if the Pairing does not exist or was already removed.
* After unpairing, the next message in that conversation scope will trigger a new Pairing Code.

## Related

<CardGroup cols={2}>
  <Card title="Pair a channel" icon="link" href="/cloud-agents/api/forward/channels/pair-channel" />

  <Card title="Get a channel" icon="file-lines" href="/cloud-agents/api/forward/channels/get" />
</CardGroup>
