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>/messagesRead 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
| Name | Type | Required | Description |
|---|---|---|---|
| limit | number | optional | Number of messages to fetch, 1–100 (default 50). |
| before | string | optional | Message 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"