GET /guilds
Returns the list of guilds the caller has access to.- API key callers: returns all guilds the bot is in.
- OAuth users: returns guilds where the user has
MANAGE_GUILDorADMINISTRATOR. Bot owners see all guilds.
Example
Response fields
Discord guild ID.
Guild name.
Guild icon URL, or
null if no icon is set.Total number of members in the guild.
Access level. One of
admin, moderator, or bot-owner. Only present for OAuth users.GET /guilds/:id
Returns detailed information about a specific guild. Authentication: API key or JWT Bearer token required. OAuth users must haveADMINISTRATOR permission.
Path parameters
The Discord guild ID.
Response fields
Discord guild ID.
Guild name.
Guild icon URL.
Total number of members.
Total number of channels in the guild.
List of channels (capped at 500). Each item has
id, name, type (Discord channel type enum: 0=Text, 2=Voice, 4=Category, 5=Announcement, 13=Stage, 15=Forum, 16=Media), parentId, and position.Example
GET /guilds/:id/channels
Returns all channels in the guild (capped at 500). Authentication: API key or JWT Bearer token required. OAuth users must haveADMINISTRATOR permission.
Path parameters
The Discord guild ID.
Response fields
Returns an array of channel objects withid, name, type, parentId, and position.
Example
GET /guilds/:id/roles
Returns all roles in the guild (capped at 250). The@everyone role is excluded.
Authentication: API key or JWT Bearer token required. OAuth users must have ADMINISTRATOR permission.
Path parameters
The Discord guild ID.
Response fields
Returns an array of role objects.Role ID.
Role name.
Role color as a decimal integer (for example,
16711680 for red #FF0000).Example
GET /guilds/:id/config
Returns per-guild configuration (global defaults merged with guild overrides). Sensitive fields are masked. Authentication: API key or JWT Bearer token required. OAuth users must haveADMINISTRATOR permission.
Path parameters
The Discord guild ID.
Example
PATCH /guilds/:id/config
Updates per-guild configuration overrides. Only writable config sections are accepted. Authentication: API key or JWT Bearer token required. OAuth users must haveADMINISTRATOR permission.
Path parameters
The Discord guild ID.
Request body
A JSON object containing writable config sections to update (for example,
ai, welcome, spam, moderation, triage). Values are merged leaf-by-leaf into the existing config.Example
GET /guilds/:id/stats
Returns aggregate statistics for a guild — member count, AI conversations, moderation cases, and uptime. Authentication: API key or JWT Bearer token required. OAuth users must haveADMINISTRATOR permission.
Path parameters
The Discord guild ID.
Response fields
Discord guild ID.
Total members in the guild.
Total AI conversations logged for this guild.
Total moderation cases for this guild.
Bot process uptime in seconds.
Example
GET /guilds/:id/analytics
Returns time-series analytics data for dashboard charts — messages, joins/leaves, active members, AI usage, XP distribution, channel activity, command usage, and more. Authentication: API key or JWT Bearer token required. OAuth users must haveADMINISTRATOR permission.
Path parameters
The Discord guild ID.
Query parameters
Preset time range. Options:
today, week, month, custom. Default: week.Start of a custom date range in ISO 8601 format. Required when
range=custom.End of a custom date range in ISO 8601 format. Required when
range=custom. Maximum span is 90 days.Bucket size for time-series data. Options:
hour, day. Auto-selected based on range if omitted.When set to
1, true, yes, or on, includes comparison data for the previous equivalent period.Filter analytics to a specific channel ID.
Example
GET /guilds/:id/moderation
Returns recent moderation cases for the guild overview. Requires moderator permissions. Authentication: API key or JWT Bearer token required. OAuth users must haveMANAGE_GUILD or ADMINISTRATOR permission.
Path parameters
The Discord guild ID.
Query parameters
Page number. Default:
1.Items per page. Default:
25. Maximum: 100.Example
POST /guilds/:id/actions
Triggers a bot action on a guild. The only supported action issendMessage, which posts a text message to a channel.
Path parameters
The Discord guild ID.
Request body
The action to perform. Currently only
sendMessage is supported.The Discord channel ID to send the message to.
The message text to send. Maximum 10,000 characters.