GET /warnings
Returns paginated warnings for a guild with optional filters. Authentication: API key or JWT Bearer token required.Query parameters
The Discord guild ID.
Filter warnings by target user ID.
Filter by active status (
true or false).Filter by severity. Options:
low, medium, high.Page number. Default:
1.Items per page. Default:
25. Maximum: 100.Response fields
List of warning records.
Total matching warnings.
Current page.
Items per page.
Total pages.
Example
GET /warnings/user/:userId
Returns a warning summary and history for a specific user, including active warning count, total points, breakdown by severity, and the 50 most recent warnings. Authentication: API key or JWT Bearer token required.Path parameters
The Discord user ID.
Query parameters
The Discord guild ID.
Response fields
The queried Discord user ID.
Number of currently active warnings.
Total points from active warnings.
Active warning count keyed by severity (for example,
{ "low": 1, "high": 2 }).Up to 50 most recent warnings for this user.
Example
GET /warnings/stats
Returns aggregate warning statistics for a guild. Authentication: API key or JWT Bearer token required.Query parameters
The Discord guild ID.
Response fields
All-time total number of warnings issued.
Number of currently active warnings.
Active warning count keyed by severity.
Top 10 users by active warning points. Each item has
user_id, count, and points.