PeumeAPI

Social publishing & inbox · Slack

Connect a Slack channel

Finalize a Slack connect by creating the per-channel account. Served by a dedicated route, so it is not reachable through POST /v1/connect/{platform}. Send pendingDataToken for a first connect (the nonce from the OAuth redirect) or accountId to add another channel to a workspace already connected.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/connect-a-slack-channel \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "channelId": "your channelId",
    "channelIds": []
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: connect-a-slack-channel.

Parameters

channelIdstring

Slack channel id, C... or G.... Send this or channelIds, not both.

channelIdsarray

Several channels of the workspace to connect, each as its own account. With two or more distinct ids the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 on a reconnect. A single id behaves exactly like channelId.

redirect_urlstring

channelIds only: a URL to return in `redirect_url`, with `connected`, `profileId`, `accountId` and `accountIds` appended.

pendingDataTokenstring

Nonce from the OAuth redirect. Required unless accountId is sent.

accountIdstring

Existing Slack account whose workspace token is reused. Required unless pendingDataToken is sent.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.