Documentation

Learn TicketsX faster

Setup guides, the full command reference, Premium features, and the REST API in one place.

Close a Ticket

POST/<guild_id>/api/tickets/<ticket_id>/close

Close an open ticket. A transcript is generated and the channel is removed following your server’s configured close behaviour.

Request Body

NameTypeRequiredDescription
reasonstringoptionalReason for closing the ticket. Stored in the transcript and sent to the archive channel.
Example request
curl -X POST \
  -H "Authorization: Bearer <API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"reason":"Resolved via CRM"}' \
  https://api.ticketsx.xyz/<guild_id>/api/tickets/<ticket_id>/close