Discord API reference
The Discord API has 3 endpoints, called the same way: POST /execute with the endpoint ID as capability and its fields as input, or pin Discord in the MCP server and call each one as a tool. The data comes back as JSON in results[0].data, with what the call cost in billing.credits_charged.
Every endpoint costs 1 credit per call, and a failed call costs nothing.
Endpoints
Open an endpoint for its input, the fields it returns and the request in cURL, Python and Node.js.
| Endpoint | What it returns | Price |
|---|---|---|
discord.server.get_widget |
Read a server's public widget: online presence count, voice channels, and a live sample of online members. | 1 credit |
discord.server.resolve_invite |
Resolve a Discord invite URL or code into its public server preview: name, description, features, booster tier, and member and online counts. | 1 credit |
discord.snowflake.inspect |
Decode any Discord snowflake ID into its UTC creation time and internal parts. | 1 credit |
Something missing or unclear? Ask the team that builds the Discord endpoints.