Return the messages of a ticket in one call, instead of reading them one by one with GET /messages/{messageId}. These are the messages whose ids the ticket lists in messages_ids, each one exactly as GET /messages/{messageId} returns it, ordered by id (the order eDesk received them in, oldest first). created_at can be out of that order for a message eDesk imported later than it was sent.
Pagination. Use page and itemsPerPage (at most 100 messages a page); paginator.totalItemsCount is the number of messages on the ticket. Unlike the other lists, a page past the last one returns no messages rather than the last page again: stop at the first empty page, or once you have totalItemsCount messages. Almost every ticket fits on one page of 100.
Needs read access to Messages. A ticket that does not exist returns a 404, and one the token cannot access a 401, as GET /tickets/{ticketId} does.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||