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/tickets

Create 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

NameTypeRequiredDescription
creator_idstringrequiredDiscord user ID of the ticket creator.
panel_idnumberrequiredID of the ticket panel to open the ticket under.
contentstringoptionalInitial message content for the ticket.
formobjectoptionalPre-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/tickets
Example response
{
  "ticket_id": "42",
  "channel_id": "1098765432101234567",
  "creator_id": "123456789",
  "panel_id": 1,
  "status": "open"
}