ADMINISTRATOR). The standard endpoint is rate-limited to 30 requests per minute and the export endpoint to 10 requests per minute per IP.
GET /guilds/:id/audit-log
Returns paginated audit log entries with optional filters. Authentication: API key or JWT Bearer token required.Path parameters
The Discord guild ID.
Query parameters
Filter by action type (for example,
config.update).Filter by the admin user ID who performed the action.
ISO 8601 timestamp lower bound.
ISO 8601 timestamp upper bound.
Items per page. Default:
25. Maximum: 100.Number of records to skip. Default:
0.Response fields
List of audit log entries.
Total number of matching entries.
Items per page used in this response.
Offset used in this response.
Example
GET /guilds/:id/audit-log/export
Exports the filtered audit log as a CSV or JSON file download. Allows up to 10,000 rows per export. Authentication: API key or JWT Bearer token required.Path parameters
The Discord guild ID.
Query parameters
Export format. Options:
csv, json. Default: json.Maximum rows to export. Default:
1000. Maximum: 10000.Filter by action type.
Filter by admin user ID.
ISO 8601 timestamp lower bound.
ISO 8601 timestamp upper bound.
Response
Returns either a CSV file withContent-Type: text/csv or a JSON file with Content-Type: application/json. Both include a Content-Disposition: attachment header with a timestamped filename.
JSON response shape:
The guild ID.
ISO 8601 timestamp of the export.
Number of entries exported.
The audit log entries.