/ticket slash command in Discord.
Base path: /api/v1/guilds/:id/tickets
Authentication: API key or JWT Bearer token required. Admin permission required.
Rate limit: 30 requests per minute per IP.
GET /guilds/:id/tickets
Returns a paginated list of tickets for the guild with optional status and user filters.Path parameters
The Discord guild ID.
Query parameters
Filter by ticket status. Options:
open, closed.Filter to tickets opened by a specific Discord user ID.
Page number.
Items per page. Maximum
100.Response
List of ticket objects.
Total matching tickets.
Current page number.
Items per page.
Example
GET /guilds/:id/tickets/:ticketId
Returns full details for a single ticket.Path parameters
The Discord guild ID.
The database ticket ID.
Example
Error responses
| Status | Cause |
|---|---|
400 | Non-integer ticketId |
404 | Ticket not found for this guild |
503 | Database unavailable |
GET /guilds/:id/tickets/stats
Returns aggregate ticket statistics for the guild.Path parameters
The Discord guild ID.
Response
Number of currently open tickets.
Average time to close a ticket in seconds across all closed tickets.
0 if no tickets have been closed.Tickets created in the last 7 days.