ONE social:connect
← Receivers

social:connect

social family

A person connects Bluesky or Mastodon to a workspace they own or run. Bluesky takes a handle and an app password (never the main password: refused by its shape and by the session Bluesky hands back); Mastodon takes the server and an access token with read:accounts, write:statuses and write:media. One harmless read proves the login first (Bluesky sign-in; Mastodon verify_credentials), and a refusal carries the network's own reason. Then the login is sealed on the workspace's connection, the same sealed store every channel login uses; it is never returned, never logged. One account per network per workspace: the same account again re-seals it, a different one replaces the old. Refuses an account another workspace holds. A bare key with no person and any agent are refused. Facebook, Instagram, LinkedIn and the other Composio networks connect through their own sign-in page, not here. With `target`, on any network that has one: save where on the account posts go by default (Pinterest boardId; Google Business locationName accounts/{a}/locations/{l}; Reddit subreddit; Telegram chatId as @channel or -100…, with the bot an admin of the channel; Discord channelId and optional guildId; Slack channel; Facebook pageId; LinkedIn authorUrn), at connect time or later. A value on the post itself overrides it.

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
yes
The effect can be undone by a later call.
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:connect \
  -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 bluesky or mastodon to connect a login; any network that takes a target to save `target`
  • target object optional Where posts go by default, in the network's own field names: { boardId } · { locationName } · { subreddit } · { chatId } · { channelId, guildId? } · { channel } · { pageId } · { authorUrn }. Ids only
  • accountId string optional With target: the one connected account it is for (a Composio connected account id). Without it, it is the workspace's default for that network
  • workspace string optional The workspace to connect it to; defaults to the caller's own. Naming another (a client) needs control of it
  • handle string optional Bluesky: the handle, like name.bsky.social
  • appPassword string optional Bluesky: an app password (xxxx-xxxx-xxxx-xxxx) from Settings, Privacy and security, App passwords. Sealed, never returned
  • service string optional Bluesky: the account's server when it is not bsky.social (https only)
  • instance string optional Mastodon: the server, like mastodon.social (https only)
  • token string optional Mastodon: an access token from Preferences, Development, New application. Sealed, never returned

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • platform string
  • handle string @name.bsky.social or @name@server
  • profileUrl string
  • connection set | rotated | revived set = new; rotated = the same account re-sealed; revived = an account connected before and removed
  • replaced string The account this one replaced, when the workspace had a different one
  • target object The default target as saved
  • accountId string
  • saved "target" Present when the call saved a default target
  • error string no_target · bad_target · handle_required · app_password_required · not_an_app_password · bad_service · instance_required · token_required · bad_instance · refused · network_unreachable · network_error · connected_elsewhere · seal_failed · not_direct · unknown_network · forbidden · no_db
  • reason string Plain words for the person, with the network's own reason where it gave one
  • retryable boolean

Traffic

Every call to social:connect, 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:connect, 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:452
  • one.ie/web/src/lib/resolvers/social-connect.ts:46
  • one.ie/web/src/pages/api/social/connect/[network].ts:22
CLI 1
  • packages/cli/src/social.ts:313
SDK 1
  • packages/sdk/src/social.ts:29
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "description": "bluesky or mastodon to connect a login; any network that takes a target to save `target`"
    },
    "target": {
      "description": "Where posts go by default, in the network's own field names: { boardId } · { locationName } · { subreddit } · { chatId } · { channelId, guildId? } · { channel } · { pageId } · { authorUrn }. Ids only",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          }
        ]
      }
    },
    "accountId": {
      "description": "With target: the one connected account it is for (a Composio connected account id). Without it, it is the workspace's default for that network",
      "type": "string"
    },
    "workspace": {
      "description": "The workspace to connect it to; defaults to the caller's own. Naming another (a client) needs control of it",
      "type": "string"
    },
    "handle": {
      "description": "Bluesky: the handle, like name.bsky.social",
      "type": "string"
    },
    "appPassword": {
      "description": "Bluesky: an app password (xxxx-xxxx-xxxx-xxxx) from Settings, Privacy and security, App passwords. Sealed, never returned",
      "type": "string"
    },
    "service": {
      "description": "Bluesky: the account's server when it is not bsky.social (https only)",
      "type": "string"
    },
    "instance": {
      "description": "Mastodon: the server, like mastodon.social (https only)",
      "type": "string"
    },
    "token": {
      "description": "Mastodon: an access token from Preferences, Development, New application. Sealed, never returned",
      "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"
    },
    "handle": {
      "description": "@name.bsky.social or @name@server",
      "type": "string"
    },
    "profileUrl": {
      "type": "string"
    },
    "connection": {
      "description": "set = new; rotated = the same account re-sealed; revived = an account connected before and removed",
      "type": "string",
      "enum": [
        "set",
        "rotated",
        "revived"
      ]
    },
    "replaced": {
      "description": "The account this one replaced, when the workspace had a different one",
      "type": "string"
    },
    "target": {
      "description": "The default target as saved",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "accountId": {
      "type": "string"
    },
    "saved": {
      "description": "Present when the call saved a default target",
      "type": "string",
      "const": "target"
    },
    "error": {
      "description": "no_target · bad_target · handle_required · app_password_required · not_an_app_password · bad_service · instance_required · token_required · bad_instance · refused · network_unreachable · network_error · connected_elsewhere · seal_failed · not_direct · unknown_network · forbidden · no_db",
      "type": "string"
    },
    "reason": {
      "description": "Plain words for the person, with the network's own reason where it gave one",
      "type": "string"
    },
    "retryable": {
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ]
}