<!-- Generated from the canonical 99 Digital API documentation. Do not edit this file. -->

Canonical page: https://docs.99digital.co.il/online-api/conversations/conversation-basics

# Conversation Basics

A conversation is a thread between a contact and your team in one inbox. This
page explains what every conversation endpoint has in common.

## Display IDs

In every path, `{conversation_id}` is the conversation's **display ID**: the
`id` field in conversation responses and the number shown in the dashboard
URL (`…/conversations/1501`). A few ticket and event responses also show the
conversation's internal ID — their pages say so.

## Statuses

**Conversation statuses.** The status names in the API differ from the labels
in the dashboard:

| API value | Dashboard label | Meaning |
| --- | --- | --- |
| `open` | **Bot** | The conversation is handled by the bot / automation. |
| `pending` | **Manual** | The conversation is handled by a human agent. |
| `snoozed` | Snoozed | Hidden until `snoozed_until`, then reopened. |
| `resolved` | Resolved | Closed. |

Change the status with
[Toggle Conversation Status](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status) —
for example `pending` to hand a conversation from the bot over to a human.

## Tickets

Every conversation is split into [tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets);
a new ticket starts when a resolved conversation is reopened. The first
ticket opens with the conversation and closes when the conversation is
resolved, so one long-lived conversation — a WhatsApp thread, for example —
can hold many tickets. Messages and
[events](https://docs.99digital.co.il/online-api/conversations/list-conversation-events) carry a
`ticket_id`.

## No generic update or delete

There is no `PATCH /conversations/{id}` and no `DELETE /conversations/{id}`.
Change a conversation through the dedicated endpoints below (status,
priority, assignment, labels, custom attributes, SLA, and so on). A
conversation is deleted only when its contact is
[deleted](https://docs.99digital.co.il/online-api/contacts/delete-contact).

To create a conversation, use
[Add Conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation). If the
contact already has a conversation in that inbox, it returns that
conversation and adds your message to it instead.

## Endpoints in this section

- `GET /api/v1/accounts/{account_id}/conversations`: [List conversations](https://docs.99digital.co.il/online-api/conversations/list-conversations)
- `GET /api/v1/accounts/{account_id}/conversations/meta`: [Conversation counts](https://docs.99digital.co.il/online-api/conversations/conversation-counts)
- `GET /api/v1/accounts/{account_id}/conversations/search`: [Search conversations by message text](https://docs.99digital.co.il/online-api/conversations/search-conversations)
- `POST /api/v1/accounts/{account_id}/conversations/filter`: [Filter conversations](https://docs.99digital.co.il/online-api/conversations/filter-conversations)
- `POST /api/v1/accounts/{account_id}/conversations`: [Create a conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation)
- `POST /api/v1/accounts/{account_id}/conversations/by_phone_number`: [Find or create a conversation by phone number](https://docs.99digital.co.il/online-api/conversations/find-conversation-by-phone)
- `GET /api/v1/accounts/{account_id}/conversations/{conversation_id}`: [Get a conversation](https://docs.99digital.co.il/online-api/conversations/get-conversation)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_status`: [Change the status](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_priority`: [Change the priority](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-priority)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/assignments`: [Assign an agent or team](https://docs.99digital.co.il/online-api/conversations/assign-conversation)
- `GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/labels`: [List conversation labels](https://docs.99digital.co.il/online-api/conversations/list-conversation-labels)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/labels`: [Set conversation labels](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/custom_attributes`: [Set custom attributes](https://docs.99digital.co.il/online-api/conversations/set-conversation-custom-attributes)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/mute` and `/unmute`: [Mute](https://docs.99digital.co.il/online-api/conversations/mute-conversation) / [unmute](https://docs.99digital.co.il/online-api/conversations/unmute-conversation)
- `GET/POST/PATCH/DELETE /api/v1/accounts/{account_id}/conversations/{conversation_id}/participants`: Participants — [list](https://docs.99digital.co.il/online-api/conversations/participants/list-participants), [add](https://docs.99digital.co.il/online-api/conversations/participants/add-participants), [replace](https://docs.99digital.co.il/online-api/conversations/participants/replace-participants), [remove](https://docs.99digital.co.il/online-api/conversations/participants/remove-participants)
- `GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/attachments`: [List attachments](https://docs.99digital.co.il/online-api/conversations/list-conversation-attachments)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/transcript`: [Email a transcript](https://docs.99digital.co.il/online-api/conversations/send-conversation-transcript)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/send_survey`: [Send a CSAT survey](https://docs.99digital.co.il/online-api/conversations/send-csat-survey)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/apply_sla`: [Apply or remove an SLA policy](https://docs.99digital.co.il/online-api/conversations/apply-sla-policy)
- `POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/update_last_seen`, `/unread`, `/set_unread`: Read / unread — [mark as read](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-read), [mark as unread](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-unread), [set unread](https://docs.99digital.co.il/online-api/conversations/set-conversation-unread)
- `GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/conversation_events`: [Conversation events (audit trail)](https://docs.99digital.co.il/online-api/conversations/list-conversation-events), and [one event](https://docs.99digital.co.il/online-api/conversations/get-conversation-event)
- `POST /api/v1/accounts/{account_id}/bulk_actions`: [Bulk-update conversations](https://docs.99digital.co.il/online-api/conversations/bulk-update-conversations)
- `POST /api/v1/accounts/{account_id}/bulk_actions/mark_as_read_all` and `/mark_as_unread`: Bulk read / unread — [read](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read), [unread](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-unread)

The fields of the conversation object are explained on
[Get Conversation](https://docs.99digital.co.il/online-api/conversations/get-conversation).

## Who can see a conversation

All conversation endpoints only return conversations the caller is allowed
to see. Member endpoints (`/conversations/{conversation_id}/...`) return
`403` when the caller is not allowed to see that conversation.

- **New rules system**: the caller is the assignee, **or** their role has
  **Inbox read all conversations** for the conversation's inbox, **or**
  **Inbox read (Team)** for the inbox and the conversation belongs to one of
  the caller's teams, **or** **Inbox read unassigned conversations** for the
  inbox and the conversation has no assignee and no team.
- **Legacy**: agents with "see all conversations" see everything; other
  agents see conversations assigned to them, conversations of their teams,
  and inboxes where they have **Inbox read all conversations**.
- **Agent-bot tokens** can see every conversation, but may only call:
  [create conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation),
  [get conversation](https://docs.99digital.co.il/online-api/conversations/get-conversation),
  [change status](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status),
  [change priority](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-priority),
  [assign](https://docs.99digital.co.il/online-api/conversations/assign-conversation),
  [set labels](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels),
  [set custom attributes](https://docs.99digital.co.il/online-api/conversations/set-conversation-custom-attributes),
  [apply SLA](https://docs.99digital.co.il/online-api/conversations/apply-sla-policy),
  [send survey](https://docs.99digital.co.il/online-api/conversations/send-csat-survey), and
  [create message](https://docs.99digital.co.il/online-api/messages/create-a-message). The full list of
  endpoints open to bots, outside conversations too, is under
  [Authentication](https://docs.99digital.co.il/online-api/getting-started#authentication).

Actions on a conversation also need the matching **inbox permission** of the
caller's role (new rules system), scoped to the conversation's inbox — for
example **Inbox resolve** to resolve it. These are listed per endpoint; the
full list is under [Inbox permissions](https://docs.99digital.co.il/online-api/getting-started#inbox-permissions).
