Get Bot State
Retrieve the current state of the bot, including registered commands. Endpoint:GET /bot-state
Get Bot State
Response
Array of registered Discord commands with their configuration.
Bot state is cached and updated whenever commands are registered. This endpoint is public and does not require authentication.
Get API Configuration
Retrieve the base API configuration, including server IDs and OAuth client information. Endpoint:GET /config
Get Configuration
Response
The main Discord server (guild) ID for Anti-Raid
The Discord OAuth2 client ID
Invite link to the support server
This configuration is useful for client applications that need to know the Discord client ID for OAuth2 flows or want to direct users to the support server.
Get Bot Statistics
Retrieve real-time statistics about the bot, including shard information, guild count, and user count. Endpoint:GET /bot-stats
Get Bot Stats
Response
Map of shard IDs to shard connection information
Total number of guilds across all shards
Total number of cached users
Statistics are cached for 100 seconds to reduce load on the system. Subsequent requests within this window will return cached data.
List Global Key-Value Pairs
List global key-value pairs from the template shop or other global storage scopes. This is used for discovering available templates and other shared resources. Endpoint:GET /global-kvs
List Global KVs
The scope to filter by (e.g., “template_shop” for template shop listings)
SQL LIKE pattern to filter keys. Use ’%’ for wildcards. Defaults to ’%’ which lists all keys.
Response
Array of partial global KV objects
Authentication is required for this endpoint. Use an OAuth2 session or API token.
Get Specific Global Key-Value
Retrieve the full data for a specific global key-value entry, including its complete value and metadata. Endpoint:GET /global-kvs/{scope}/{key}/{version}
Get Global KV
The scope of the KV entry (e.g., “template_shop”)
The key identifier
The version number to retrieve
Response
The scope of the KV entry
The key identifier
Version number
The stored value (structure depends on the use case)
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
Use Cases
Health Monitoring
Use
/bot-stats to monitor bot health, shard status, and detect connectivity issuesTemplate Discovery
List and retrieve template shop entries using the global KV endpoints
Client Configuration
Use
/config to get OAuth2 client ID and support server links for your applicationCommand Registry
Query
/bot-state to see all registered commands and their configurationRate Limiting
All system endpoints respect standard API rate limits. Statistics endpoints have additional caching:/bot-stats- 100 second cache/bot-state- Cached indefinitely, updated on command registration
Next Steps
Authentication
Learn how to authenticate API requests
Internal API
Explore internal monitoring and management endpoints