Documentation
Learn TicketsX faster
Setup guides, the full command reference, Premium features, and the REST API in one place.
Open a Ticket
POST
/<guild_id>/api/ticketsCreate a new ticket on behalf of a user. The ticket is opened in the panel’s configured channel and triggers welcome messages and form display as normal.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| creator_id | string | required | Discord user ID of the ticket creator. |
| panel_id | number | required | ID of the ticket panel to open the ticket under. |
| content | string | optional | Initial message content for the ticket. |
| form | object | optional | Pre-filled form responses as { "Question": "Answer" } key–value pairs. |
Example request
curl -X POST \
-H "Authorization: Bearer <API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"creator_id":"123456789","panel_id":1,"content":"Opened via API","form":{"Issue":"Login broken"}}' \
https://api.ticketsx.xyz/<guild_id>/api/ticketsExample response
{
"ticket_id": "42",
"channel_id": "1098765432101234567",
"creator_id": "123456789",
"panel_id": 1,
"status": "open"
}