Documentation

Learn TicketsX faster

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

Read Ticket Messages

GET/<guild_id>/api/tickets/<ticket_id>/messages

Read the recent message history of a ticket (newest last), with cursor pagination. This exposes private ticket content, so it requires the `read_ticket_messages` permission (off by default).

Query Parameters

NameTypeRequiredDescription
limitnumberoptionalNumber of messages to fetch, 1–100 (default 50).
beforestringoptionalMessage ID to page backwards from (use next_before from the previous response).
Example request
curl -X GET \
  -H "Authorization: Bearer <API_TOKEN>" \
  "https://api.ticketsx.xyz/<guild_id>/api/tickets/<ticket_id>/messages?limit=50"