Discord webhooks are the simplest way to post to a channel programmatically. In a channel's Settings › Integrations › Webhooks you create a webhook and copy its URL. Anyone with the URL can post to that channel — no bot, no OAuth, no audit. PostWire just POSTs your message to the webhook.
Create the webhook at Channel › Edit › Integrations › Webhooks › New Webhook and copy the URL. PostWire stores it encrypted and posts only what you send. You can also connect from the dashboard without writing code.
curl -X POST https://postwire.io/api/connect \
-H "Authorization: Bearer $POSTWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"discord","credentials":{"webhook_url":"https://discord.com/api/webhooks/123/abc"}}'
Once connected, publishing is a single request. Add more networks by putting more strings in platforms — same payload, one call.
curl -X POST https://postwire.io/api/post \
-H "Authorization: Bearer $POSTWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platforms":["discord"],"text":"Hello from PostWire 👋"}'
Response: {"results":[{"ok":true,"platform":"discord", ...}]}
PostWire ships a first-class MCP server — not docs-only. Add it to any MCP client (Claude, Cursor, your own agent):
{
"mcpServers": {
"postwire": {
"command": "npx",
"args": ["-y", "postwire-mcp"],
"env": { "POSTWIRE_API_KEY": "pw_live_xxx" }
}
}
}
Then the agent just calls the tool — no HTTP plumbing:
{
"name": "post_to_social",
"arguments": { "platforms": ["discord"], "text": "Shipped today 🚀" }
}
| Direct integration | PostWire | |
|---|---|---|
| Setup | Implement Discord's API + auth | Connect once |
| Credential storage | You secure it | Encrypted (AES-256-GCM) |
| AI agent support | Build your own tool | MCP tool out of the box |
| Other networks | One integration each | 9 networks, one API |
| Plan | Price | Brands |
|---|---|---|
| Free | $0 | 1 brand · 30 posts/mo |
| Starter | $9 | 3 brands · 300/mo |
| Pro | $29 | 10 brands · 2,000/mo |
| Agency | $99 | 50 brands |
| Scale | $299 | 200 brands |
Running 50 brands on Ayrshare costs roughly $779 — and its MCP is docs-only, so an agent can't actually post. See PostWire vs Ayrshare.
Connect Discord — free →