ONE social:disconnect
← Receivers

social:disconnect

social family

A person removes a social login from a workspace they own or run: any network. Bluesky and Mastodon: the sealed login's connection is revoked, so nothing posts with it again (a post already under way in the next minute may still go out: channels caches the lookup for up to a minute). A Composio network (Facebook, Instagram, LinkedIn, X and the rest): the connected account is deleted at Composio, which refuses an account that is not this workspace's; with no accountId and exactly one account on that network it removes that one, with several it names them and removes none. A bare key with no person and any agent are refused.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_integrations
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/social:disconnect \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "platform": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • platform string required The network: facebook, instagram, linkedin, twitter, tiktok, threads, youtube, pinterest, google_business, reddit, telegram, discord, slack, bluesky, mastodon
  • workspace string optional Defaults to the caller's own. Naming another needs control of it
  • accountId string optional Composio networks: the connected account id (from /api/social/accounts). Needed when the workspace has more than one

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • platform string
  • disconnected number
  • accountId string
  • accounts string[] which_account: the ids to choose from
  • error string unknown_network · not_connected · which_account · not_found · composio_not_configured · composio_unreachable · composio_refused · composio_error · forbidden · no_db
  • reason string
  • retryable boolean

Traffic

Every call to social:disconnect, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names social:disconnect, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 3
  • one.ie/web/src/lib/receiver-index.generated.ts:453
  • one.ie/web/src/lib/resolvers/social-connect.ts:107
  • one.ie/web/src/pages/api/social/connect/[network].ts:22
CLI 3
  • packages/cli/src/lib/receivers-index.generated.ts:477
  • packages/cli/src/lib/receivers.generated.ts:477
  • packages/cli/src/social.ts:319
SDK 1
  • packages/sdk/src/social.ts:30
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "description": "The network: facebook, instagram, linkedin, twitter, tiktok, threads, youtube, pinterest, google_business, reddit, telegram, discord, slack, bluesky, mastodon"
    },
    "workspace": {
      "description": "Defaults to the caller's own. Naming another needs control of it",
      "type": "string"
    },
    "accountId": {
      "description": "Composio networks: the connected account id (from /api/social/accounts). Needed when the workspace has more than one",
      "type": "string"
    }
  },
  "required": [
    "platform"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "platform": {
      "type": "string"
    },
    "disconnected": {
      "type": "number"
    },
    "accountId": {
      "type": "string"
    },
    "accounts": {
      "description": "which_account: the ids to choose from",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "unknown_network · not_connected · which_account · not_found · composio_not_configured · composio_unreachable · composio_refused · composio_error · forbidden · no_db",
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "retryable": {
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ]
}