Developer & Agent API Portal
Authentication, OAuth2 Scopes & Webhooks
Understand public vs authenticated API routes, OAuth2 scopes, session cookies, and webhook HMAC verification.
Authentication Tiers
| Access Model | Where Used | Mechanism |
|---|---|---|
| Public (No Auth Required) | GET /api/stats, GET /api/ping, GET /api/v1/health, /api/v1/stats, /api/v1/bot-info, /api/v1/tools, /api/v1/pricing, POST /api/mcp | Open CORS read endpoints protected by IP rate limiters. |
| Discord OAuth2 Session | /dash/api/*, /dashboard/:guildId/api/*, /api/premium/* | Requires authenticated HttpOnly session cookie, CSRF Origin validation, and checkGuildAdminAccess (Admin/ManageGuild). |
| Patreon Webhook HMAC | POST /api/patreon/webhook | Requires valid X-Patreon-Signature header verified in constant time (crypto.timingSafeEqual HMAC-MD5) plus duplicate event-ID idempotency. |
OAuth2 Protected Resource Scopes
Published at /.well-known/oauth-protected-resource (RFC 9728):
bot:read/bot:write— Read bot telemetry & manage per-server nickname/brandingguilds:read/guilds:write— Inspect & update guild configurationsbackup:create/backup:restore— Trigger & restore structural snapshotsmoderation:manage,tickets:manage,giveaways:manage,ai:chat