Call it
curl https://api.peume.com/v1/call/connect-a-discord-channel \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"guildId": "your guildId"
}
}'const res = await fetch("https://api.peume.com/v1/call/connect-a-discord-channel", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"guildId": "your guildId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/connect-a-discord-channel",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"guildId": "your guildId"
}
},
)
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: connect-a-discord-channel.
Parameters
guildIdRequiredstringDiscord server (guild) the channel belongs to
channelIdstringText, announcement or forum channel to publish to. Send this or channelIds, not both.
channelIdsarraySeveral channels of the server to connect, each as its own account. With two or more distinct ids the response lists `accounts` and `failed` instead of `account`. A single id behaves exactly like channelId.
redirect_urlstringchannelIds only: a URL to return in `redirect_url`, with `connected`, `profileId`, `accountId` and `accountIds` appended.
