PeumeAPI

Social publishing & inbox · Slack

List Slack channels for the channel picker

Serves the channel picker of the Slack connect flow. Slack's OAuth installs the bot into a workspace, not a channel, so after the redirect the caller lists the workspace's channels here and finalizes one with `POST /v1/connect/slack`.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/list-slack-channels-for-the-channel-picker \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "scopes": "posting"
  }
}'

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: list-slack-channels-for-the-channel-picker.

Parameters

pendingDataTokenstring

Nonce from the OAuth redirect (first connect).

accountIdstring

Existing active Slack account (yours or a team member's) whose workspace token is reused.

redirect_urlstring

Start-OAuth mode only: where to send the user after the connect completes. `redirectUrl` is accepted as an alias.

scopesstring

Start-OAuth mode only. Comma-separated permission areas to request instead of the full Slack scope set, same semantics as `scopes` on `GET /v1/connect/{platform}`. Omit it to request everything. - `posting`: installs the bot with the channel scopes it needs to post. - `messaging`: adds the history, DM and reaction scopes the inbox reads. - `analytics`, `comments`, `ads`: add nothing on Slack.

Example: posting

purposestring

Start-OAuth mode only. Connect the account for notifications only. Slack and Telegram only: `GET /v1/connect/{platform}` returns 400 for any other platform, and other platforms' own connect endpoints ignore it. The account is free, receives notifications, and cannot publish. To publish with it, connect it again without `purpose`. Refused with 400 when the channel or chat is already connected for publishing: connect a separate one for notifications. Adding another channel with `accountId` keeps the notifications-only setting of the account whose workspace token it reuses.

notifications

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.