---
name: "social_disconnect"
area: "social"
title: "Disconnect a channel"
price: "free"
method: "POST"
url: "https://api.conecto.chat/v1/tools/social_disconnect"
mcp_server: "https://api.conecto.chat/mcp/social"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/social/social_disconnect"
---

# Disconnect a channel (`social_disconnect`)

Removes a channel; its waiting posts are deleted, and refunded when their time had not come.

Remove a channel from the business's social workspace. Its waiting posts are deleted with it: the ones whose time hadn't come are refunded, posts that went out stay on the network. Free.

Price: Free. A call that fails costs nothing.

## Use it when

The business stops using a social account here.

## Say this to your agent

> We stopped using our Mastodon account. Disconnect it.

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `channel_id` | string | yes | A channel_id from social_channels. 1 to 64 characters, matches ^[A-Za-z0-9_-]+$. |  |  |

## Example

Written for Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon.

MCP: call `social_disconnect` on the MCP server `https://api.conecto.chat/mcp/social` with these arguments:

```json
{
  "channel_id": "clx0d6k2v0004"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/social_disconnect \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_id": "clx0d6k2v0004"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "social_disconnect",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.00",
  "balance_usd": "$19.75",
  "result": {
    "disconnected": "clx0d6k2v0004"
  }
}
```

`result`: disconnected: the channel_id. Its waiting posts are deleted with it.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_found` | 404 | No channel of the business has that channel_id. | Call social_channels and use one of its channel_ids. |
| `no_channels` | 409 | The business has no connected channel yet. | Connect one with social_connect. |
| `not_switched_on` | 503 | Social posting is not switched on yet. | Try again later; nothing was charged. |
| `social_unavailable` | 503 | The posting service did not answer, or could not open the business's social workspace. | Call again in a minute; when the message says so, tell Conecto's support. |
| `refused` | 400 | The posting service refused the request; the message gives its reason. | Fix what the reason names, then call again. |
| `refused` | 422 | The posting service reported a conflict with what is there. | Read the channel or post again, then call again. |
| `rate_limited` | 429 | The posting service's limit of posts an hour was reached. | Try again later. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [social_networks](https://conecto.chat/tools/social/social_networks.md): Every network the business can post to, how each connects (a link, a login, Telegram's code, or its own bot or webhook), and whether it is switched on yet. Free up to 1,000,000 reads a month.
- [social_connect](https://conecto.chat/tools/social/social_connect.md): Connects one of the business's own social accounts as a channel: by a link for the owner, a login, or a code posted in a Telegram channel. Free.
- [social_channels](https://conecto.chat/tools/social/social_channels.md): The business's connected social accounts (channels), with their network, name and profile. Free up to 1,000,000 reads a month.
- [social_channel_rules](https://conecto.chat/tools/social/social_channel_rules.md): What a channel's network accepts: lengths, media counts, the settings a post needs, and its lookups. Free up to 1,000,000 reads a month.
- [social_channel_lookup](https://conecto.chat/tools/social/social_channel_lookup.md): Runs one of a channel's lookups, like the channels of a Discord server or the boards on Pinterest. Free up to 1,000,000 reads a month.
- [social_find_slot](https://conecto.chat/tools/social/social_find_slot.md): The next free time to post on a channel, from its posting times and what is already scheduled. Free up to 1,000,000 reads a month.
- [social_post](https://conecto.chat/tools/social/social_post.md): Posts now or at a set time to one or several channels, with pictures, video or a thread. $0.02 per channel posted to.
- [social_post_check](https://conecto.chat/tools/social/social_post_check.md): Reads a TikTok post waiting for its owner, with what to show and ask them from TikTok just now. Free up to 1,000,000 reads a month.
- [social_confirm_post](https://conecto.chat/tools/social/social_confirm_post.md): Posts a TikTok post waiting for its owner with the choices they made in your chat, or drops it. Free.
- [social_posts](https://conecto.chat/tools/social/social_posts.md): Posts in a time window (the last 7 days and the next 30 by default), each with its status and link. Free up to 1,000,000 reads a month.
- [social_delete_post](https://conecto.chat/tools/social/social_delete_post.md): Deletes a post with its thread; one still waiting for its time never goes out and is refunded. Free.
- [social_analytics](https://conecto.chat/tools/social/social_analytics.md): How a channel did over 7, 30 or 90 days, or how one published post did: each metric the network reports, by day. Free up to 1,000,000 reads a month.
