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>/closeClose an open ticket. A transcript is generated and the channel is removed following your server’s configured close behaviour.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| reason | string | optional | Reason 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