Messages, guilds, webhooks. Build bots and integrations for communities.
https://discord.com/api/v10
The Discord API lets you build bots that interact with servers (guilds), send messages, manage channels, and respond to events. The REST API handles CRUD operations while the Gateway (WebSocket) provides real-time events.
Bot tokens use a Bot prefix in the Authorization header (not Bearer). The API is rate-limited per route, and returns rate limit headers so you can handle them gracefully. Discord uses snowflake IDs (large integers) for all resources.
Bot when creating the connection| Method | Path | Description |
|---|---|---|
| POST | /channels/{id}/messages |
Send a message to a channel |
| GET | /channels/{id}/messages |
Get message history |
| GET | /guilds/{id} |
Get server (guild) info |
| GET | /guilds/{id}/channels |
List server channels |
| GET | /guilds/{id}/members |
List server members |
| PUT | /channels/{id}/messages/{id}/reactions/{emoji}/@me |
Add emoji reaction |
| GET | /users/@me |
Get the bot's own user info |
| PATCH | /guilds/{id}/members/{id} |
Modify a guild member (roles, nick) |
Post rich embeds to Discord when your CI/CD pipeline completes.
Auto-moderate messages, manage roles, and enforce server rules.
Connect external services to Discord channels via webhooks.
Build slash command bots for server management, polls, and games.