All integrations
Get an API key
Discord
Send messages and manage channels in Discord guilds.
Communication
How an agent reaches it
MCPREST APICLI
How you authenticate
API key
- Create an application at discord.com/developers, then add a Bot to it.
- Copy the bot token and invite the bot to your server with the permissions it needs.
- Discord expects `Authorization: Bot <token>`, not Bearer.
Connection details
- Base URL
- https://discord.com/api/v10
- Pagination
- cursor
- Rate limit
- Per-route buckets. Read X-RateLimit-Remaining and honour Retry-After.
Common endpoints
| who am I | GET /users/@me |
| list guilds | GET /users/@me/guilds |
| send a message | POST /channels/{channel_id}/messages |
| read messages | GET /channels/{channel_id}/messages?limit=50 |
Worth knowing
- The Authorization scheme word is `Bot`. Bearer is only for user OAuth tokens.
- Reading message content needs the privileged Message Content intent enabled on the application.
- IDs are snowflakes and must be treated as strings; they exceed JavaScript's safe integer range.