Skip to main content

List Tickets

GET 

/accounts/:account_id/conversations/:conversation_id/tickets

Returns all tickets of the conversation, oldest first.

Tickets​

A ticket is one "case" inside a conversation. The first ticket opens when the conversation is created. It is closed when the conversation is resolved, and a new ticket opens when the conversation is reopened. So one long-lived conversation (for example a WhatsApp thread) can hold many tickets. Messages and conversation events carry the ticket_id they belong to. Closing a ticket fires the ticket_resolved webhook event.

Tickets are created and closed automatically; there is no endpoint to create or delete one. Through the API you can read tickets and store custom attributes on them (for example a case type or a refund amount).

All ticket endpoints are nested under a conversation ({conversation_id} is the display ID — see Conversation Basics).

Endpoints in this section

  • GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets: List Tickets
  • GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}: Get Ticket
  • GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/current: Get Current Ticket
  • PATCH /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}: Set Ticket Custom Attributes
  • PUT /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}/destroy_custom_attributes: Delete Ticket Custom Attributes

Authorization (all ticket endpoints): user token; the caller must be able to see the conversation (see Who can see a conversation).

Permissions:

The ticket object​

FieldTypeDescription
idintegerTicket ID.
ticket_statusstringopen or closed.
initiated_bystringWho started the conversation: user (the contact), agent, agent_bot.
channel_namestringInbox channel type, e.g. Channel::Api, Channel::Whatsapp.
created_atstringWhen the ticket opened (ISO 8601).
resolved_atstringWhen it was closed, or null.
total_timeintegerSeconds from opening to closing, or null while open.
resolved_by_id, resolved_agent_idintegerAgent who resolved the conversation, or null (e.g. closed by a bot or automation).
custom_attributesobjectYour data for this ticket.
account_id, contact_id, inbox_idintegerRelated IDs.
conversation_idintegerThe conversation's display ID in List Tickets and Get Ticket. In Get Current Ticket, Set Ticket Custom Attributes and Delete Ticket Custom Attributes it is the internal conversation ID (see the note there).
updated_atstringLast update (ISO 8601).

List tickets​

SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.

Example request

curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'

Example response (200 OK). The conversation was resolved twice and reopened, so it has two closed tickets and one open ticket.

{
"payload": [
{
"id": 901,
"channel_name": "Channel::Api",
"initiated_by": "user",
"resolved_at": "2026-11-12T08:20:00.000Z",
"ticket_status": "closed",
"total_time": 600,
"created_at": "2026-11-12T08:10:00.000Z",
"updated_at": "2026-11-12T08:20:00.004Z",
"account_id": 12,
"contact_id": 801,
"conversation_id": 1501,
"inbox_id": 31,
"resolved_agent_id": 51,
"resolved_by_id": 51,
"custom_attributes": {}
},
{
"id": 902,
"channel_name": "Channel::Api",
"initiated_by": "user",
"resolved_at": "2026-11-12T08:35:00.000Z",
"ticket_status": "closed",
"total_time": 300,
"created_at": "2026-11-12T08:30:00.000Z",
"updated_at": "2026-11-12T08:35:00.004Z",
"account_id": 12,
"contact_id": 801,
"conversation_id": 1501,
"inbox_id": 31,
"resolved_agent_id": null,
"resolved_by_id": null,
"custom_attributes": {}
},
{
"id": 903,
"channel_name": "Channel::Api",
"initiated_by": "user",
"resolved_at": null,
"ticket_status": "open",
"total_time": null,
"created_at": "2026-11-12T08:40:00.000Z",
"updated_at": "2026-11-12T08:40:00.000Z",
"account_id": 12,
"contact_id": 801,
"conversation_id": 1501,
"inbox_id": 31,
"resolved_agent_id": null,
"resolved_by_id": null,
"custom_attributes": {}
}
]
}

To store your own data on a ticket, use Set Ticket Custom Attributes.

Request​

Responses​

The conversation's tickets, oldest first.