Skip to content

Guest API: Tickets

The user’s support tickets, and writing on one.

What it doesRoute
List the user’s ticketsGET /guest/v1/tickets
Read a ticketGET /guest/v1/tickets/{ticket_id}
Write on a ticketPOST /guest/v1/tickets/{ticket_id}/messages

GET /guest/v1/tickets

Needs: the app key (X-CRM-App-Key) and the signed-in user’s token (Authorization: Bearer …), or their id for an app with unverified sign-in. See From a website or web app.

Answers

StatusBodyMeaning
200SupportTicketPageOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
403problemRefused: the app is switched off, or this is not allowed.
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

GET /guest/v1/tickets/{ticket_id}

The ticket, where it has got to, and its conversation.

Needs: the app key (X-CRM-App-Key) and the signed-in user’s token (Authorization: Bearer …), or their id for an app with unverified sign-in. See From a website or web app.

Parameters

NameInDescription
ticket_id (required)pathThe ticket’s id.

Answers

StatusBodyMeaning
200SupportTicketOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
403problemRefused: the app is switched off, or this is not allowed.
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

POST /guest/v1/tickets/{ticket_id}/messages

Needs: the app key (X-CRM-App-Key) and the signed-in user’s token (Authorization: Bearer …), or their id for an app with unverified sign-in. See From a website or web app.

Parameters

NameInDescription
ticket_id (required)pathThe ticket’s id.
Idempotency-KeyheaderYour own id for this send (at most 100 characters): sent again after a timeout, it is kept once.

Body (application/json): MessageBody

FieldTypeDescription
attachment_idsarray of stringPictures uploaded through an AttachmentUpload and not yet sent.
text (always)string

Answers

StatusBodyMeaning
201PartMade
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
403problemRefused: the app is switched off, or this is not allowed.
404problemNot found, or the part is switched off.
409problemRefused as things stand: the problem says why.
422problemA value that is not right: the problem says which.
429problemToo many requests: wait for Retry-After.