API reference

Moderation and admin

Moderation routes use the AdminToken (or equivalent) extractor — not end-user Bearer tokens. Configure ADMIN_TOKEN (or project-specific secret) in the environment.

MethodPathAuthDescription
POST/moderation/users/:id/flagAdminFlag user for review
POST/moderation/posts/:id/takedownAdminTakedown post
POST/moderation/comments/:id/takedownAdminTakedown comment
GET/moderation/auditAdminAudit log
POST/admin/invitesAdminCreate invite codes

Security

Never expose the admin token to clients. Use server-side tools or secured operator consoles only.

Previous
Notifications
Next
Search