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"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-slack-channels-for-the-channel-picker", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"scopes": "posting"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-slack-channels-for-the-channel-picker",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"scopes": "posting"
}
},
)
print(res.json()["output"])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
pendingDataTokenstringNonce from the OAuth redirect (first connect).
accountIdstringExisting active Slack account (yours or a team member's) whose workspace token is reused.
redirect_urlstringStart-OAuth mode only: where to send the user after the connect completes. `redirectUrl` is accepted as an alias.
scopesstringStart-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
purposestringStart-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
