Home /Docs /API endpoints

API endpoints

v1 route table relative to the API base.

Routes

MethodPathScopeDescription
GET/mereadCalling key: team, scopes, server count
GET/serversreadClaimed servers for the key's team
GET/servers/{id}/configreadFull moderation config
PUT/servers/{id}/config/{section}writeReplace one section (validated like the dashboard)
GET/servers/{id}/config/exportreadFull export envelope
POST/servers/{id}/config/importwriteImport export JSON
POST/servers/{id}/config/clonewriteBody {"from":"<guild>"}
GET/servers/{id}/config/auditreadRecent config changes
GET/servers/{id}/structure-snapshotreadSnapshot metadata
POST/servers/{id}/structure-snapshotwriteCapture now
POST/servers/{id}/structure-snapshot/restorewriteRestore missing roles/channels
GET/servers/{id}/onboardingreadSetup checklist progress
GET/servers/{id}/insightsreadModeration insights (?days=)
GET/servers/{id}/community-insightsreadCommunity activity: messages, voice, joins (?days=)
GET/servers/{id}/casesreadRecent cases (?limit=)
GET/servers/{id}/strikesreadStrike counts
GET/servers/{id}/jailsreadActive jails
GET/servers/{id}/cases/{case_id}readSingle case
GET/servers/{id}/cases?user_id=readFilter cases by user
POST/servers/{id}/actions/{action}writenote Β· warn Β· timeout Β· kick Β· ban Β· unban Β· unjail
POST/servers/{id}/webhooks/testwriteEnqueue a test webhook event

Errors are JSON {"error":"…"} with 401 / 403 / 404 / 400 / 402 as appropriate. The envelope is additive within v1.

Moderation actions

Body JSON:

{
  "user_id": "<platform user id>",
  "reason": "optional",
  "minutes": 10,
  "delete_message_days": 0
}
  • Discord: full note / warn / timeout / kick / ban (bot needs hierarchy + permissions)
  • Telegram: note/warn (case only); timeout = mute; kick = ban+unban; ban = banChatMember
  • Slack: note/warn (case + mod-log); kick/timeout record a case (workspace remove is admin-side)

Response includes case_id, applied, platform, detail. Actor is recorded as key:<key_id>.

Example

curl -H "Authorization: Bearer mb_<id>_<secret>" \
  https://YOUR_HOST/api/v1/servers

curl -X POST -H "Authorization: Bearer mb_…" -H "Content-Type: application/json" \
  -d '{"user_id":"123","reason":"spam","minutes":30}' \
  https://YOUR_HOST/api/v1/servers/GUILD_ID/actions/timeout

← All docsΒ· Dashboard