Developer & Agent API Portal

Authentication, OAuth2 Scopes & Webhooks

Understand public vs authenticated API routes, OAuth2 scopes, session cookies, and webhook HMAC verification.

Last updated: 1 min read

Authentication Tiers

Access ModelWhere UsedMechanism
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/mcpOpen 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 HMACPOST /api/patreon/webhookRequires 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/branding
  • guilds:read / guilds:write — Inspect & update guild configurations
  • backup:create / backup:restore — Trigger & restore structural snapshots
  • moderation:manage, tickets:manage, giveaways:manage, ai:chat

Search Fusion Bot Documentation