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

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

# Get Conversation Event

`GET https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/conversation_events/{event_id}`

Get one event from a conversation's audit trail.

The audit trail of a conversation: status changes, Bot/Manual switches,
assignments, team changes, labels, priority, SLA, custom and additional
attribute changes, and mentions. Each event carries the `ticket_id` it
belongs to (see [Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets)).

| Setting | Value |
| --- | --- |
| **Method** | `GET` |
| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/conversation_events` ([list](https://docs.99digital.co.il/online-api/conversations/list-conversation-events), oldest first) and `/conversation_events/{event_id}` ([one event](https://docs.99digital.co.il/online-api/conversations/get-conversation-event)) |
| **Authorization** | User token. |

**Permissions:**

- User token: any agent who can see the conversation — see
  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).
- Agent-bot token: not allowed.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `account_id` | integer | Yes | Account ID. |
| `conversation_id` | integer | Yes | Conversation display ID. |
| `event_id` | integer | Yes | The event's ID, as returned by [List Conversation Events](https://docs.99digital.co.il/online-api/conversations/list-conversation-events). |

**Event fields**

| Field | Description |
| --- | --- |
| `event_type` | `agent`, `team`, `label`, `status`, `sla`, `custom_attribute`, `additional_attributes`, `priority`, `agent_mentions`, `bot_mode`, `human_mode`, `other`. `bot_mode` / `human_mode` are switches to `open` (Bot) / `pending` (Manual). |
| `created_by` | `system`, `agent_create` (an agent or API user), `agent_bot`, `user` (the contact). |
| `type_old_status`, `type_new_status` | For `status`, `bot_mode` and `human_mode` events. |
| `type_agent` + `type_agent_old_value` / `type_agent_new_value` | `add_agent` / `remove_agent` / `change_agent` and the agent IDs. |
| `type_team` + `team_type_old_value` / `team_type_new_value` | `add_team` / `remove_team` / `change_team` and the team IDs. |
| `type_label` + `type_label_value` | `add_label` / `remove_label` and the labels. |
| `type_priority`, `type_sla_event`, `type_custom_attribute`, `type_additional_attributes`, `type_agent_mentions` | Details of the other event types. |
| `account_id`, `contact_id`, `conversation_id`, `inbox_id`, `ticket_id` | Related IDs (`conversation_id` is the internal ID, not the display ID used in paths). |
| `created_at`, `updated_at` | Unix timestamps. |

The fields that describe the change depend on `event_type`; the others are
`null`.

**Example: one event (an assignment)**

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

Response (`200 OK`). The event object is not wrapped in `payload`; null
fields are trimmed here.

```json
{
  "id": 6101,
  "created_by": "agent_create",
  "event_type": "agent",
  "type_agent": "change_agent",
  "type_agent_new_value": 51,
  "type_agent_old_value": null,
  "created_at": 1794472920,
  "updated_at": 1794472920,
  "account_id": 12,
  "contact_id": 801,
  "conversation_id": 2301,
  "inbox_id": 31,
  "ticket_id": 903
}
```

## Authentication

`api_access_token` in the header — Your access token. A user token is in the dashboard under **Profile settings → Access Token**, and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See [Getting Started](https://docs.99digital.co.il/online-api/getting-started#authentication).

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `account_id` | path | integer | Yes | The numeric ID of your account: the number after `/app/accounts/` in the dashboard URL. Example: `12`. |
| `conversation_id` | path | integer | Yes | The numeric ID of the conversation: its display ID, which is the `id` in conversation responses and the number in the dashboard URL. Example: `1501`. |
| `event_id` | path | integer | Yes | The event's ID, as returned by [List Conversation Events](https://docs.99digital.co.il/online-api/conversations/list-conversation-events). Example: `6101`. |

## Responses

### 200 — The event.

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `id` | integer | The event ID. |
| `event_type` | string | What changed. One of: `agent` — The assigned agent changed — see `type_agent`; `team` — The assigned team changed — see `type_team`; `label` — Labels were added or removed — see `type_label`; `status` — The status changed — see `type_old_status` and `type_new_status`; `sla` — An SLA event — see `type_sla_event`; `custom_attribute` — A custom attribute changed — see `type_custom_attribute`; `additional_attributes` — An additional attribute changed — see `type_additional_attributes`; `priority` — The priority changed — see `type_priority`; `agent_mentions` — An agent was mentioned — see `type_agent_mentions`; `bot_mode` — A switch to Bot (`open`) — see `type_old_status` and `type_new_status`; `human_mode` — A switch to Manual (`pending`) — see `type_old_status` and `type_new_status`; `other` — Any other change. |
| `created_by` | string | Who made the change. One of: `system` — The system; `agent_create` — An agent, or an API call with a user token; `agent_bot` — An agent bot; `user` — The contact. |
| `type_old_status` | string \| null | In `status`, `bot_mode` and `human_mode` events, the previous status. |
| `type_new_status` | string \| null | In `status`, `bot_mode` and `human_mode` events, the new status. |
| `type_agent` | string \| null | In `agent` events, what happened to the assigned agent. One of: `add_agent` — An agent was added to the conversation; `remove_agent` — The agent was removed from the conversation; `change_agent` — The assigned agent changed. The previous value can be `null`; `null` — Not an `agent` event. |
| `type_agent_old_value` | integer \| null | In `agent` events, the previous agent's ID. |
| `type_agent_new_value` | integer \| null | In `agent` events, the new agent's ID. |
| `type_team` | string \| null | In `team` events, what happened to the assigned team. One of: `add_team` — A team was added to the conversation; `remove_team` — The team was removed from the conversation; `change_team` — The assigned team changed; `null` — Not a `team` event. |
| `team_type_old_value` | integer \| null | In `team` events, the previous team's ID. |
| `team_type_new_value` | integer \| null | In `team` events, the new team's ID. |
| `type_label` | string \| null | In `label` events, whether labels were added or removed. One of: `add_label` — Labels were added — listed in `type_label_value`; `remove_label` — Labels were removed — listed in `type_label_value`; `null` — Not a `label` event. |
| `type_label_value` | string \| null | In `label` events, the labels added or removed, as a JSON-encoded array in a string. |
| `type_priority` | any | The details of a `priority` event, or `null`. |
| `type_sla_event` | any | The details of an `sla` event, or `null`. |
| `type_custom_attribute` | any | The details of a `custom_attribute` event, or `null`. |
| `type_additional_attributes` | any | The details of an `additional_attributes` event, or `null`. |
| `type_agent_mentions` | any | The details of an `agent_mentions` event, or `null`. |
| `account_id` | integer | The account ID. |
| `contact_id` | integer | The contact ID. |
| `conversation_id` | integer | The conversation's **internal** ID — not the display ID used in paths. |
| `inbox_id` | integer | The inbox ID. |
| `ticket_id` | integer | The [ticket](https://docs.99digital.co.il/online-api/tickets/list-tickets) the event belongs to. |
| `created_at` | integer | When the event happened (Unix time, seconds). |
| `updated_at` | integer | The last update (Unix time, seconds). |

#### Example: Assignment

Agent 51 was assigned to the conversation.

```json
{
  "id": 6101,
  "created_by": "agent_create",
  "event_type": "agent",
  "team_type_new_value": null,
  "team_type_old_value": null,
  "type_additional_attributes": null,
  "type_agent": "change_agent",
  "type_agent_mentions": null,
  "type_agent_new_value": 51,
  "type_agent_old_value": null,
  "type_custom_attribute": null,
  "type_label": null,
  "type_label_value": null,
  "type_new_status": null,
  "type_old_status": null,
  "type_priority": null,
  "type_sla_event": null,
  "type_team": null,
  "created_at": 1794472920,
  "updated_at": 1794472920,
  "account_id": 12,
  "contact_id": 801,
  "conversation_id": 2301,
  "inbox_id": 31,
  "ticket_id": 903
}
```

### 401 — The access token is missing or wrong, or its user does not belong to this account.

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | The error message. |

#### Example: Invalid token

The api_access_token header is missing or wrong.

```json
{
  "error": "Invalid Access Token"
}
```

#### Example: Another account

A valid token, for a user who is not in this account.

```json
{
  "error": "You are not authorized to access this account"
}
```

### 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See [Authorization](https://docs.99digital.co.il/online-api/getting-started#authorization).

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | The error message. |

#### Example: No permission

The role lacks the permission.

```json
{
  "error": "You are not authorized to do this action"
}
```

#### Example: Agent bot

An agent-bot token on an endpoint that is not open to bots.

```json
{
  "error": "Access to this endpoint is not authorized for bots"
}
```

### 404 — The resource does not exist in this account.

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | The error message. |

#### Example

```json
{
  "error": "Resource could not be found"
}
```
