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 TicketsGET /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}: Get TicketGET /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/current: Get Current TicketPATCH /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}: Set Ticket Custom AttributesPUT /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:
- User token: any agent who can see the conversation — see Who can see a conversation.
- Agent-bot token: not allowed.
The ticket object
| Field | Type | Description |
|---|---|---|
id | integer | Ticket ID. |
ticket_status | string | open or closed. |
initiated_by | string | Who started the conversation: user (the contact), agent, agent_bot. |
channel_name | string | Inbox channel type, e.g. Channel::Api, Channel::Whatsapp. |
created_at | string | When the ticket opened (ISO 8601). |
resolved_at | string | When it was closed, or null. |
total_time | integer | Seconds from opening to closing, or null while open. |
resolved_by_id, resolved_agent_id | integer | Agent who resolved the conversation, or null (e.g. closed by a bot or automation). |
custom_attributes | object | Your data for this ticket. |
account_id, contact_id, inbox_id | integer | Related IDs. |
conversation_id | integer | The 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_at | string | Last update (ISO 8601). |
List tickets
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
conversation_id | integer | Yes | Conversation 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
- 200
- 401
- 403
- 404
The conversation's tickets, oldest first.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.