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, an agent or a workflow step is ASKED, not refused: fingerprint_required with approve.url, then call again with fingerprint_code. No proof, nothing is removed.

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.

  • ask any error fingerprint_required: the ask the person answers (action, what, challenge, expiresAt, methods)
  • approve object error fingerprint_required: the link the person opens to approve, and the code to retry with (fingerprint_code)
  • approver string error fingerprint_required: the workspace's person the ask is for
  • next string error fingerprint_required: what to tell the person and how to call again
  • reason string
  • closed string dissolve on a fingerprint ask (nothing changed), warn on a refusal
  • 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
  • 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 5
  • one.ie/web/src/lib/auth-plugins/fingerprint-ask.ts:311
  • one.ie/web/src/lib/oauth-connector-gate.ts:56
  • one.ie/web/src/lib/receiver-index.generated.ts:457
  • one.ie/web/src/lib/resolvers/social-connect.ts:119
  • one.ie/web/src/pages/api/social/connect/[network].ts:22
CLI 3
  • packages/cli/src/lib/receivers-index.generated.ts:481
  • packages/cli/src/lib/receivers.generated.ts:481
  • packages/cli/src/social.ts:363
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": {
    "ask": {
      "description": "error fingerprint_required: the ask the person answers (action, what, challenge, expiresAt, methods)"
    },
    "approve": {
      "description": "error fingerprint_required: the link the person opens to approve, and the code to retry with (fingerprint_code)",
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "expiresAt": {
          "type": "number"
        }
      },
      "required": [
        "url",
        "code",
        "expiresAt"
      ]
    },
    "approver": {
      "description": "error fingerprint_required: the workspace's person the ask is for",
      "type": "string"
    },
    "next": {
      "description": "error fingerprint_required: what to tell the person and how to call again",
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "closed": {
      "description": "dissolve on a fingerprint ask (nothing changed), warn on a refusal",
      "type": "string"
    },
    "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"
    },
    "retryable": {
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ]
}