{
  "info": {
    "_postman_id": "982007f5-395c-55d6-867e-197b8c50cf7b",
    "name": "99digital - Online API",
    "description": "Every endpoint of the **99digital Online API**, with ready-to-send samples — one request per example in the documentation — and the documented responses saved as examples. Generated from the [Online API documentation](https://docs.99digital.co.il/online-api), so it always matches it.\n\n## Quick start\n\n1. Open the collection's **Variables** tab and fill in:\n   - `api_access_token` — your access token: in the Online dashboard, **Profile settings → Access Token**.\n   - `account_id` — the number after `/app/accounts/` in your dashboard URL.\n   - `base_url` — change it only if your account runs on its own Online domain.\n2. Send **Conversations → Conversation Counts** to check the token.\n3. Open any folder and press **Send**.\n\n## IDs\n\nPaths use variables — `{{contact_id}}`, `{{conversation_id}}`, `{{team_id}}` and so on — which start empty. Fill them in with IDs from your account; the create requests (Create Contact, Add Conversation, Create a Message, Create a Team, …) store the new ID in its variable for you.\n\n> **Warning:** The sample bodies use example IDs (inboxes, agents, teams, conversations). Replace them with your own before you send a request that changes data — and remember that requests run against your live account.\n\n## Webhooks\n\n**Webhooks → Webhook Events** holds a sample of every payload Online sends to a webhook. Set `webhook_url` to your endpoint to test it.\n\nPermissions, errors and rate limits: [Getting Started](https://docs.99digital.co.il/online-api/getting-started).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "api_access_token",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{api_access_token}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Agents",
      "item": [
        {
          "name": "List of all Agents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/agents",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "agents"
              ],
              "query": [
                {
                  "key": "inbox_id",
                  "value": "31",
                  "description": "Return only the agents who can work in this inbox: its members, plus the agents whose role grants **Inbox read all conversations** in it.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/agents/list-of-all-agents)\n\nList all agents in an account.\n\nThe agents are returned ordered by name. Pass `inbox_id` to get\nonly the agents who can work in that inbox: the inbox's members, plus the\nagents whose role grants **Inbox read all conversations** in it.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/agents` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token: any agent of the account. On accounts with the new rules\n  system, the agents' personal details are returned only when the caller's\n  role grants **Agents → read** — see the `Agent` object below.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Query Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `inbox_id` | Return only the agents who can work in this inbox. | No |\n\n**Response:**\n\n```json\n[\n  {\n    \"id\": 52,\n    \"account_id\": 12,\n    \"availability_status\": \"offline\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"dana.levi@example.com\",\n    \"available_name\": \"Dana Levi\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    },\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": false,\n    \"assignable_to_inbox\": [31, 32],\n    \"new_role\": \"Shift Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": null,\n    \"phone1\": \"+972507654321\",\n    \"email1\": null,\n    \"create_time\": 1794470400\n  }\n]\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | Agent numeric ID |\n| `account_id` | Account numeric ID |\n| `availability_status` | The availability status of the agent. Enum: `online`, `busy`, `offline`. This is the live presence, computed from the agent's connection. |\n| `auto_offline` | Whether the availability status of the agent is configured to go offline automatically when away |\n| `confirmed` | Whether or not the agent's account has been validated by clicking on the invitation email they received |\n| `email` | Email of the agent |\n| `available_name` | Display name of the agent |\n| `name` | Full name of the agent |\n| `role` | Whether it's an administrator or an agent. Enum: `agent`, `administrator`. On accounts with the new rules system: the name of the agent's custom role. |\n| `see_all_conversations` | Whether an agent can see all conversations |\n| `thumbnail` | Agent thumbnail |\n\nThe other fields of the response are described in the response schema\nbelow."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Return only the agents who can work in this inbox: its members, plus the agents whose role grants **Inbox read all conversations** in it.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"id\": 52,\n    \"account_id\": 12,\n    \"availability_status\": \"offline\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"dana.levi@example.com\",\n    \"available_name\": \"Dana Levi\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    },\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": false,\n    \"assignable_to_inbox\": [\n      31,\n      32\n    ],\n    \"new_role\": \"Shift Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": null,\n    \"phone1\": \"+972507654321\",\n    \"email1\": null,\n    \"create_time\": 1794470400\n  },\n  {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"jane.agent@example.com\",\n    \"available_name\": \"Jane Agent\",\n    \"custom_attributes\": {},\n    \"name\": \"Jane Agent\",\n    \"role\": \"General Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": true,\n    \"assignable_to_inbox\": [\n      31,\n      32,\n      33\n    ],\n    \"new_role\": \"General Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972541234567\",\n    \"email1\": null,\n    \"create_time\": 1790000000\n  }\n]"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Return only the agents who can work in this inbox: its members, plus the agents whose role grants **Inbox read all conversations** in it.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Return only the agents who can work in this inbox: its members, plus the agents whose role grants **Inbox read all conversations** in it.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Return only the agents who can work in this inbox: its members, plus the agents whose role grants **Inbox read all conversations** in it.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Return only the agents who can work in this inbox: its members, plus the agents whose role grants **Inbox read all conversations** in it.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Add Agent",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/agents/add-agent)\n\nAdd a new agent to an account.\n\nCreates a user and adds them to the account. If a user with the same email\nalready exists in the system, that user is added to the account instead of\ncreating a new one. New users receive an invitation email to set their\npassword.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/agents` |\n| Method | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Agents → create**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Request body:**\n\nAll fields go inside an `agent` object. In a JSON request the wrapper is\noptional: top-level fields are wrapped for you.\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `name` | string | Full name of the agent | Yes |\n| `email` | string | Email of the agent. It is the login email and must be unique system-wide: if it already exists, the existing user is attached to the account. | Yes |\n| `role` | string | Whether it's an administrator or an agent. Enum: `agent`, `administrator`. On accounts with the new rules system: the name of a custom role (for example `Shift Manager`), or `agent`; `administrator` is rejected there. | Yes |\n| `availability` | string | The availability setting of the agent. Enum: `online`, `busy`, `offline`. Default `online`. | No |\n| `auto_offline` | boolean | Whether the availability status of the agent is configured to go offline automatically when away. Default `true`. | No |\n| `see_all_conversations` | boolean | Legacy flag that lets the agent see all conversations. On new-rules accounts the effective value comes from the role (**Inbox read all conversations** on every inbox). | No |\n| `two_factor_type` | string | `sms` or `email` enables two-factor authentication; any other value disables it. `sms` requires `phone1`, `email` requires `email1`. | No |\n| `phone1` | string | Phone number for two-factor codes by SMS. | No |\n| `email1` | string | Email address for two-factor codes by email. | No |\n| `custom_attributes` | object | Free-form key/value attributes. | No |\n| `capacity_cap` | integer | Queue-management cap of open tickets for this agent. Empty or `null` means the account default (unlimited). Used only with queue management. | No |\n\n**Response:**\n\n```json\n{\n  \"id\": 52,\n  \"account_id\": 12,\n  \"availability_status\": \"offline\",\n  \"auto_offline\": true,\n  \"confirmed\": false,\n  \"email\": \"dana.levi@example.com\",\n  \"available_name\": \"Dana Levi\",\n  \"custom_attributes\": {\n    \"department\": \"sales\"\n  },\n  \"name\": \"Dana Levi\",\n  \"role\": \"Shift Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": false,\n  \"assignable_to_inbox\": [31, 32],\n  \"new_role\": \"Shift Manager\",\n  \"thumbnail\": \"\",\n  \"capacity_cap\": null,\n  \"two_factor_type\": null,\n  \"phone1\": \"+972507654321\",\n  \"email1\": null,\n  \"create_time\": 1794470400\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | Agent numeric ID |\n| `account_id` | Account numeric ID |\n| `availability_status` | The availability status of the agent. Enum: `online`, `busy`, `offline`. This is the live presence, computed from the agent's connection, so it can differ from the `availability` you sent. |\n| `auto_offline` | Whether the availability status of the agent is configured to go offline automatically when away |\n| `confirmed` | Whether or not the agent's account has been validated by clicking on the invitation email they received |\n| `email` | Email of the agent |\n| `available_name` | Display name of the agent |\n| `name` | Full name of the agent |\n| `role` | Whether it's an administrator or an agent. Enum: `agent`, `administrator`. On accounts with the new rules system: the name of the agent's custom role. |\n| `see_all_conversations` | Whether an agent can see all conversations |\n| `thumbnail` | Agent thumbnail |\n\nThe other fields of the response are described in the response schema\nbelow.",
          "item": [
            {
              "name": "Agent",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const agent_id = pick([\"id\"]);",
                      "  if (agent_id !== undefined && agent_id !== null) {",
                      "    pm.collectionVariables.set(\"agent_id\", String(agent_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents"
                  ]
                },
                "description": "An agent with a custom role.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/agents/add-agent)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 52,\n  \"account_id\": 12,\n  \"availability_status\": \"offline\",\n  \"auto_offline\": true,\n  \"confirmed\": false,\n  \"email\": \"dana.levi@example.com\",\n  \"available_name\": \"Dana Levi\",\n  \"custom_attributes\": {\n    \"department\": \"sales\"\n  },\n  \"name\": \"Dana Levi\",\n  \"role\": \"Shift Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": false,\n  \"assignable_to_inbox\": [\n    31,\n    32\n  ],\n  \"new_role\": \"Shift Manager\",\n  \"thumbnail\": \"\",\n  \"capacity_cap\": null,\n  \"two_factor_type\": \"sms\",\n  \"phone1\": \"+972507654321\",\n  \"email1\": null,\n  \"create_time\": 1794470400\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "402 Payment Required",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Payment Required",
                  "code": 402,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Account limit exceeded. Please purchase more licenses\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 · Administrator role",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Role ‘Administrator’ is not allowed when the ‘new_rules_system’ feature is enabled. Please use the ‘Agent’ role and set the new role through the General Manager account.\",\n  \"attributes\": [\n    \"role\"\n  ]\n}"
                },
                {
                  "name": "422 · Missing fields",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"param is missing or the value is empty: agent\"\n}"
                }
              ]
            },
            {
              "name": "With two-factor and attributes",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const agent_id = pick([\"id\"]);",
                      "  if (agent_id !== undefined && agent_id !== null) {",
                      "    pm.collectionVariables.set(\"agent_id\", String(agent_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents"
                  ]
                },
                "description": "Two-factor codes by SMS, and a custom attribute.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/agents/add-agent)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 52,\n  \"account_id\": 12,\n  \"availability_status\": \"offline\",\n  \"auto_offline\": true,\n  \"confirmed\": false,\n  \"email\": \"dana.levi@example.com\",\n  \"available_name\": \"Dana Levi\",\n  \"custom_attributes\": {\n    \"department\": \"sales\"\n  },\n  \"name\": \"Dana Levi\",\n  \"role\": \"Shift Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": false,\n  \"assignable_to_inbox\": [\n    31,\n    32\n  ],\n  \"new_role\": \"Shift Manager\",\n  \"thumbnail\": \"\",\n  \"capacity_cap\": null,\n  \"two_factor_type\": \"sms\",\n  \"phone1\": \"+972507654321\",\n  \"email1\": null,\n  \"create_time\": 1794470400\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "402 Payment Required",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Payment Required",
                  "code": 402,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Account limit exceeded. Please purchase more licenses\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 · Administrator role",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Role ‘Administrator’ is not allowed when the ‘new_rules_system’ feature is enabled. Please use the ‘Agent’ role and set the new role through the General Manager account.\",\n  \"attributes\": [\n    \"role\"\n  ]\n}"
                },
                {
                  "name": "422 · Missing fields",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"email\": \"dana.levi@example.com\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"online\",\n    \"auto_offline\": true,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972507654321\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"param is missing or the value is empty: agent\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Update Agent",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/agents/update-agent)\n\nUpdate agent details in an account.\n\nUpdates the agent's profile and their membership in this account. Only the\nfields you send are changed. The login email cannot be changed through this\nendpoint.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/agents/{agent_id}` |\n| Method | JSON via PATCH (`PUT` works the same way) |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Agents → update**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `agent_id` | The numeric ID of the agent | Yes |\n\n**Request body:**\n\nAll fields go inside an `agent` object. In a JSON request the wrapper is\noptional: top-level fields are wrapped for you.\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `role` | string | Whether it's an administrator or an agent. Enum: `agent`, `administrator`. On accounts with the new rules system: the name of a custom role (for example `Shift Manager`), which sets the agent's custom role, or `agent`; `administrator` is rejected there. | No |\n| `availability` | string | The availability setting of the agent. Enum: `online`, `busy`, `offline`. | No |\n| `auto_offline` | boolean | Whether the availability status of the agent is configured to go offline automatically when away | No |\n| `name` | string | Full name of the agent. | No |\n| `see_all_conversations` | boolean | Legacy flag that lets the agent see all conversations. On accounts with the new rules system the role decides, and this field has no effect. | No |\n| `two_factor_type` | string | `sms` or `email` enables two-factor authentication; any other value disables it. `sms` requires `phone1`, `email` requires `email1`. | No |\n| `phone1` | string | Phone number for two-factor codes by SMS. | No |\n| `email1` | string | Email address for two-factor codes by email. | No |\n| `custom_attributes` | object | Replaces the agent's custom attributes in this account. | No |\n| `capacity_cap` | integer | Queue-management cap of open tickets. Send `null` or `\"\"` to clear it (account default, unlimited). | No |\n\n**Response:**\n\n```json\n{\n  \"id\": 52,\n  \"account_id\": 12,\n  \"availability_status\": \"offline\",\n  \"auto_offline\": true,\n  \"confirmed\": true,\n  \"email\": \"dana.levi@example.com\",\n  \"available_name\": \"Dana Levi\",\n  \"custom_attributes\": {\n    \"department\": \"sales\"\n  },\n  \"name\": \"Dana Levi\",\n  \"role\": \"Shift Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": false,\n  \"assignable_to_inbox\": [31, 32],\n  \"new_role\": \"Shift Manager\",\n  \"thumbnail\": \"\",\n  \"capacity_cap\": null,\n  \"two_factor_type\": null,\n  \"phone1\": \"+972507654321\",\n  \"email1\": null,\n  \"create_time\": 1794470400\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | Agent numeric ID |\n| `account_id` | Account numeric ID |\n| `availability_status` | The availability status of the agent. Enum: `online`, `busy`, `offline`. This is the live presence, computed from the agent's connection, so it can differ from the `availability` you sent — for example `offline` while the agent is not connected. |\n| `auto_offline` | Whether the availability status of the agent is configured to go offline automatically when away |\n| `confirmed` | Whether or not the agent's account has been validated by clicking on the invitation email they received |\n| `email` | Email of the agent |\n| `available_name` | Display name of the agent |\n| `name` | Full name of the agent |\n| `role` | Whether it's an administrator or an agent. Enum: `agent`, `administrator`. On accounts with the new rules system: the name of the agent's custom role. |\n| `see_all_conversations` | Whether an agent can see all conversations |\n| `thumbnail` | Agent thumbnail |\n\nThe other fields of the response are described in the response schema\nbelow.",
          "item": [
            {
              "name": "Change the role",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agent\": {\n    \"role\": \"Shift Manager\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                },
                "description": "Give the agent another custom role.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/agents/update-agent)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 52,\n  \"account_id\": 12,\n  \"availability_status\": \"offline\",\n  \"auto_offline\": true,\n  \"confirmed\": true,\n  \"email\": \"dana.levi@example.com\",\n  \"available_name\": \"Dana Levi\",\n  \"custom_attributes\": {\n    \"department\": \"sales\"\n  },\n  \"name\": \"Dana Levi\",\n  \"role\": \"Shift Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": false,\n  \"assignable_to_inbox\": [\n    31,\n    32\n  ],\n  \"new_role\": \"Shift Manager\",\n  \"thumbnail\": \"\",\n  \"capacity_cap\": null,\n  \"two_factor_type\": null,\n  \"phone1\": \"+972507654321\",\n  \"email1\": null,\n  \"create_time\": 1794470400\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"role\": \"Shift Manager\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Role ‘Administrator’ is not allowed when the ‘new_rules_system’ feature is enabled. Please use the ‘Agent’ role and set the new role through the General Manager account.\",\n  \"attributes\": [\n    \"role\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "Role and profile",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"busy\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                },
                "description": "A new name, role, availability and custom attributes.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/agents/update-agent)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"busy\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 52,\n  \"account_id\": 12,\n  \"availability_status\": \"offline\",\n  \"auto_offline\": true,\n  \"confirmed\": true,\n  \"email\": \"dana.levi@example.com\",\n  \"available_name\": \"Dana Levi\",\n  \"custom_attributes\": {\n    \"department\": \"sales\"\n  },\n  \"name\": \"Dana Levi\",\n  \"role\": \"Shift Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": false,\n  \"assignable_to_inbox\": [\n    31,\n    32\n  ],\n  \"new_role\": \"Shift Manager\",\n  \"thumbnail\": \"\",\n  \"capacity_cap\": null,\n  \"two_factor_type\": null,\n  \"phone1\": \"+972507654321\",\n  \"email1\": null,\n  \"create_time\": 1794470400\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"busy\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"busy\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"busy\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"busy\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"busy\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"availability\": \"busy\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Role ‘Administrator’ is not allowed when the ‘new_rules_system’ feature is enabled. Please use the ‘Agent’ role and set the new role through the General Manager account.\",\n  \"attributes\": [\n    \"role\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "Clear the capacity cap",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agent\": {\n    \"capacity_cap\": null\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                },
                "description": "Go back to the account default (unlimited).\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/agents/update-agent)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"capacity_cap\": null\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 52,\n  \"account_id\": 12,\n  \"availability_status\": \"offline\",\n  \"auto_offline\": true,\n  \"confirmed\": true,\n  \"email\": \"dana.levi@example.com\",\n  \"available_name\": \"Dana Levi\",\n  \"custom_attributes\": {\n    \"department\": \"sales\"\n  },\n  \"name\": \"Dana Levi\",\n  \"role\": \"Shift Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": false,\n  \"assignable_to_inbox\": [\n    31,\n    32\n  ],\n  \"new_role\": \"Shift Manager\",\n  \"thumbnail\": \"\",\n  \"capacity_cap\": null,\n  \"two_factor_type\": null,\n  \"phone1\": \"+972507654321\",\n  \"email1\": null,\n  \"create_time\": 1794470400\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"capacity_cap\": null\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"capacity_cap\": null\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"capacity_cap\": null\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"capacity_cap\": null\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"capacity_cap\": null\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"agent\": {\n    \"capacity_cap\": null\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "agents",
                        "{{agent_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Role ‘Administrator’ is not allowed when the ‘new_rules_system’ feature is enabled. Please use the ‘Agent’ role and set the new role through the General Manager account.\",\n  \"attributes\": [\n    \"role\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Remove Agent",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "agents",
                "{{agent_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/agents/remove-agent)\n\nRemove an agent from an account.\n\nIf the user does not belong to any other account, the user record is\ndeleted as well, in the background.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/agents/{agent_id}` |\n| Method | JSON via DELETE |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Agents → delete**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `agent_id` | The numeric ID of the agent | Yes |\n\n**Response:** `200 OK` with an empty body.\n\n**Error responses:** `404 {\"error\": \"Resource could not be found\"}` when the\nagent is not (or no longer) in the account."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "List Online Agents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/agents/online",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "agents",
                "online"
              ],
              "query": [
                {
                  "key": "team_id",
                  "value": "7",
                  "description": "Return only the online agents who are members of this team. A team that does not exist returns `404`.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/agents/list-online-agents)\n\nReturns the IDs of agents who are currently online in the account.\n\nOptionally filters to the members of one team. Useful for bots that decide\nwhether to hand a conversation over to a human.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/agents/online` |\n| **Authorization** | User token (any agent) **or agent-bot token**. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `team_id` | integer | No | Return only online agents who are members of this team. `404` if the team does not exist. |\n\n**Example: all online agents**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/agents/online' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`). The IDs are strings.\n\n```json\n[\"51\", \"52\", \"53\"]\n```\n\n**Example: online agents of a team**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/agents/online?team_id=7' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`):\n\n```json\n[\"51\"]\n```"
          },
          "response": [
            {
              "name": "200 · Online agents",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/online",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "online"
                  ],
                  "query": [
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Return only the online agents who are members of this team. A team that does not exist returns `404`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  \"51\"\n]"
            },
            {
              "name": "200 · Nobody online",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/online",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "online"
                  ],
                  "query": [
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Return only the online agents who are members of this team. A team that does not exist returns `404`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[]"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/online",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "online"
                  ],
                  "query": [
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Return only the online agents who are members of this team. A team that does not exist returns `404`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/online",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "online"
                  ],
                  "query": [
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Return only the online agents who are members of this team. A team that does not exist returns `404`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/online",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "online"
                  ],
                  "query": [
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Return only the online agents who are members of this team. A team that does not exist returns `404`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Disconnect Agent",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}/disconnect",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "agents",
                "{{agent_id}}",
                "disconnect"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/agents/disconnect-agent)\n\nForces an agent's session to end.\n\nThe agent's next request to the account fails with a session-timeout error, and the dashboard logs them out. The\nrequest has no body.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/agents/{agent_id}/disconnect` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Disconnect Agents → update**. Not available to agent-bot tokens. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `agent_id` | integer | Yes | Agent (user) ID. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/agents/52/disconnect' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response**: `200 OK` with an empty body."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}/disconnect",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}",
                    "disconnect"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}/disconnect",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}",
                    "disconnect"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}/disconnect",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}",
                    "disconnect"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}/disconnect",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}",
                    "disconnect"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}/disconnect",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}",
                    "disconnect"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/agents/{{agent_id}}/disconnect",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "agents",
                    "{{agent_id}}",
                    "disconnect"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "List Assignable Agents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/assignable_agents?inbox_ids[]=31&inbox_ids[]=32",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "assignable_agents"
              ],
              "query": [
                {
                  "key": "inbox_ids[]",
                  "value": "31",
                  "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                },
                {
                  "key": "inbox_ids[]",
                  "value": "32",
                  "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/agents/list-assignable-agents)\n\nReturns the agents who can be assigned conversations in all of the given inboxes.\n\nAn agent is returned only when assignable in **all** of them:\n\n- New-rules accounts: agents whose role grants **Inbox can be assigned** on\n  every requested inbox.\n- Legacy accounts: agents who are members of every requested inbox, plus all\n  administrators.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/assignable_agents` |\n| **Authorization** | User token. The caller must be allowed to view each requested inbox. Not available to agent-bot tokens. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `inbox_ids[]` | integer[] | Yes | One or more inbox IDs. Repeat the parameter for each inbox. |\n\n**Example request**\n\nRepeat `inbox_ids[]` for each inbox (`-g` stops cURL from reading the\nbrackets as a pattern):\n\n```bash\ncurl -g -X GET 'https://online.99digital.co.il/api/v1/accounts/12/assignable_agents?inbox_ids[]=31&inbox_ids[]=32' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). The result is wrapped in `payload`; one\nagent is shown.\n\n```json\n{\n  \"payload\": [\n    {\n      \"id\": 52,\n      \"account_id\": 12,\n      \"availability_status\": \"offline\",\n      \"auto_offline\": true,\n      \"confirmed\": true,\n      \"email\": \"dana.levi@example.com\",\n      \"available_name\": \"Dana Levi\",\n      \"custom_attributes\": { \"department\": \"sales\" },\n      \"name\": \"Dana Levi\",\n      \"role\": \"Shift Manager\",\n      \"operation_bot\": false,\n      \"see_all_conversations\": false,\n      \"assignable_to_inbox\": [31, 32],\n      \"new_role\": \"Shift Manager\",\n      \"thumbnail\": \"\",\n      \"capacity_cap\": null,\n      \"two_factor_type\": null,\n      \"phone1\": \"+972507654321\",\n      \"email1\": null,\n      \"create_time\": 1794470400\n    }\n  ]\n}\n```\n\n**Error responses**: `404 {\"error\": \"Resource could not be found\"}` when any\nof the inbox IDs does not exist in the account."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/assignable_agents?inbox_ids[]=31&inbox_ids[]=32",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "assignable_agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_ids[]",
                      "value": "31",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    },
                    {
                      "key": "inbox_ids[]",
                      "value": "32",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"id\": 52,\n      \"account_id\": 12,\n      \"availability_status\": \"offline\",\n      \"auto_offline\": true,\n      \"confirmed\": true,\n      \"email\": \"dana.levi@example.com\",\n      \"available_name\": \"Dana Levi\",\n      \"custom_attributes\": {\n        \"department\": \"sales\"\n      },\n      \"name\": \"Dana Levi\",\n      \"role\": \"Shift Manager\",\n      \"operation_bot\": false,\n      \"see_all_conversations\": false,\n      \"assignable_to_inbox\": [\n        31,\n        32\n      ],\n      \"new_role\": \"Shift Manager\",\n      \"thumbnail\": \"\",\n      \"capacity_cap\": null,\n      \"two_factor_type\": null,\n      \"phone1\": \"+972507654321\",\n      \"email1\": null,\n      \"create_time\": 1794470400\n    },\n    {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"auto_offline\": true,\n      \"confirmed\": true,\n      \"email\": \"jane.agent@example.com\",\n      \"available_name\": \"Jane Agent\",\n      \"custom_attributes\": {},\n      \"name\": \"Jane Agent\",\n      \"role\": \"General Manager\",\n      \"operation_bot\": false,\n      \"see_all_conversations\": true,\n      \"assignable_to_inbox\": [\n        31,\n        32,\n        33\n      ],\n      \"new_role\": \"General Manager\",\n      \"thumbnail\": \"\",\n      \"capacity_cap\": null,\n      \"two_factor_type\": \"sms\",\n      \"phone1\": \"+972541234567\",\n      \"email1\": null,\n      \"create_time\": 1790000000\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/assignable_agents?inbox_ids[]=31&inbox_ids[]=32",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "assignable_agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_ids[]",
                      "value": "31",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    },
                    {
                      "key": "inbox_ids[]",
                      "value": "32",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/assignable_agents?inbox_ids[]=31&inbox_ids[]=32",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "assignable_agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_ids[]",
                      "value": "31",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    },
                    {
                      "key": "inbox_ids[]",
                      "value": "32",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/assignable_agents?inbox_ids[]=31&inbox_ids[]=32",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "assignable_agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_ids[]",
                      "value": "31",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    },
                    {
                      "key": "inbox_ids[]",
                      "value": "32",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/assignable_agents?inbox_ids[]=31&inbox_ids[]=32",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "assignable_agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_ids[]",
                      "value": "31",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    },
                    {
                      "key": "inbox_ids[]",
                      "value": "32",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/assignable_agents?inbox_ids[]=31&inbox_ids[]=32",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "assignable_agents"
                  ],
                  "query": [
                    {
                      "key": "inbox_ids[]",
                      "value": "31",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    },
                    {
                      "key": "inbox_ids[]",
                      "value": "32",
                      "description": "One or more inbox IDs. Repeat the parameter for each inbox."
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Contacts",
      "item": [
        {
          "name": "List Contacts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "The page parameter — the number of the page to return.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "",
                  "description": "The page size — the number of contacts per page, at most 100.",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "-created_at",
                  "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                  "disabled": true
                },
                {
                  "key": "labels[]",
                  "value": "",
                  "description": "Return only the contacts that have **any** of these label titles.",
                  "disabled": true
                },
                {
                  "key": "include_contact_inboxes",
                  "value": "",
                  "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/list-contacts)\n\nList all contacts with values for identifier, email, phone number or WhatsApp ID in your account, with pagination (page size = 10 by default).\n\nSend `labels[]` to get only the contacts that have any of those labels, and `sort` to change the order. To find contacts by text, use [Search Contacts](https://docs.99digital.co.il/online-api/contacts/search-contact); for conditions on specific fields, use [Filter Contacts](https://docs.99digital.co.il/online-api/contacts/filter-contacts).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: any agent. New rules system: **Contacts → read**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Query Parameters:**\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `sort` | string | The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`). Enum: `name`, `email`, `phone_number`, `last_activity_at`, `created_at`, `company`, `city`, `country`, `-name`, `-email`, `-phone_number`, `-last_activity_at`, `-created_at`, `-company`, `-city`, `-country` | No |\n| `page` | integer | The page parameter. Default: `1` | No |\n| `per_page` | integer | The page size. Default: `10`, maximum `100` | No |\n| `labels[]` | string[] | Return only the contacts that have **any** of these labels | No |\n| `include_contact_inboxes` | boolean | Include `contact_inboxes` in each contact. Default: `true`; send `false` for much smaller responses | No |\n\n**Response:**\n\n```json\n{\n  \"meta\": {\n    \"count\": 1,\n    \"contacts_all\": null,\n    \"current_page\": 1\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": \"string\",\n      \"id\": 0,\n      \"name\": \"string\",\n      \"phone_number\": \"string\",\n      \"identifier\": \"string\",\n      \"thumbnail\": \"string\",\n      \"custom_attributes\": {\n        \"attribute_key\": \"attribute_value\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 0,\n      \"contact_inboxes\": [\n        {\n          \"source_id\": \"string\",\n          \"inbox\": {}\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| meta | Metadata about the contacts |\n| meta -> count | Number of matching contacts, across all pages |\n| meta -> contacts_all | Always `null` |\n| meta -> current_page | Current results page. It may come back as a string (for example `\"1\"`), so parse it before comparing |\n| payload | Array of objects (contacts) |\n| payload -> id | Contact numeric ID |\n| payload -> name | Full name of the contact |\n| payload -> email | Email address of the contact (stored in lower case) |\n| payload -> phone_number | Phone number of the contact, in E.164 format |\n| payload -> availability_status | Availability status of the contact: whether the contact is connected right now (website widget). Enum: `online`, `offline` |\n| payload -> identifier | A unique identifier for the contact in an external system |\n| payload -> thumbnail | Avatar URL of the contact |\n| payload -> last_activity_at | Timestamp of the last activity. Present only when set |\n| payload -> blocked | Indicates whether the contact is blocked |\n| payload -> is_whatsapp_contact | `true` if the contact belongs to a WhatsApp API inbox |\n| payload -> created_at | The time at which the contact was created (Unix timestamp) |\n| payload -> custom_attributes | Object containing custom attributes related to the contact |\n| payload -> additional_attributes | Object containing additional attributes related to the contact |\n| payload -> contact_inboxes | Array of objects (contact_inboxes). Left out when you send `include_contact_inboxes=false` |\n| payload -> contact_inboxes -> source_id | Contact inbox source ID |\n| payload -> contact_inboxes -> inbox | Object containing the inbox details |"
          },
          "response": [
            {
              "name": "200 · Newest first",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "-created_at",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"count\": 4,\n    \"contacts_all\": null,\n    \"current_page\": \"1\"\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": null,\n      \"id\": 804,\n      \"name\": \"Yossi Ben David\",\n      \"phone_number\": \"+972547654321\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794471100\n    },\n    {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": null,\n      \"id\": 803,\n      \"name\": \"Noa Mizrahi\",\n      \"phone_number\": \"+972531234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794471000\n    }\n  ]\n}"
            },
            {
              "name": "200 · With a label",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "-created_at",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"count\": 1,\n    \"contacts_all\": null,\n    \"current_page\": \"1\"\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "-created_at",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "-created_at",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "-created_at",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "-created_at",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Create Contact",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/create-contact)\n\nCreate a new contact in an account.\n\nSend `inbox_id` to also link the contact to that inbox. The response then includes the contact inbox's `source_id`, which you need to [add a conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation) in that inbox. To link an existing contact to an inbox later, use [Create Contact Inbox](https://docs.99digital.co.il/online-api/contacts/create-contact-inbox).\n\nFires the `contact_created` [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts` |\n| Method | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: any agent. New rules system: **Contacts → create**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Request body:**\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `inbox_id` | integer | The numeric ID of the inbox. The contact is also linked to this inbox (a contact inbox is created) | No |\n| `name` | string | Name of the contact | No |\n| `email` | string | Email of the contact. Must be a valid email | No |\n| `phone_number` | string | Phone number of the contact in E.164 format, for example: `+972501234567`. Israeli local formats are normalised (see the note below). Unique in the account | No |\n| `avatar_url` | string | The URL to a JPEG or PNG file for the contact avatar. The image is downloaded in the background | No |\n| `identifier` | string | A unique identifier for the contact in an external system. Unique in the account | No |\n| `custom_attributes` | object | An object where you can store custom attributes for the contact, for example `{\"type\": \"customer\", \"age\": 30}` | No |\n| `additional_attributes` | object | Standard extra fields, for example `company_name`, `city`, `country`, `description`. The blocking keys (`blocked`, `blocked_at`, `block_source`, `block_reason`) are ignored; use [Block Contact](https://docs.99digital.co.il/online-api/contacts/block-contact) instead | No |\n| `avatar` | file | Avatar image, instead of `avatar_url` (send the request as `multipart/form-data`, see Remarks) | No |\n| `source_id` | string | With `inbox_id`: the contact's ID on that channel. If omitted it is generated (a UUID for API inboxes, the phone number or email for phone and email channels) | No |\n\n> **Note:** A contact without an email, phone number or identifier can be created, but it does **not** appear in [List Contacts](https://docs.99digital.co.il/online-api/contacts/list-contacts) or [Search Contacts](https://docs.99digital.co.il/online-api/contacts/search-contact).\n\n**Request body example:**\n\n```json\n{\n  \"inbox_id\": 0,\n  \"name\": \"string\",\n  \"email\": \"string\",\n  \"phone_number\": \"string\",\n  \"avatar_url\": \"string\",\n  \"identifier\": \"string\",\n  \"custom_attributes\": {}\n}\n```\n\n**Response:**\n\n```json\n{\n  \"payload\": {\n    \"contact\": {\n      \"id\": 0,\n      \"name\": \"string\",\n      \"email\": \"string\",\n      \"phone_number\": \"string\",\n      \"availability_status\": \"offline\",\n      \"identifier\": \"string\",\n      \"thumbnail\": \"string\",\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 0,\n      \"custom_attributes\": {\n        \"attribute_key\": \"attribute_value\"\n      },\n      \"additional_attributes\": {},\n      \"email_or_phone_optional\": false,\n      \"contact_inboxes\": [\n        {\n          \"source_id\": \"string\",\n          \"inbox\": {}\n        }\n      ]\n    },\n    \"contact_inbox\": {\n      \"inbox\": {},\n      \"source_id\": \"string\"\n    }\n  }\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| payload | Object containing the new contact and its contact inbox |\n| payload -> contact | Object containing the contact details |\n| payload -> contact -> id | Contact numeric ID |\n| payload -> contact -> name | Full name of the contact |\n| payload -> contact -> email | Email address of the contact (stored in lower case) |\n| payload -> contact -> phone_number | Phone number of the contact, in E.164 format |\n| payload -> contact -> availability_status | Availability status of the contact: whether the contact is connected right now (website widget). Enum: `online`, `offline` |\n| payload -> contact -> identifier | A unique identifier for the contact in an external system |\n| payload -> contact -> thumbnail | Avatar URL of the contact |\n| payload -> contact -> blocked | Whether the contact is blocked |\n| payload -> contact -> is_whatsapp_contact | `true` if the contact belongs to a WhatsApp API inbox |\n| payload -> contact -> created_at | Timestamp of contact creation time (Unix time, seconds) |\n| payload -> contact -> custom_attributes | The object to save custom attributes for the contact; accepts custom attribute keys and values |\n| payload -> contact -> additional_attributes | The object containing additional attributes related to the contact |\n| payload -> contact -> email_or_phone_optional | `true` when the contact has a WhatsApp ID, so email and phone may both be empty |\n| payload -> contact -> contact_inboxes | Array of objects (contact_inboxes) |\n| payload -> contact_inbox | The contact inbox created for `inbox_id`. Both its fields are `null` when no `inbox_id` was sent |\n| payload -> contact_inbox -> source_id | Contact inbox source ID: the contact's ID on the inbox's channel. Use it to [add a conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation) |\n| payload -> contact_inbox -> inbox | Object containing the inbox details |\n\n## Remarks\n\n- Phone numbers must be in E.164 format (`+`, the country code, then the number). Israeli mobile numbers are normalised for you: `0501234567`, `501234567` and `972501234567` are all saved as `+972501234567`.\n- The `message` of a `422` response is translated to the account's language (for example Hebrew). Check `attributes`, not the text.\n- To upload an avatar image instead of sending `avatar_url`, send the request as `multipart/form-data`, with the fields above as form fields and the image in an `avatar` field:\n\n  ```bash\n  curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts' \\\n    -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n    -F 'name=Dana Cohen' \\\n    -F 'phone_number=+972501234567' \\\n    -F 'avatar=@avatar.png;type=image/png'\n  ```",
          "item": [
            {
              "name": "Linked to an inbox",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const contact_id = pick([\"payload\",\"contact\",\"id\"]);",
                      "  if (contact_id !== undefined && contact_id !== null) {",
                      "    pm.collectionVariables.set(\"contact_id\", String(contact_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts"
                  ]
                },
                "description": "A full contact, linked to an API inbox.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/create-contact)"
              },
              "response": [
                {
                  "name": "200 · Linked to an inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"contact\": {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500,\n      \"email_or_phone_optional\": false,\n      \"contact_inboxes\": [\n        {\n          \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n          \"inbox\": {\n            \"id\": 31,\n            \"channel_id\": 9,\n            \"name\": \"Website API\",\n            \"channel_type\": \"Channel::Api\",\n            \"enable_auto_assignment\": true,\n            \"timezone\": \"UTC\",\n            \"webhook_url\": \"\"\n          }\n        }\n      ]\n    },\n    \"contact_inbox\": {\n      \"inbox\": {\n        \"id\": 31,\n        \"channel_id\": 9,\n        \"account_id\": 12,\n        \"name\": \"Website API\",\n        \"channel_type\": \"Channel::Api\",\n        \"created_at\": \"2026-11-12T08:00:00.000Z\",\n        \"updated_at\": \"2026-11-12T08:00:00.000Z\"\n      },\n      \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n    }\n  }\n}"
                },
                {
                  "name": "200 · Local phone number",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"contact\": {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": null,\n      \"id\": 802,\n      \"name\": \"Avi Levi\",\n      \"phone_number\": \"+972521234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470600,\n      \"email_or_phone_optional\": false,\n      \"contact_inboxes\": []\n    },\n    \"contact_inbox\": {\n      \"inbox\": null,\n      \"source_id\": null\n    }\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Phone number taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Phone number has already been taken\",\n  \"attributes\": [\n    \"phone_number\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid email and phone",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Email אימייל לא תקין, Phone number צריך להיות בפורמט e164\",\n  \"attributes\": [\n    \"email\",\n    \"phone_number\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "Local phone number",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const contact_id = pick([\"payload\",\"contact\",\"id\"]);",
                      "  if (contact_id !== undefined && contact_id !== null) {",
                      "    pm.collectionVariables.set(\"contact_id\", String(contact_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts"
                  ]
                },
                "description": "An Israeli local phone number and no inbox. The number is saved as `+972521234567`.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/create-contact)"
              },
              "response": [
                {
                  "name": "200 · Linked to an inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"contact\": {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500,\n      \"email_or_phone_optional\": false,\n      \"contact_inboxes\": [\n        {\n          \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n          \"inbox\": {\n            \"id\": 31,\n            \"channel_id\": 9,\n            \"name\": \"Website API\",\n            \"channel_type\": \"Channel::Api\",\n            \"enable_auto_assignment\": true,\n            \"timezone\": \"UTC\",\n            \"webhook_url\": \"\"\n          }\n        }\n      ]\n    },\n    \"contact_inbox\": {\n      \"inbox\": {\n        \"id\": 31,\n        \"channel_id\": 9,\n        \"account_id\": 12,\n        \"name\": \"Website API\",\n        \"channel_type\": \"Channel::Api\",\n        \"created_at\": \"2026-11-12T08:00:00.000Z\",\n        \"updated_at\": \"2026-11-12T08:00:00.000Z\"\n      },\n      \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n    }\n  }\n}"
                },
                {
                  "name": "200 · Local phone number",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"contact\": {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": null,\n      \"id\": 802,\n      \"name\": \"Avi Levi\",\n      \"phone_number\": \"+972521234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470600,\n      \"email_or_phone_optional\": false,\n      \"contact_inboxes\": []\n    },\n    \"contact_inbox\": {\n      \"inbox\": null,\n      \"source_id\": null\n    }\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Phone number taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Phone number has already been taken\",\n  \"attributes\": [\n    \"phone_number\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid email and phone",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Avi Levi\",\n  \"phone_number\": \"0521234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Email אימייל לא תקין, Phone number צריך להיות בפורמט e164\",\n  \"attributes\": [\n    \"email\",\n    \"phone_number\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Retrieve Contact",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/retrieve-contact)\n\nRetrieve contact details by ID.\n\nThe contact comes with its `contact_inboxes`: the inboxes it is linked to, each with the `source_id` that identifies the contact on that channel.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: any agent. New rules system: **Contacts → read**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `contact_id` | The numeric ID of the contact | Yes |\n\n**Response:**\n\n```json\n{\n  \"payload\": {\n    \"additional_attributes\": {},\n    \"availability_status\": \"offline\",\n    \"email\": \"string\",\n    \"id\": 0,\n    \"name\": \"string\",\n    \"phone_number\": \"string\",\n    \"identifier\": \"string\",\n    \"thumbnail\": \"string\",\n    \"custom_attributes\": {},\n    \"blocked\": false,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 0,\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": [\n      {\n        \"source_id\": \"string\",\n        \"inbox\": {\n          \"id\": 0,\n          \"name\": \"string\",\n          \"website_url\": \"string\",\n          \"channel_type\": \"string\",\n          \"avatar_url\": \"string\",\n          \"widget_color\": \"string\",\n          \"website_token\": \"string\",\n          \"enable_auto_assignment\": true,\n          \"web_widget_script\": \"string\",\n          \"welcome_title\": \"string\",\n          \"welcome_tagline\": \"string\",\n          \"greeting_enabled\": false,\n          \"greeting_message\": \"string\"\n        }\n      }\n    ]\n  }\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| payload | Object containing contact details |\n| payload -> additional_attributes | Object containing additional attributes related to the contact |\n| payload -> availability_status | Availability status of the contact: whether the contact is connected right now (website widget). Enum: `online`, `offline` |\n| payload -> email | Email address of the contact (stored in lower case) |\n| payload -> id | Contact numeric ID |\n| payload -> name | Full name of the contact |\n| payload -> phone_number | Phone number of the contact, in E.164 format |\n| payload -> identifier | A unique identifier for the contact in an external system |\n| payload -> thumbnail | Avatar URL of the contact |\n| payload -> custom_attributes | Object containing custom attributes related to the contact |\n| payload -> blocked | Indicates whether the contact is blocked |\n| payload -> is_whatsapp_contact | `true` if the contact belongs to a WhatsApp API inbox |\n| payload -> created_at | The time at which the contact was created (Unix timestamp) |\n| payload -> email_or_phone_optional | `true` when the contact has a WhatsApp ID, so email and phone may both be empty |\n| payload -> contact_inboxes | Array of objects (contact inboxes) |\n| payload -> contact_inboxes -> source_id | Contact inbox source ID: the contact's ID on the inbox's channel |\n| payload -> contact_inboxes -> inbox | Object containing inbox details |\n| payload -> contact_inboxes -> inbox -> id | The numeric ID of the inbox |\n| payload -> contact_inboxes -> inbox -> name | The name of the inbox |\n| payload -> contact_inboxes -> inbox -> website_url | Website URL |\n| payload -> contact_inboxes -> inbox -> channel_type | The type of the inbox, for example `Channel::Api` |\n| payload -> contact_inboxes -> inbox -> avatar_url | The avatar image of the inbox |\n| payload -> contact_inboxes -> inbox -> widget_color | Widget color used for customization of the widget |\n| payload -> contact_inboxes -> inbox -> website_token | Website token |\n| payload -> contact_inboxes -> inbox -> enable_auto_assignment | Indicates whether auto assignment is enabled or not |\n| payload -> contact_inboxes -> inbox -> web_widget_script | Script used to load the website widget |\n| payload -> contact_inboxes -> inbox -> welcome_title | Welcome title to be displayed on the widget |\n| payload -> contact_inboxes -> inbox -> welcome_tagline | Welcome tagline to be displayed on the widget |\n| payload -> contact_inboxes -> inbox -> greeting_enabled | Indicates whether greeting is enabled |\n| payload -> contact_inboxes -> inbox -> greeting_message | A greeting message when the user starts the conversation |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": {\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\"\n    },\n    \"availability_status\": \"offline\",\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"blocked\": false,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 1794470500,\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": [\n      {\n        \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n        \"inbox\": {\n          \"id\": 31,\n          \"channel_id\": 9,\n          \"name\": \"Website API\",\n          \"channel_type\": \"Channel::Api\",\n          \"enable_auto_assignment\": true,\n          \"timezone\": \"UTC\",\n          \"webhook_url\": \"\"\n        }\n      }\n    ]\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Update Contact",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/update-contact)\n\nUpdate a contact belonging to an account by ID.\n\nOnly the fields you send are changed, and all of them are optional:\n\n- `custom_attributes` are **merged** into the existing values. To remove keys, use [Delete Contact Custom Attributes](https://docs.99digital.co.il/online-api/contacts/delete-contact-custom-attributes).\n- `additional_attributes` **replace** the existing object, so send the whole object. The blocking keys are always kept.\n\nFires the `contact_updated` [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}` |\n| Method | JSON via PATCH (`PUT` works the same way) |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: any agent. New rules system: **Contacts → update**.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `contact_id` | The numeric ID of the contact | Yes |\n\n**Request body:**\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `name` | string | Name of the contact | No |\n| `email` | string | Email of the contact. Must be a valid email | No |\n| `phone_number` | string | Phone number of the contact in E.164 format, for example: `+972501234567`. Israeli local formats are normalised. Unique in the account | No |\n| `avatar_url` | string | The URL to a JPEG or PNG file for the contact avatar. The image is downloaded in the background | No |\n| `identifier` | string | A unique identifier for the contact in an external system. Unique in the account | No |\n| `custom_attributes` | object | An object where you can store custom attributes for the contact. Merged into the existing values | No |\n| `additional_attributes` | object | Standard extra fields, for example `company_name`, `city`, `country`, `description`. Replaces the existing object; the blocking keys are kept and cannot be changed here | No |\n| `avatar` | file | Avatar image, instead of `avatar_url` (send the request as `multipart/form-data`, see Remarks) | No |\n\nWhen you edit an existing contact, the phone number needs at least 7 digits after the country code, and the contact must keep an email or a phone number (unless it is a WhatsApp contact).\n\n**Request body example:**\n\n```json\n{\n  \"phone_number\": \"string\"\n}\n```\n\n**Response:**\n\n```json\n{\n  \"payload\": {\n    \"id\": 0,\n    \"name\": \"string\",\n    \"email\": \"string\",\n    \"phone_number\": \"string\",\n    \"availability_status\": \"offline\",\n    \"identifier\": \"string\",\n    \"thumbnail\": \"string\",\n    \"blocked\": false,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 0,\n    \"custom_attributes\": {\n      \"attribute_key\": \"attribute_value\"\n    },\n    \"additional_attributes\": {},\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": [\n      {\n        \"source_id\": \"string\",\n        \"inbox\": {}\n      }\n    ]\n  }\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| payload | Object containing the response: the updated contact |\n| payload -> id | Contact numeric ID |\n| payload -> name | Full name of the contact |\n| payload -> email | Email address of the contact (stored in lower case) |\n| payload -> phone_number | Phone number of the contact, in E.164 format |\n| payload -> availability_status | Availability status of the contact: whether the contact is connected right now (website widget). Enum: `online`, `offline` |\n| payload -> identifier | A unique identifier for the contact in an external system |\n| payload -> thumbnail | Avatar URL of the contact |\n| payload -> blocked | Whether the contact is blocked |\n| payload -> is_whatsapp_contact | `true` if the contact belongs to a WhatsApp API inbox |\n| payload -> created_at | Timestamp of contact creation time (Unix time, seconds) |\n| payload -> custom_attributes | The object to save custom attributes for the contact; accepts custom attribute keys and values |\n| payload -> additional_attributes | The object containing additional attributes related to the contact |\n| payload -> email_or_phone_optional | `true` when the contact has a WhatsApp ID, so email and phone may both be empty |\n| payload -> contact_inboxes | Array of objects (contact_inboxes) |\n\n## Remarks\n\n- Phone numbers must be in E.164 format (`+`, the country code, then the number). Israeli mobile numbers are normalised for you: `0501234567`, `501234567` and `972501234567` are all saved as `+972501234567`.\n- The `message` of a `422` response is translated to the account's language (for example Hebrew). Check `attributes`, not the text.\n- To upload an avatar image instead of sending `avatar_url`, send the request as `multipart/form-data`, with the fields as form fields and the image in an `avatar` field:\n\n  ```bash\n  curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801' \\\n    -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n    -F 'avatar=@avatar.png;type=image/png'\n  ```"
          },
          "response": [
            {
              "name": "200 · Updated contact",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": {\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Haifa\"\n    },\n    \"availability_status\": \"offline\",\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\",\n      \"plan\": \"premium\"\n    },\n    \"blocked\": false,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 1794470500,\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": [\n      {\n        \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n        \"inbox\": {\n          \"id\": 31,\n          \"name\": \"Website API\",\n          \"channel_type\": \"Channel::Api\"\n        }\n      }\n    ]\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            },
            {
              "name": "422 · Phone number taken",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"message\": \"Phone number has already been taken\",\n  \"attributes\": [\n    \"phone_number\"\n  ]\n}"
            },
            {
              "name": "422 · Invalid email and phone",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Dana Cohen\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Haifa\"\n  },\n  \"custom_attributes\": {\n    \"plan\": \"premium\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"message\": \"Email אימייל לא תקין, Phone number צריך להיות בפורמט e164\",\n  \"attributes\": [\n    \"email\",\n    \"phone_number\"\n  ]\n}"
            }
          ]
        },
        {
          "name": "Delete Contact",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/delete-contact)\n\nDelete contact allows you to delete a contact from your account.\n\nThe contact is deleted together with its conversations, messages, contact inboxes and notes. The related records are removed in the background.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}` |\n| Method | JSON via DELETE |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system: **Contacts → delete**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `contact_id` | The numeric ID of the contact | Yes |\n\n**Response:**\n\n```json\n{ \"status\": \"ok\" }\n```\n\n> **Warning:** Deleting a contact also deletes all of its conversations and messages. To combine two records of the same customer instead, use [Merge Contacts](https://docs.99digital.co.il/online-api/contacts/merge-contacts)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"ok\"\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Search Contacts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/search",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "search"
              ],
              "query": [
                {
                  "key": "q",
                  "value": "dana",
                  "description": "Search using contact name, identifier, email, phone number or company name. The text matches any part of those fields, ignoring case (for the identifier, case matters). Phone numbers are stored in E.164 format, so search for `972501234567` or `501234567`, not the local `0501234567`.",
                  "disabled": true
                },
                {
                  "key": "search_with",
                  "value": "",
                  "description": "Return only the contacts that have a phone number, or an email.",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "",
                  "description": "The page parameter — the number of the page to return.",
                  "disabled": true
                },
                {
                  "key": "per_page",
                  "value": "",
                  "description": "The page size — the number of contacts per page, at most 100.",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                  "disabled": true
                },
                {
                  "key": "labels[]",
                  "value": "",
                  "description": "Return only the contacts that have **any** of these label titles.",
                  "disabled": true
                },
                {
                  "key": "include_contact_inboxes",
                  "value": "",
                  "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/search-contact)\n\nSearch contacts by name, identifier, email, phone number or company name (page size = 10 by default).\n\nThe search text matches any part of those fields, ignoring case — except the identifier, where case matters. Results accept the same paging, sorting and label options as [List Contacts](https://docs.99digital.co.il/online-api/contacts/list-contacts).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/search` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: any agent. New rules system: **Contacts → read**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Query Parameters:**\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `q` | string | Search using contact name, identifier, email, phone number or company name. Phone numbers are stored in E.164 format (`+972…`), so search for `972501234567` or `501234567`, not the local `0501234567` | No |\n| `search_with` | string | `phone_number`: only contacts that have a phone number. `email`: only contacts that have an email | No |\n| `sort` | string | The attribute by which the list should be sorted. Prefix it with `-` for descending order. Enum: `name`, `email`, `phone_number`, `last_activity_at`, `created_at`, `company`, `city`, `country`, `-name`, `-email`, `-phone_number`, `-last_activity_at`, `-created_at`, `-company`, `-city`, `-country` | No |\n| `page` | integer | The page parameter. Default: `1` | No |\n| `per_page` | integer | The page size. Default: `10`, maximum `100` | No |\n| `labels[]` | string[] | Return only the contacts that have **any** of these labels | No |\n| `include_contact_inboxes` | boolean | Include `contact_inboxes` in each contact. Default: `true`; send `false` for much smaller responses | No |\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| meta | Metadata regarding the search results |\n| meta -> count | Number of matching contacts, across all pages |\n| meta -> current_page | Current results page. It may come back as a string (for example `\"1\"`), so parse it before comparing |\n| payload | Array of objects (contacts) |\n| payload -> id | Contact numeric ID |\n| payload -> name | Full name of the contact |\n| payload -> email | Email address of the contact (stored in lower case) |\n| payload -> phone_number | Phone number of the contact, in E.164 format |\n| payload -> availability_status | Availability status of the contact: whether the contact is connected right now (website widget). Enum: `online`, `offline` |\n| payload -> identifier | A unique identifier for the contact in an external system |\n| payload -> thumbnail | Avatar URL of the contact |\n| payload -> last_activity_at | Timestamp of the last activity. Present only when set |\n| payload -> blocked | Whether the contact is blocked |\n| payload -> is_whatsapp_contact | `true` if the contact belongs to a WhatsApp API inbox |\n| payload -> created_at | Timestamp of contact creation time. Measured in seconds since the Unix epoch |\n| payload -> custom_attributes | The object to save custom attributes for the contact; accepts custom attribute keys and values |\n| payload -> additional_attributes | The object containing additional attributes related to the contact |\n| payload -> contact_inboxes | Array of objects (contact_inboxes). Left out when you send `include_contact_inboxes=false` |\n| payload -> contact_inboxes -> source_id | Contact inbox source ID |\n| payload -> contact_inboxes -> inbox | Object containing the inbox details |\n\n## Remarks\n\n- A contact without an email, phone number or identifier is never returned, although it exists."
          },
          "response": [
            {
              "name": "200 · Matching contacts",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/search",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "dana",
                      "description": "Search using contact name, identifier, email, phone number or company name. The text matches any part of those fields, ignoring case (for the identifier, case matters). Phone numbers are stored in E.164 format, so search for `972501234567` or `501234567`, not the local `0501234567`.",
                      "disabled": true
                    },
                    {
                      "key": "search_with",
                      "value": "",
                      "description": "Return only the contacts that have a phone number, or an email.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"count\": 1,\n    \"current_page\": 1\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/search",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "dana",
                      "description": "Search using contact name, identifier, email, phone number or company name. The text matches any part of those fields, ignoring case (for the identifier, case matters). Phone numbers are stored in E.164 format, so search for `972501234567` or `501234567`, not the local `0501234567`.",
                      "disabled": true
                    },
                    {
                      "key": "search_with",
                      "value": "",
                      "description": "Return only the contacts that have a phone number, or an email.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/search",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "dana",
                      "description": "Search using contact name, identifier, email, phone number or company name. The text matches any part of those fields, ignoring case (for the identifier, case matters). Phone numbers are stored in E.164 format, so search for `972501234567` or `501234567`, not the local `0501234567`.",
                      "disabled": true
                    },
                    {
                      "key": "search_with",
                      "value": "",
                      "description": "Return only the contacts that have a phone number, or an email.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/search",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "dana",
                      "description": "Search using contact name, identifier, email, phone number or company name. The text matches any part of those fields, ignoring case (for the identifier, case matters). Phone numbers are stored in E.164 format, so search for `972501234567` or `501234567`, not the local `0501234567`.",
                      "disabled": true
                    },
                    {
                      "key": "search_with",
                      "value": "",
                      "description": "Return only the contacts that have a phone number, or an email.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/search",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "dana",
                      "description": "Search using contact name, identifier, email, phone number or company name. The text matches any part of those fields, ignoring case (for the identifier, case matters). Phone numbers are stored in E.164 format, so search for `972501234567` or `501234567`, not the local `0501234567`.",
                      "disabled": true
                    },
                    {
                      "key": "search_with",
                      "value": "",
                      "description": "Return only the contacts that have a phone number, or an email.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Return only the contacts that have **any** of these label titles.",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Filter Contacts",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/filter-contacts)\n\nAdvanced filtering of contacts with a list of conditions.\n\nEach condition is combined with the **next** one using its `query_operator` (`and` / `or`). The last condition has `query_operator: null`. Results come 10 per page by default, with the same paging and sorting options as [List Contacts](https://docs.99digital.co.il/online-api/contacts/list-contacts).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/filter` |\n| **Authorization** | User token. Legacy: any agent. New rules: **Contacts → read**. Agent-bot tokens: not allowed. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `page`, `per_page`, `sort`, `include_contact_inboxes` | | No | Same as [List Contacts](https://docs.99digital.co.il/online-api/contacts/list-contacts). |\n| `include_conversations` | boolean | No | Also return each contact's `conversations`. Default `false`. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `payload` | array | Yes | List of conditions. |\n| `payload[].attribute_key` | string | Yes | Attribute to filter on (table below), or the key of a contact custom attribute. |\n| `payload[].filter_operator` | string | Yes | Operator (table below). |\n| `payload[].values` | array | Yes | Values to compare. Most operators use `values[0]`. Send `[]` for `is_present` / `is_not_present`. |\n| `payload[].query_operator` | string | Yes | `and` / `or` to join with the next condition; `null` on the last one. Any other value returns `422`. |\n\n**Filterable attributes**\n\n| `attribute_key` | Operators |\n| --- | --- |\n| `name` | `equal_to`, `not_equal_to`, `contains`, `does_not_contain` |\n| `phone_number` | `equal_to`, `not_equal_to`, `contains`, `does_not_contain`, `is_present`, `is_not_present` (the value may be sent with or without `+`) |\n| `email` | `equal_to`, `not_equal_to`, `contains`, `does_not_contain`, `is_present`, `is_not_present` |\n| `identifier` | `equal_to`, `not_equal_to` |\n| `country_code` | `equal_to`, `not_equal_to` |\n| `city` | `equal_to`, `not_equal_to`, `contains`, `does_not_contain` |\n| `browser_language` | `equal_to`, `not_equal_to`, `contains`, `does_not_contain` |\n| `company`, `company_name` | `equal_to`, `not_equal_to`, `contains`, `does_not_contain`, `is_present`, `is_not_present` |\n| `labels` | `equal_to` (has any of the labels), `not_equal_to` (has none of them), `is_present`, `is_not_present` |\n| `created_at`, `last_activity_at` | `is_greater_than`, `is_less_than` (value `YYYY-MM-DD`), `days_before` (value = number of days) |\n| `blocked` | `equal_to`, `not_equal_to` (value `true` / `false`) |\n| *custom attribute key* | Key of a **contact** custom attribute defined in Settings → Custom attributes. Operators depend on the attribute type: text `equal_to` / `not_equal_to` / `contains` / `does_not_contain`; number and date `equal_to` / `not_equal_to` / `is_greater_than` / `is_less_than`; plus `is_present` / `is_not_present`. |\n\nText comparisons are case-insensitive.\n\n> **Warning:** A condition with an unsupported operator (for example `contains` on `labels`) or an unknown attribute key is **silently ignored**, so the filter returns more results than expected. Stick to the operators in the table.\n\n#### Example: email contains X **or** phone equals Y\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/filter?page=1&include_contact_inboxes=false' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"payload\": [\n      { \"attribute_key\": \"email\", \"filter_operator\": \"contains\", \"values\": [\"dana.cohen\"], \"query_operator\": \"or\" },\n      { \"attribute_key\": \"phone_number\", \"filter_operator\": \"equal_to\", \"values\": [\"972521234567\"], \"query_operator\": null }\n    ]\n  }'\n```\n\nResponse (`200 OK`). The two contacts are shown by ID and name only; each item is a full contact object.\n\n```json\n{\n  \"meta\": { \"count\": 2, \"current_page\": \"1\" },\n  \"payload\": [\n    { \"id\": 801, \"name\": \"Dana Cohen\" },\n    { \"id\": 802, \"name\": \"Avi Levi\" }\n  ]\n}\n```\n\n#### Example: city equals Tel Aviv **and** created after a date\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/filter?include_contact_inboxes=false' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"payload\": [\n      { \"attribute_key\": \"city\", \"filter_operator\": \"equal_to\", \"values\": [\"Tel Aviv\"], \"query_operator\": \"and\" },\n      { \"attribute_key\": \"created_at\", \"filter_operator\": \"is_greater_than\", \"values\": [\"2026-11-11\"], \"query_operator\": null }\n    ]\n  }'\n```\n\nResponse (`200 OK`):\n\n```json\n{\n  \"meta\": {\n    \"count\": 1,\n    \"current_page\": 1\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500\n    }\n  ]\n}\n```\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `422` | `query_operator` is not `and` / `or` / `null`. | `{\"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"}` |\n\n## Remarks\n\n- `meta.current_page` may come back as a string (for example `\"1\"`), so parse it before comparing.",
          "item": [
            {
              "name": "Email or phone",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"email\",\n      \"filter_operator\": \"contains\",\n      \"values\": [\n        \"dana.cohen\"\n      ],\n      \"query_operator\": \"or\"\n    },\n    {\n      \"attribute_key\": \"phone_number\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"972521234567\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "filter"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    },
                    {
                      "key": "include_conversations",
                      "value": "",
                      "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                      "disabled": true
                    }
                  ]
                },
                "description": "The email contains a text, or the phone number equals a number.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/filter-contacts)"
              },
              "response": [
                {
                  "name": "200 · Email or phone",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"email\",\n      \"filter_operator\": \"contains\",\n      \"values\": [\n        \"dana.cohen\"\n      ],\n      \"query_operator\": \"or\"\n    },\n    {\n      \"attribute_key\": \"phone_number\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"972521234567\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"count\": 2,\n    \"current_page\": \"1\"\n  },\n  \"payload\": [\n    {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\"\n    },\n    {\n      \"id\": 802,\n      \"name\": \"Avi Levi\"\n    }\n  ]\n}"
                },
                {
                  "name": "200 · City and creation date",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"email\",\n      \"filter_operator\": \"contains\",\n      \"values\": [\n        \"dana.cohen\"\n      ],\n      \"query_operator\": \"or\"\n    },\n    {\n      \"attribute_key\": \"phone_number\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"972521234567\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"count\": 1,\n    \"current_page\": 1\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500\n    }\n  ]\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"email\",\n      \"filter_operator\": \"contains\",\n      \"values\": [\n        \"dana.cohen\"\n      ],\n      \"query_operator\": \"or\"\n    },\n    {\n      \"attribute_key\": \"phone_number\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"972521234567\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"email\",\n      \"filter_operator\": \"contains\",\n      \"values\": [\n        \"dana.cohen\"\n      ],\n      \"query_operator\": \"or\"\n    },\n    {\n      \"attribute_key\": \"phone_number\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"972521234567\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"email\",\n      \"filter_operator\": \"contains\",\n      \"values\": [\n        \"dana.cohen\"\n      ],\n      \"query_operator\": \"or\"\n    },\n    {\n      \"attribute_key\": \"phone_number\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"972521234567\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"email\",\n      \"filter_operator\": \"contains\",\n      \"values\": [\n        \"dana.cohen\"\n      ],\n      \"query_operator\": \"or\"\n    },\n    {\n      \"attribute_key\": \"phone_number\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"972521234567\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"email\",\n      \"filter_operator\": \"contains\",\n      \"values\": [\n        \"dana.cohen\"\n      ],\n      \"query_operator\": \"or\"\n    },\n    {\n      \"attribute_key\": \"phone_number\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"972521234567\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"\n}"
                }
              ]
            },
            {
              "name": "City and creation date",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"city\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"Tel Aviv\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"created_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "filter"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    },
                    {
                      "key": "per_page",
                      "value": "",
                      "description": "The page size — the number of contacts per page, at most 100.",
                      "disabled": true
                    },
                    {
                      "key": "sort",
                      "value": "",
                      "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                      "disabled": true
                    },
                    {
                      "key": "include_contact_inboxes",
                      "value": "",
                      "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                      "disabled": true
                    },
                    {
                      "key": "include_conversations",
                      "value": "",
                      "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                      "disabled": true
                    }
                  ]
                },
                "description": "The city equals a value, and the contact was created after a date.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/filter-contacts)"
              },
              "response": [
                {
                  "name": "200 · Email or phone",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"city\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"Tel Aviv\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"created_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"count\": 2,\n    \"current_page\": \"1\"\n  },\n  \"payload\": [\n    {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\"\n    },\n    {\n      \"id\": 802,\n      \"name\": \"Avi Levi\"\n    }\n  ]\n}"
                },
                {
                  "name": "200 · City and creation date",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"city\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"Tel Aviv\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"created_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"count\": 1,\n    \"current_page\": 1\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500\n    }\n  ]\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"city\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"Tel Aviv\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"created_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"city\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"Tel Aviv\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"created_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"city\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"Tel Aviv\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"created_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"city\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"Tel Aviv\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"created_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"city\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"Tel Aviv\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"created_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "",
                          "description": "The page parameter — the number of the page to return.",
                          "disabled": true
                        },
                        {
                          "key": "per_page",
                          "value": "",
                          "description": "The page size — the number of contacts per page, at most 100.",
                          "disabled": true
                        },
                        {
                          "key": "sort",
                          "value": "",
                          "description": "The attribute by which the list should be sorted. Prefix it with `-` for descending order (for example `-created_at`).",
                          "disabled": true
                        },
                        {
                          "key": "include_contact_inboxes",
                          "value": "",
                          "description": "Include `contact_inboxes` in each contact. Send `false` for much smaller responses.",
                          "disabled": true
                        },
                        {
                          "key": "include_conversations",
                          "value": "",
                          "description": "Also return each contact's `conversations`, each a full conversation object as returned by [Get Conversation](/online-api/conversations/get-conversation).",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "List Online Contacts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/active",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "active"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "",
                  "description": "The page parameter — the number of the page to return.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/list-online-contacts)\n\nReturns contacts that are online right now (connected through the website widget).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/active` |\n| **Authorization** | User token. Any agent. Agent-bot tokens: not allowed. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `page` | integer | No | Page number. Default `1`. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/active' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). Truncated to one item.\n\n```json\n{\n  \"meta\": {\n    \"count\": 6,\n    \"current_page\": 1\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {},\n      \"availability_status\": \"online\",\n      \"email\": null,\n      \"id\": 803,\n      \"name\": \"Noa Mizrahi\",\n      \"phone_number\": \"+972531234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794471000\n    }\n  ]\n}\n```\n\n`meta.count` is the total number of online contacts across all pages. `meta.current_page` may come back as a string (for example `\"1\"`), so parse it before comparing."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/active",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "active"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"count\": 1,\n    \"current_page\": 1\n  },\n  \"payload\": [\n    {\n      \"additional_attributes\": {},\n      \"availability_status\": \"online\",\n      \"email\": null,\n      \"id\": 803,\n      \"name\": \"Noa Mizrahi\",\n      \"phone_number\": \"+972531234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794471000\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/active",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "active"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/active",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "active"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/active",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "active"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/active",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "active"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page parameter — the number of the page to return.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Get Contact Conversations",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/conversations",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}",
                "conversations"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/get-contact-conversations)\n\nGet conversations associated to that contact.\n\nReturns up to the 20 most recent conversations of the contact that the caller is allowed to see, newest first. Each item is a full conversation object, as returned by [Get Conversation](https://docs.99digital.co.il/online-api/conversations/get-conversation).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/conversations` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — only the conversations the caller may see are returned:\n  - New rules system: conversations in the inboxes where the caller's role has **Inbox read all conversations**, plus the conversations assigned to the caller.\n  - Legacy roles: conversations in the caller's inboxes. Agents without \"see all conversations\" get only the conversations assigned to them.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `contact_id` | The numeric ID of the contact | Yes |\n\n**Response:**\n\n```json\n{\n  \"payload\": [\n    {\n      \"meta\": {},\n      \"id\": 0,\n      \"messages\": [],\n      \"account_id\": 0,\n      \"additional_attributes\": {},\n      \"agent_last_seen_at\": 0,\n      \"assignee_last_seen_at\": 0,\n      \"can_reply\": false,\n      \"contact_last_seen_at\": 0,\n      \"custom_attributes\": {},\n      \"inbox_id\": 0,\n      \"labels\": [\"string\"],\n      \"muted\": false,\n      \"snoozed_until\": null,\n      \"status\": \"resolved\",\n      \"created_at\": 0,\n      \"timestamp\": 0,\n      \"first_reply_created_at\": 0,\n      \"unread_count\": 0,\n      \"last_non_activity_message\": {}\n    }\n  ]\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| payload | Array of objects (conversation), up to 20, newest first |\n| payload -> meta | Metadata about the conversation: the contact (`sender`), the `assignee`, the `team` and the `channel` |\n| payload -> id | Conversation display ID: the number in the dashboard URL, used in every conversation path |\n| payload -> account_id | Account numeric ID |\n| payload -> inbox_id | Inbox numeric ID |\n| payload -> status | The status of the conversation. Enum: `open`, `resolved`, `pending`, `snoozed`. The dashboard calls `open` **Bot** and `pending` **Manual** |\n| payload -> created_at | Time at which the conversation was created. Measured in seconds since the Unix epoch |\n| payload -> unread_count | The number of unread incoming messages |\n| payload -> messages | Array of objects (message). Holds the conversation's **last** message only; use [List of Messages](https://docs.99digital.co.il/online-api/messages/list-of-messages) for the history |\n| payload -> agent_last_seen_at | The last time at which an agent read the conversation. Measured in seconds since the Unix epoch; `0` if never |\n| payload -> assignee_last_seen_at | The last time at which the assignee (user) read the conversation. Measured in seconds since the Unix epoch; `0` if never |\n| payload -> labels | Array of strings (label titles) |\n| payload -> additional_attributes | The object containing additional attributes related to the conversation |\n| payload -> custom_attributes | The object containing custom attributes for the conversation (custom attribute keys and values) |\n| payload -> first_reply_created_at | The time at which the first reply was sent. Measured in seconds since the Unix epoch; `0` if there is none yet |\n| payload -> last_non_activity_message | Object containing the last non-activity message (incoming, outgoing, template) |\n| payload -> can_reply | Whether the conversation is currently within the messaging window (for example WhatsApp's 24-hour window) |\n| payload -> contact_last_seen_at | The last time the contact read the conversation. Measured in seconds since the Unix epoch; `0` if never |\n| payload -> snoozed_until | The time at which a previously snoozed conversation is reactivated. Measured in **milliseconds** since the Unix epoch; `null` when the conversation is not snoozed |\n| payload -> muted | Whether the conversation is muted. A muted conversation does not notify agents |\n| payload -> timestamp | The same as `last_activity_at`: the conversation's last activity (Unix time, seconds) |"
          },
          "response": [
            {
              "name": "200 · Conversations",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "conversations"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"meta\": {\n        \"sender\": {\n          \"additional_attributes\": {\n            \"company_name\": \"Example Ltd\",\n            \"city\": \"Tel Aviv\"\n          },\n          \"availability_status\": \"offline\",\n          \"email\": \"dana.cohen@example.com\",\n          \"id\": 801,\n          \"name\": \"Dana Cohen\",\n          \"phone_number\": \"+972501234567\",\n          \"identifier\": \"crm-801\",\n          \"thumbnail\": \"\",\n          \"custom_attributes\": {\n            \"customer_tier\": \"gold\"\n          },\n          \"blocked\": false,\n          \"is_whatsapp_contact\": false,\n          \"created_at\": 1794470500\n        },\n        \"channel\": \"Channel::Api\",\n        \"hmac_verified\": false\n      },\n      \"contact_inbox\": {\n        \"wa_id\": null\n      },\n      \"id\": 1501,\n      \"messages\": [\n        {\n          \"id\": 40113,\n          \"content\": \"Hi, where is my order?\",\n          \"message_type\": 0,\n          \"private\": false,\n          \"status\": \"sent\",\n          \"content_type\": \"text\",\n          \"created_at\": 1794471600\n        }\n      ],\n      \"account_id\": 12,\n      \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\",\n      \"additional_attributes\": {},\n      \"agent_last_seen_at\": 0,\n      \"assignee_last_seen_at\": 0,\n      \"can_reply\": true,\n      \"last_incoming_message_time\": \"2026-11-12T08:20:00.000Z\",\n      \"contact_last_seen_at\": 0,\n      \"custom_attributes\": {},\n      \"inbox_id\": 31,\n      \"labels\": [],\n      \"muted\": false,\n      \"snoozed_until\": null,\n      \"status\": \"open\",\n      \"created_at\": 1794471500,\n      \"timestamp\": 1794471600,\n      \"first_reply_created_at\": 0,\n      \"unread_count\": 1,\n      \"has_incoming_messages\": true,\n      \"last_non_activity_message\": {\n        \"id\": 40113,\n        \"content\": \"Hi, where is my order?\",\n        \"message_type\": 0\n      },\n      \"last_activity_at\": 1794471600,\n      \"priority\": null,\n      \"waiting_since\": 1794471600,\n      \"sla_policy_id\": null,\n      \"feature_enabled_sla\": true,\n      \"applied_sla\": null,\n      \"sla_events\": [],\n      \"sla_events_with_distinct_event_type\": [],\n      \"campaign_id\": null,\n      \"pinned\": false\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "conversations"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "conversations"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "conversations"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "conversations"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "conversations"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "List Contactable Inboxes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contactable_inboxes",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}",
                "contactable_inboxes"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/list-contactable-inboxes)\n\nReturns the inboxes the caller can use to start a new conversation with this contact, each with the source ID to use.\n\nFor phone and email channels the `source_id` is the contact's phone or email. For API inboxes a new ID is suggested (it is not saved until you [create the conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation) or [contact inbox](https://docs.99digital.co.il/online-api/contacts/create-contact-inbox)).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/{contact_id}/contactable_inboxes` |\n| **Authorization** | User token. Only inboxes where the caller may send messages are returned. Agent-bot tokens: not allowed. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `contact_id` | integer | Yes | Contact ID. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/contactable_inboxes' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). Truncated: 2 of the inboxes are shown, and the `inbox` objects are trimmed.\n\n```json\n{\n  \"payload\": [\n    {\n      \"inbox\": { \"id\": 33, \"name\": \"Support Email\", \"channel_type\": \"Channel::Email\" },\n      \"source_id\": \"dana.cohen@example.com\"\n    },\n    {\n      \"inbox\": { \"id\": 31, \"name\": \"Website API\", \"channel_type\": \"Channel::Api\" },\n      \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n    }\n  ]\n}\n```"
          },
          "response": [
            {
              "name": "200 · Contactable inboxes",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contactable_inboxes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "contactable_inboxes"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"inbox\": {\n        \"id\": 33,\n        \"name\": \"Support Email\",\n        \"channel_type\": \"Channel::Email\"\n      },\n      \"source_id\": \"dana.cohen@example.com\"\n    },\n    {\n      \"inbox\": {\n        \"id\": 31,\n        \"name\": \"Website API\",\n        \"channel_type\": \"Channel::Api\"\n      },\n      \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contactable_inboxes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "contactable_inboxes"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contactable_inboxes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "contactable_inboxes"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contactable_inboxes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "contactable_inboxes"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contactable_inboxes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "contactable_inboxes"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contactable_inboxes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "contactable_inboxes"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Create Contact Inbox",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/create-contact-inbox)\n\nLinks an existing contact to an inbox.\n\nThis creates the contact inbox (and its `source_id`) needed to [open a conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation) in that inbox. If the link already exists, it is returned unchanged.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/{contact_id}/contact_inboxes` |\n| **Authorization** | User token. The caller must be allowed to view the inbox. Agent-bot tokens: not allowed. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `contact_id` | integer | Yes | Contact ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `inbox_id` | integer | Yes | Inbox ID. |\n| `source_id` | string | No | The contact's ID on that channel. Generated if omitted. For phone channels it defaults to the contact's phone; for email inboxes to the contact's email. |\n| `hmac_verified` | boolean | No | Mark the contact inbox as HMAC-verified (website widget identity validation). |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/contact_inboxes' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"inbox_id\": 31, \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" }'\n```\n\n**Example response** (`200 OK`). The `inbox` object is truncated.\n\n```json\n{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox\": {\n    \"id\": 31,\n    \"channel_id\": 9,\n    \"name\": \"Website API\",\n    \"channel_type\": \"Channel::Api\",\n    \"enable_auto_assignment\": true,\n    \"webhook_url\": \"\"\n  }\n}\n```\n\n**Error responses**: `404 {\"error\": \"Resource could not be found\"}` when the contact or inbox does not exist.",
          "item": [
            {
              "name": "Generated source ID",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"inbox_id\": 31\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "contact_inboxes"
                  ]
                },
                "description": "Link the contact to an inbox, with a generated `source_id`.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/create-contact-inbox)"
              },
              "response": [
                {
                  "name": "200 · Contact inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox\": {\n    \"id\": 31,\n    \"channel_id\": 9,\n    \"name\": \"Website API\",\n    \"channel_type\": \"Channel::Api\",\n    \"enable_auto_assignment\": true,\n    \"webhook_url\": \"\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Your own source ID",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"inbox_id\": 31,\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "contact_inboxes"
                  ]
                },
                "description": "Link the contact to an inbox with a `source_id` you choose.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/create-contact-inbox)"
              },
              "response": [
                {
                  "name": "200 · Contact inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox\": {\n    \"id\": 31,\n    \"channel_id\": 9,\n    \"name\": \"Website API\",\n    \"channel_type\": \"Channel::Api\",\n    \"enable_auto_assignment\": true,\n    \"webhook_url\": \"\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/contact_inboxes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "contact_inboxes"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "List Contact Labels",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}",
                "labels"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/list-contact-labels)\n\nList the labels of a contact.\n\nThe labels are returned as their titles. To change them, use [Set Contact Labels](https://docs.99digital.co.il/online-api/contacts/set-contact-labels).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/{contact_id}/labels` |\n| **Authorization** | User token. Any agent. Agent-bot tokens: not allowed. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/labels' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{ \"payload\": [\"vip\", \"billing\"] }\n```"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "labels"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    \"vip\",\n    \"billing\"\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Set Contact Labels",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/set-contact-labels)\n\nReplaces the contact's labels with the given list.\n\nSend `[]` to remove all labels. Label titles are not checked against the account's [labels](https://docs.99digital.co.il/online-api/labels/list-labels), so any string is accepted. Use existing label titles so the labels show up with their colours in the dashboard.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/{contact_id}/labels` |\n| **Authorization** | User token. Any agent. Agent-bot tokens: not allowed. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `contact_id` | integer | Yes | Contact ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `labels` | string[] | Yes | The full list of label titles. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/labels' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"labels\": [\"vip\", \"billing\"] }'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{ \"payload\": [\"vip\", \"billing\"] }\n```",
          "item": [
            {
              "name": "Set labels",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "labels"
                  ]
                },
                "description": "The contact gets exactly these two labels.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/set-contact-labels)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": [\n    \"vip\",\n    \"billing\"\n  ]\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Remove all labels",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"labels\": []\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "labels"
                  ]
                },
                "description": "An empty list removes every label from the contact.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/set-contact-labels)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": [\n    \"vip\",\n    \"billing\"\n  ]\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Block Contact",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"period\": 7,\n  \"conversation_id\": 1501\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/block",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}",
                "block"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/block-contact)\n\nBlocks the contact for a number of days.\n\nWhile a contact is blocked, their incoming messages are not delivered to agents, and the contact is removed from all contact lists. If you pass `conversation_id`, an activity message about the block is added to that conversation. The block is recorded with `block_source: \"api\"` when it is made with an access token. To lift the block early, use [Unblock Contact](https://docs.99digital.co.il/online-api/contacts/unblock-contact).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/{contact_id}/block` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Contacts → update** only (the legacy administrator role does not pass). When `conversation_id` is sent, the caller must also be able to see that conversation. Agent-bot tokens: not allowed. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `contact_id` | integer | Yes | Contact ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `period` | integer | No | Block duration in days. Default `1`, maximum `36500`. |\n| `conversation_id` | integer | No | Display ID of one of the contact's conversations, where the \"blocked\" activity message is posted. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/block' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"period\": 7, \"conversation_id\": 1501 }'\n```\n\n**Example response** (`200 OK`). The `contact_inboxes` list is truncated.\n\n```json\n{\n  \"payload\": {\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\",\n      \"blocked\": \"2026-11-19 08:00:00 UTC\",\n      \"blocked_at\": \"2026-11-12T08:00:00Z\",\n      \"block_source\": \"api\"\n    },\n    \"availability_status\": \"offline\",\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"blocked\": true,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 1794470500,\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": []\n  }\n}\n```\n\n`additional_attributes.blocked` is the time the block ends, `blocked_at` the time it started, and `block_source` is `api` when the block is made with an access token."
          },
          "response": [
            {
              "name": "200 · Blocked contact",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": 7,\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/block",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "block"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": {\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\",\n      \"blocked\": \"2026-11-19 08:00:00 UTC\",\n      \"blocked_at\": \"2026-11-12T08:00:00Z\",\n      \"block_source\": \"api\"\n    },\n    \"availability_status\": \"offline\",\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"blocked\": true,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 1794470500,\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": [\n      {\n        \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n        \"inbox\": {\n          \"id\": 31,\n          \"name\": \"Website API\",\n          \"channel_type\": \"Channel::Api\"\n        }\n      }\n    ]\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": 7,\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/block",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "block"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": 7,\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/block",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "block"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": 7,\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/block",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "block"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": 7,\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/block",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "block"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": 7,\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/block",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "block"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Unblock Contact",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"conversation_id\": 1501\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/unblock",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}",
                "unblock"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/unblock-contact)\n\nLift the block of a contact before it ends.\n\nSee [Block Contact](https://docs.99digital.co.il/online-api/contacts/block-contact).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/{contact_id}/unblock` |\n| **Authorization** | Same as [Block Contact](https://docs.99digital.co.il/online-api/contacts/block-contact): user token. Legacy: `administrator`. New rules: **Contacts → update** only (the legacy administrator role does not pass). When `conversation_id` is sent, the caller must also be able to see that conversation. Agent-bot tokens: not allowed. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `conversation_id` | integer | No | Display ID of one of the contact's conversations, where the \"unblocked\" activity message is posted. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/unblock' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"conversation_id\": 1501 }'\n```\n\n**Example response** (`200 OK`): the contact (same shape as [Block Contact](https://docs.99digital.co.il/online-api/contacts/block-contact)) with `\"blocked\": false` and the block keys removed from `additional_attributes`."
          },
          "response": [
            {
              "name": "200 · Unblocked contact",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/unblock",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "unblock"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": {\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\"\n    },\n    \"availability_status\": \"offline\",\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"blocked\": false,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 1794470500,\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": [\n      {\n        \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n        \"inbox\": {\n          \"id\": 31,\n          \"name\": \"Website API\",\n          \"channel_type\": \"Channel::Api\"\n        }\n      }\n    ]\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/unblock",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "unblock"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/unblock",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "unblock"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/unblock",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "unblock"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/unblock",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "unblock"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/unblock",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "unblock"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Delete Contact Custom Attributes",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"custom_attributes\": [\n    \"plan\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/destroy_custom_attributes",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}",
                "destroy_custom_attributes"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/delete-contact-custom-attributes)\n\nRemoves the given keys from the contact's custom attributes.\n\nThe other custom attributes are kept. To add or change values, use [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact), which merges `custom_attributes`.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/{contact_id}/destroy_custom_attributes` |\n| **Authorization** | User token. Same as [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact): legacy roles: any agent; new rules: **Contacts → update**. Agent-bot tokens: not allowed. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `custom_attributes` | string[] | Yes | Keys to remove. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/destroy_custom_attributes' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"custom_attributes\": [\"plan\"] }'\n```\n\n**Example response** (`200 OK`). The `contact_inboxes` list is truncated.\n\n```json\n{\n  \"payload\": {\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\"\n    },\n    \"availability_status\": \"offline\",\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"blocked\": false,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 1794470500,\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": []\n  }\n}\n```"
          },
          "response": [
            {
              "name": "200 · Updated contact",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"plan\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": {\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\"\n    },\n    \"availability_status\": \"offline\",\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"blocked\": false,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 1794470500,\n    \"email_or_phone_optional\": false,\n    \"contact_inboxes\": [\n      {\n        \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n        \"inbox\": {\n          \"id\": 31,\n          \"name\": \"Website API\",\n          \"channel_type\": \"Channel::Api\"\n        }\n      }\n    ]\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"plan\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"plan\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"plan\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"plan\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"plan\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Delete Contact Avatar",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/avatar",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "contacts",
                "{{contact_id}}",
                "avatar"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/delete-contact-avatar)\n\nRemove a contact's avatar image.\n\nTo set a new avatar, use [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `DELETE` |\n| **Path** | `/api/v1/accounts/{account_id}/contacts/{contact_id}/avatar` |\n| **Authorization** | User token. Same as [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact): legacy roles: any agent; new rules: **Contacts → read**. Agent-bot tokens: not allowed. |\n\n**Example request**\n\n```bash\ncurl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/avatar' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`): `{\"payload\": { ...contact object without contact_inboxes... }}` with `\"thumbnail\": \"\"`."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/avatar",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "avatar"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": {\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\"\n    },\n    \"availability_status\": \"offline\",\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"blocked\": false,\n    \"is_whatsapp_contact\": false,\n    \"created_at\": 1794470500\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/avatar",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "avatar"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/avatar",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "avatar"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/avatar",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "avatar"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/avatar",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "avatar"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/avatar",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "avatar"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Merge Contacts",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"base_contact_id\": 801,\n  \"mergee_contact_id\": 802\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/actions/contact_merge",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "actions",
                "contact_merge"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/merge-contacts)\n\nMerges the mergee contact into the base contact, then deletes the mergee.\n\nThe base contact takes over all conversations, messages, contact inboxes, list memberships, form submissions, notes, tickets, CSAT responses, files and labels. For attributes, the base contact's non-empty values win, and empty ones are filled from the mergee. An active block on the mergee is carried over if it is longer than the base contact's.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/actions/contact_merge` |\n| **Authorization** | User token. Requires **delete** permission on the mergee and **update** permission on the base contact (legacy: `administrator`; new rules: **Contacts → delete** and **Contacts → update**). Agent-bot tokens: not allowed. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `base_contact_id` | integer | Yes | Contact that is kept. |\n| `mergee_contact_id` | integer | Yes | Contact that is merged and then deleted. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/actions/contact_merge' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"base_contact_id\": 801, \"mergee_contact_id\": 802 }'\n```\n\n**Example response** (`200 OK`): the base contact. It is **not** wrapped in `payload`, and has no `contact_inboxes`.\n\n```json\n{\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"availability_status\": \"offline\",\n  \"email\": \"dana.cohen@example.com\",\n  \"id\": 801,\n  \"name\": \"Dana Cohen\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"thumbnail\": \"\",\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  },\n  \"blocked\": false,\n  \"is_whatsapp_contact\": false,\n  \"created_at\": 1794470500\n}\n```\n\nAfter the merge, `GET /contacts/802` returns `404`."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"base_contact_id\": 801,\n  \"mergee_contact_id\": 802\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/actions/contact_merge",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "actions",
                    "contact_merge"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"availability_status\": \"offline\",\n  \"email\": \"dana.cohen@example.com\",\n  \"id\": 801,\n  \"name\": \"Dana Cohen\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"thumbnail\": \"\",\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  },\n  \"blocked\": false,\n  \"is_whatsapp_contact\": false,\n  \"created_at\": 1794470500\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"base_contact_id\": 801,\n  \"mergee_contact_id\": 802\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/actions/contact_merge",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "actions",
                    "contact_merge"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"base_contact_id\": 801,\n  \"mergee_contact_id\": 802\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/actions/contact_merge",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "actions",
                    "contact_merge"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"base_contact_id\": 801,\n  \"mergee_contact_id\": 802\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/actions/contact_merge",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "actions",
                    "contact_merge"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"base_contact_id\": 801,\n  \"mergee_contact_id\": 802\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/actions/contact_merge",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "actions",
                    "contact_merge"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Notes",
          "item": [
            {
              "name": "List Contact Notes",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "notes"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/notes/list-contact-notes)\n\nList the internal notes that agents wrote about a contact, newest first.\n\nInternal notes that agents write about a contact. They are not visible to the contact. To add one, use [Create Contact Note](https://docs.99digital.co.il/online-api/contacts/notes/create-contact-note).\n\n| Action | Method | Path |\n| --- | --- | --- |\n| List notes (newest first) | `GET` | `/api/v1/accounts/{account_id}/contacts/{contact_id}/notes` |\n\n**Authorization**: user token. Listing requires the [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact) permission (new rules: **Contacts → read**). Creating, updating and deleting require the [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact) permission (new rules: **Contacts → update**). Legacy roles: any agent. Agent-bot tokens: not allowed.\n\n#### Example: list notes\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/notes' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`): an array of note objects."
              },
              "response": [
                {
                  "name": "200 · Notes",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 71,\n    \"content\": \"Callback moved to Monday.\",\n    \"account_id\": null,\n    \"contact_id\": null,\n    \"user\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"name\": \"Jane Agent\",\n      \"available_name\": \"Jane Agent\",\n      \"email\": \"jane.agent@example.com\",\n      \"role\": \"General Manager\",\n      \"thumbnail\": \"\"\n    },\n    \"created_at\": 1794470700,\n    \"updated_at\": 1794474300\n  }\n]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Create Contact Note",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const note_id = pick([\"id\"]);",
                      "  if (note_id !== undefined && note_id !== null) {",
                      "    pm.collectionVariables.set(\"note_id\", String(note_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"note\": {\n    \"content\": \"Customer asked for a callback about order A-1001.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "notes"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/notes/create-contact-note)\n\nAdd an internal note about a contact.\n\nInternal notes that agents write about a contact. They are not visible to the contact. The caller becomes the note's author (`user`).\n\n| Action | Method | Path |\n| --- | --- | --- |\n| Create a note | `POST` | `/api/v1/accounts/{account_id}/contacts/{contact_id}/notes` |\n\n**Authorization**: user token. Listing requires the [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact) permission (new rules: **Contacts → read**). Creating, updating and deleting require the [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact) permission (new rules: **Contacts → update**). Legacy roles: any agent. Agent-bot tokens: not allowed.\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `note.content` | string | Yes | Note text. |\n\n#### Example: create a note\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/notes' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"note\": { \"content\": \"Customer asked for a callback about order A-1001.\" } }'\n```\n\nResponse (`200 OK`). `user` is the author, as an [agent object](https://docs.99digital.co.il/online-api/agents/list-of-all-agents), shown here truncated. `account_id` and `contact_id` are always `null` in this response.\n\n```json\n{\n  \"id\": 71,\n  \"content\": \"Customer asked for a callback about order A-1001.\",\n  \"account_id\": null,\n  \"contact_id\": null,\n  \"user\": {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"role\": \"General Manager\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at\": 1794470700,\n  \"updated_at\": 1794470700\n}\n```"
              },
              "response": [
                {
                  "name": "200 · Note",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Customer asked for a callback about order A-1001.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 71,\n  \"content\": \"Customer asked for a callback about order A-1001.\",\n  \"account_id\": null,\n  \"contact_id\": null,\n  \"user\": {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"role\": \"General Manager\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at\": 1794470700,\n  \"updated_at\": 1794470700\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Customer asked for a callback about order A-1001.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Customer asked for a callback about order A-1001.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Customer asked for a callback about order A-1001.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Customer asked for a callback about order A-1001.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Customer asked for a callback about order A-1001.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Update Contact Note",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"note\": {\n    \"content\": \"Callback moved to Monday.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "notes",
                    "{{note_id}}"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/notes/update-contact-note)\n\nChange the text of an internal note about a contact.\n\nInternal notes that agents write about a contact. They are not visible to the contact.\n\n| Action | Method | Path |\n| --- | --- | --- |\n| Update a note | `PATCH` | `/api/v1/accounts/{account_id}/contacts/{contact_id}/notes/{note_id}` |\n\n**Authorization**: user token. Listing requires the [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact) permission (new rules: **Contacts → read**). Creating, updating and deleting require the [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact) permission (new rules: **Contacts → update**). Legacy roles: any agent. Agent-bot tokens: not allowed.\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `note.content` | string | Yes | Note text. |\n\n#### Example: update a note\n\n```bash\ncurl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/notes/71' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"note\": { \"content\": \"Callback moved to Monday.\" } }'\n```\n\nResponse (`200 OK`): the same note object with `\"content\": \"Callback moved to Monday.\"` and a new `updated_at`."
              },
              "response": [
                {
                  "name": "200 · Note",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Callback moved to Monday.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 71,\n  \"content\": \"Callback moved to Monday.\",\n  \"account_id\": null,\n  \"contact_id\": null,\n  \"user\": {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"role\": \"General Manager\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at\": 1794470700,\n  \"updated_at\": 1794474300\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Callback moved to Monday.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Callback moved to Monday.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Callback moved to Monday.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Callback moved to Monday.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"note\": {\n    \"content\": \"Callback moved to Monday.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Delete Contact Note",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "notes",
                    "{{note_id}}"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/notes/delete-contact-note)\n\nDelete an internal note about a contact.\n\nInternal notes that agents write about a contact. They are not visible to the contact.\n\n| Action | Method | Path |\n| --- | --- | --- |\n| Delete a note | `DELETE` | `/api/v1/accounts/{account_id}/contacts/{contact_id}/notes/{note_id}` |\n\n**Authorization**: user token. Listing requires the [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact) permission (new rules: **Contacts → read**). Creating, updating and deleting require the [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact) permission (new rules: **Contacts → update**). Legacy roles: any agent. Agent-bot tokens: not allowed.\n\n#### Example: delete a note\n\n```bash\ncurl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/notes/71' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse: `200 OK` with an empty body."
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/notes/{{note_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "notes",
                        "{{note_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Files",
          "item": [
            {
              "name": "List Contact Files",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const file_id = pick([0,\"id\"]);",
                      "  if (file_id !== undefined && file_id !== null) {",
                      "    pm.collectionVariables.set(\"file_id\", String(file_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "files"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/files/list-contact-files)\n\nList the documents attached to a contact's profile.\n\nDocuments attached to a contact profile (for example contracts or ID scans), with an optional comment. To add one, use [Upload Contact File](https://docs.99digital.co.il/online-api/contacts/files/upload-contact-file).\n\n| Action | Method | Path |\n| --- | --- | --- |\n| List files | `GET` | `/api/v1/accounts/{account_id}/contacts/{contact_id}/files` |\n\n**Authorization**: user token. Listing requires the [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact) permission (new rules: **Contacts → read**). Uploading, updating and deleting require the [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact) permission (new rules: **Contacts → update**). Legacy roles: any agent. Agent-bot tokens: not allowed.\n\n`file_type` is `image`, `audio`, `video` or the file's MIME type. `thumb_url` is returned only for images."
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/files",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "files"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 3101,\n    \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"file_type\": \"image\",\n    \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"comment\": \"Invoice for order A-1001\",\n    \"created_at_exact\": \"12/11/26 08:00\"\n  }\n]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/files",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "files"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/files",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "files"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/files",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "files"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/files",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "files"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/files",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "files"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Upload Contact File",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "src": [],
                      "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                    },
                    {
                      "key": "comment",
                      "value": "Invoice for order A-1001",
                      "type": "text",
                      "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                    }
                  ]
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "add_file"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/files/upload-contact-file)\n\nAttach a document to a contact's profile.\n\nDocuments attached to a contact profile (for example contracts or ID scans), with an optional comment.\n\n| Action | Method | Path |\n| --- | --- | --- |\n| Upload a file | `POST` | `/api/v1/accounts/{account_id}/contacts/{contact_id}/add_file` |\n\n**Authorization**: user token. Listing requires the [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact) permission (new rules: **Contacts → read**). Uploading, updating and deleting require the [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact) permission (new rules: **Contacts → update**). Legacy roles: any agent. Agent-bot tokens: not allowed.\n\n**Upload (form-data) parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `file` | file | Yes | Up to 10 MB. Allowed types: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG, JPEG. The account's upload policy may restrict this further (for example, `text/plain` can be rejected). |\n| `comment` | string | No | Comment stored with the file (max 500 characters on update). |\n\n#### Example: upload a file\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/add_file' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -F 'file=@invoice.png;type=image/png' \\\n  -F 'comment=Invoice for order A-1001'\n```\n\nResponse (`200 OK`): **all** files of the contact.\n\n```json\n[\n  {\n    \"id\": 3101,\n    \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"file_type\": \"image\",\n    \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"comment\": \"Invoice for order A-1001\",\n    \"created_at_exact\": \"12/11/26 08:00\"\n  }\n]\n```\n\n`file_type` is `image`, `audio`, `video` or the file's MIME type. `thumb_url` is returned only for images.\n\n**Error responses (upload)**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `422` | No `file` sent. | `\"File field is required\"` |\n| `415` | File type not allowed. | `File type is not supported: text/plain` |\n| `413` | File larger than 10 MB. | Error message |\n\n## Remarks\n\n- The code samples add the file once you choose one under **Request → Body**.\n- To change the comment later, use [Update Contact File](https://docs.99digital.co.il/online-api/contacts/files/update-contact-file)."
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 3101,\n    \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"file_type\": \"image\",\n    \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"comment\": \"Invoice for order A-1001\",\n    \"created_at_exact\": \"12/11/26 08:00\"\n  }\n]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "413 Payload Too Large",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "Payload Too Large",
                  "code": 413,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "415 Unsupported Media Type",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "Unsupported Media Type",
                  "code": 415,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "text/plain"
                    }
                  ],
                  "body": "File type is not supported: text/plain"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "file",
                          "type": "file",
                          "src": [],
                          "description": "The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types."
                        },
                        {
                          "key": "comment",
                          "value": "Invoice for order A-1001",
                          "type": "text",
                          "description": "An optional comment kept with the file. You can change it later with [Update Contact File](/online-api/contacts/files/update-contact-file), which accepts up to 500 characters."
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/add_file",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "add_file"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "File field is required"
                }
              ]
            },
            {
              "name": "Update Contact File",
              "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/files/update-contact-file)\n\nChange the comment of a file attached to a contact's profile.\n\nDocuments attached to a contact profile (for example contracts or ID scans), with an optional comment.\n\n| Action | Method | Path |\n| --- | --- | --- |\n| Update a file comment | `PATCH` | `/api/v1/accounts/{account_id}/contacts/{contact_id}/update_file/{file_id}` |\n\n**Authorization**: user token. Listing requires the [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact) permission (new rules: **Contacts → read**). Uploading, updating and deleting require the [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact) permission (new rules: **Contacts → update**). Legacy roles: any agent. Agent-bot tokens: not allowed.\n\n**Update (JSON) parameters**: `comment` (string, max 500 characters). Send an empty string to clear it.\n\n#### Example: update the comment\n\n```bash\ncurl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/update_file/3101' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"comment\": \"Paid invoice for order A-1001\" }'\n```\n\nResponse (`200 OK`): **all** files of the contact, with the updated `comment`.\n\n`file_type` is `image`, `audio`, `video` or the file's MIME type. `thumb_url` is returned only for images.",
              "item": [
                {
                  "name": "Change the comment",
                  "request": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"comment\": \"Paid invoice for order A-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "update_file",
                        "{{file_id}}"
                      ]
                    },
                    "description": "Replace the file's comment.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/files/update-contact-file)"
                  },
                  "response": [
                    {
                      "name": "200 OK",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"Paid invoice for order A-1001\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "[\n  {\n    \"id\": 3101,\n    \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"file_type\": \"image\",\n    \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"comment\": \"Paid invoice for order A-1001\",\n    \"created_at_exact\": \"12/11/26 08:00\"\n  }\n]"
                    },
                    {
                      "name": "401 · Invalid token",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"Paid invoice for order A-1001\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                    },
                    {
                      "name": "401 · Another account",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"Paid invoice for order A-1001\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                    },
                    {
                      "name": "403 · No permission",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"Paid invoice for order A-1001\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                    },
                    {
                      "name": "403 · Agent bot",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"Paid invoice for order A-1001\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                    },
                    {
                      "name": "404 Not Found",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"Paid invoice for order A-1001\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Not Found",
                      "code": 404,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                    }
                  ]
                },
                {
                  "name": "Clear the comment",
                  "request": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"comment\": \"\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "update_file",
                        "{{file_id}}"
                      ]
                    },
                    "description": "An empty string removes the comment.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/files/update-contact-file)"
                  },
                  "response": [
                    {
                      "name": "200 OK",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "[\n  {\n    \"id\": 3101,\n    \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"file_type\": \"image\",\n    \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"comment\": \"Paid invoice for order A-1001\",\n    \"created_at_exact\": \"12/11/26 08:00\"\n  }\n]"
                    },
                    {
                      "name": "401 · Invalid token",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                    },
                    {
                      "name": "401 · Another account",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                    },
                    {
                      "name": "403 · No permission",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                    },
                    {
                      "name": "403 · Agent bot",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                    },
                    {
                      "name": "404 Not Found",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"comment\": \"\"\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/update_file/{{file_id}}",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "contacts",
                            "{{contact_id}}",
                            "update_file",
                            "{{file_id}}"
                          ]
                        }
                      },
                      "status": "Not Found",
                      "code": 404,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                    }
                  ]
                }
              ]
            },
            {
              "name": "Delete Contact File",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/remove_file/{{file_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "contacts",
                    "{{contact_id}}",
                    "remove_file",
                    "{{file_id}}"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/contacts/files/delete-contact-file)\n\nDelete a file from a contact's profile.\n\nDocuments attached to a contact profile (for example contracts or ID scans), with an optional comment.\n\n| Action | Method | Path |\n| --- | --- | --- |\n| Delete a file | `DELETE` | `/api/v1/accounts/{account_id}/contacts/{contact_id}/remove_file/{file_id}` |\n\n**Authorization**: user token. Listing requires the [Retrieve Contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact) permission (new rules: **Contacts → read**). Uploading, updating and deleting require the [Update Contact](https://docs.99digital.co.il/online-api/contacts/update-contact) permission (new rules: **Contacts → update**). Legacy roles: any agent. Agent-bot tokens: not allowed.\n\n#### Example: delete a file\n\n```bash\ncurl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/remove_file/3101' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`): the remaining files (`[]` here)."
              },
              "response": [
                {
                  "name": "200 · No files left",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/remove_file/{{file_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "remove_file",
                        "{{file_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/remove_file/{{file_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "remove_file",
                        "{{file_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/remove_file/{{file_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "remove_file",
                        "{{file_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/remove_file/{{file_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "remove_file",
                        "{{file_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/remove_file/{{file_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "remove_file",
                        "{{file_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/contacts/{{contact_id}}/remove_file/{{file_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "contacts",
                        "{{contact_id}}",
                        "remove_file",
                        "{{file_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Conversations",
      "item": [
        {
          "name": "List Conversations",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "open",
                  "description": "Only conversations with this status. If omitted, every status is returned.",
                  "disabled": true
                },
                {
                  "key": "assignee_type",
                  "value": "",
                  "description": "Only conversations with this kind of assignment.",
                  "disabled": true
                },
                {
                  "key": "inbox_id",
                  "value": "31",
                  "description": "Only conversations of this inbox.",
                  "disabled": true
                },
                {
                  "key": "team_id",
                  "value": "7",
                  "description": "Only conversations of this team.",
                  "disabled": true
                },
                {
                  "key": "labels[]",
                  "value": "vip",
                  "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                  "disabled": true
                },
                {
                  "key": "labels[]",
                  "value": "billing",
                  "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                  "disabled": true
                },
                {
                  "key": "source_id",
                  "value": "",
                  "description": "Only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                  "disabled": true
                },
                {
                  "key": "conversation_type",
                  "value": "",
                  "description": "Only conversations of this kind.",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "",
                  "description": "Only conversations with an incoming or outgoing message that contains this text — the same search as [Search Conversations](/online-api/conversations/search-conversations).",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "",
                  "description": "The sort order. Pinned conversations are always listed first.",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "1",
                  "description": "The page number, 25 conversations per page.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/list-conversations)\n\nReturns conversations visible to the caller, 25 per page, sorted by last activity (pinned conversations first).\n\nThe response holds the conversations in `data.payload` and the counts for\nthe dashboard tabs in `data.meta`. Narrow the list with the query parameters\nbelow; they can be combined. To get only the counts, use\n[Conversation Counts](https://docs.99digital.co.il/online-api/conversations/conversation-counts). To find\nconversations by message text, use `q` here or\n[Search Conversations](https://docs.99digital.co.il/online-api/conversations/search-conversations); for\nconditions on any attribute, use\n[Filter Conversations](https://docs.99digital.co.il/online-api/conversations/filter-conversations).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations` |\n| **Authorization** | User token (see [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)). |\n\n**Permissions:**\n\n- User token: any agent of the account. Only the conversations the caller\n  may see are returned.\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `status` | string | No | `open` (Bot), `pending` (Manual), `snoozed`, `resolved`, `!resolved` (open + pending) or `all`. If omitted, all statuses are returned. |\n| `assignee_type` | string | No | `me` (assigned to the caller), `unassigned`, `assigned`, `new` (conversations with unread incoming messages), or `all` / omitted. |\n| `inbox_id` | integer | No | Only this inbox. |\n| `team_id` | integer | No | Only conversations of this team. |\n| `labels[]` | string[] | No | Conversations with **any** of these labels. |\n| `source_id` | string | No | Only conversations of the contact inbox with this source ID (e.g. a phone number in a WhatsApp inbox). |\n| `conversation_type` | string | No | `mention` (the caller was @mentioned; also marks those mentions as read), `participating` (the caller is a participant), `unattended`. |\n| `q` | string | No | Text that must appear in an incoming/outgoing message (same as [Search Conversations](https://docs.99digital.co.il/online-api/conversations/search-conversations)). |\n| `sort_by` | string | No | `last_activity_at_desc` (default), `last_activity_at_asc`, `created_at_desc`, `created_at_asc`, `priority_desc`, `priority_asc`, `waiting_since_desc`, `waiting_since_asc`, `snoozed_until_desc`, `snoozed_until_asc`, `latest`. |\n| `page` | integer | No | Page number (25 per page). Default `1`. |\n\n> **Note:** The exact same `GET` URL under `/conversations` can be called at most **10\n> times per minute** per IP. Above that you get `429`. Polling\n> `/conversations?status=open` in a loop hits this limit quickly — use\n> [webhook events](https://docs.99digital.co.il/online-api/webhooks/webhook-events) instead.\n> [Conversation Counts](https://docs.99digital.co.il/online-api/conversations/conversation-counts) is not\n> limited this way. See [Rate limits](https://docs.99digital.co.il/online-api/getting-started#rate-limits).\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations?inbox_id=31&status=all&assignee_type=all&page=1' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). The conversations in `payload` are\nshortened; each item is a full conversation object, as returned by\n[Get Conversation](https://docs.99digital.co.il/online-api/conversations/get-conversation).\n\n```json\n{\n  \"data\": {\n    \"meta\": {\n      \"mine_count\": 1,\n      \"new_count\": 1,\n      \"assigned_count\": 1,\n      \"unassigned_count\": 2,\n      \"all_count\": 3,\n      \"active_status_count\": 3,\n      \"resolved_status_count\": 0,\n      \"pending_status_count\": 1,\n      \"snoozed_status_count\": 0,\n      \"all_status_count\": 3,\n      \"last_page\": true,\n      \"total\": 3\n    },\n    \"payload\": [\n      {\n        \"id\": 1504,\n        \"inbox_id\": 31,\n        \"status\": \"pending\",\n        \"priority\": \"high\",\n        \"labels\": [\"billing\"],\n        \"unread_count\": 0,\n        \"last_activity_at\": 1794472200\n      },\n      {\n        \"id\": 1501,\n        \"inbox_id\": 31,\n        \"status\": \"open\",\n        \"priority\": null,\n        \"labels\": [\"vip\"],\n        \"unread_count\": 1,\n        \"last_activity_at\": 1794471300\n      },\n      {\n        \"id\": 1502,\n        \"inbox_id\": 31,\n        \"status\": \"open\",\n        \"priority\": null,\n        \"labels\": [],\n        \"unread_count\": 0,\n        \"last_activity_at\": 1794471060\n      }\n    ]\n  }\n}\n```\n\n**Meta fields**\n\n| Field | Description |\n| --- | --- |\n| `mine_count`, `assigned_count`, `unassigned_count`, `all_count` | Counts for the assignee tabs, using all filters except `assignee_type`. |\n| `new_count` | Conversations with unread incoming messages. |\n| `active_status_count`, `resolved_status_count`, `pending_status_count`, `snoozed_status_count`, `all_status_count` | Counts by status. `active` = `open` + `pending`. |\n| `last_page` | `true` on the last page. |\n| `total` | Number of items on **this page** — not the total number of matches. Page until `last_page` is `true`. |\n\n## Remarks\n\n- Each item in `payload` is a full conversation object. `messages` holds\n  only the last message; use\n  [List of Messages](https://docs.99digital.co.il/online-api/messages/list-of-messages) for the history.\n- The status names differ from the dashboard: `open` is **Bot** and\n  `pending` is **Manual**. See\n  [Statuses](https://docs.99digital.co.il/online-api/conversations/conversation-basics#statuses)."
          },
          "response": [
            {
              "name": "200 · Conversations of one inbox",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Only conversations with this status. If omitted, every status is returned.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "vip",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "billing",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Only conversations with an incoming or outgoing message that contains this text — the same search as [Search Conversations](/online-api/conversations/search-conversations).",
                      "disabled": true
                    },
                    {
                      "key": "sort_by",
                      "value": "",
                      "description": "The sort order. Pinned conversations are always listed first.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": {\n    \"meta\": {\n      \"mine_count\": 1,\n      \"new_count\": 1,\n      \"assigned_count\": 1,\n      \"unassigned_count\": 2,\n      \"all_count\": 3,\n      \"active_status_count\": 3,\n      \"resolved_status_count\": 0,\n      \"pending_status_count\": 1,\n      \"snoozed_status_count\": 0,\n      \"all_status_count\": 3,\n      \"last_page\": true,\n      \"total\": 3\n    },\n    \"payload\": [\n      {\n        \"id\": 1504,\n        \"inbox_id\": 31,\n        \"status\": \"pending\",\n        \"priority\": \"high\",\n        \"labels\": [\n          \"billing\"\n        ],\n        \"unread_count\": 0,\n        \"last_activity_at\": 1794472200\n      },\n      {\n        \"id\": 1501,\n        \"inbox_id\": 31,\n        \"status\": \"open\",\n        \"priority\": null,\n        \"labels\": [\n          \"vip\"\n        ],\n        \"unread_count\": 1,\n        \"last_activity_at\": 1794471300\n      },\n      {\n        \"id\": 1502,\n        \"inbox_id\": 31,\n        \"status\": \"open\",\n        \"priority\": null,\n        \"labels\": [],\n        \"unread_count\": 0,\n        \"last_activity_at\": 1794471060\n      }\n    ]\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Only conversations with this status. If omitted, every status is returned.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "vip",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "billing",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Only conversations with an incoming or outgoing message that contains this text — the same search as [Search Conversations](/online-api/conversations/search-conversations).",
                      "disabled": true
                    },
                    {
                      "key": "sort_by",
                      "value": "",
                      "description": "The sort order. Pinned conversations are always listed first.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Only conversations with this status. If omitted, every status is returned.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "vip",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "billing",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Only conversations with an incoming or outgoing message that contains this text — the same search as [Search Conversations](/online-api/conversations/search-conversations).",
                      "disabled": true
                    },
                    {
                      "key": "sort_by",
                      "value": "",
                      "description": "The sort order. Pinned conversations are always listed first.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Only conversations with this status. If omitted, every status is returned.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "vip",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "billing",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Only conversations with an incoming or outgoing message that contains this text — the same search as [Search Conversations](/online-api/conversations/search-conversations).",
                      "disabled": true
                    },
                    {
                      "key": "sort_by",
                      "value": "",
                      "description": "The sort order. Pinned conversations are always listed first.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Only conversations with this status. If omitted, every status is returned.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "vip",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "billing",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Only conversations with an incoming or outgoing message that contains this text — the same search as [Search Conversations](/online-api/conversations/search-conversations).",
                      "disabled": true
                    },
                    {
                      "key": "sort_by",
                      "value": "",
                      "description": "The sort order. Pinned conversations are always listed first.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "429 Too Many Requests",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Only conversations with this status. If omitted, every status is returned.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "31",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "7",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "vip",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "billing",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Only conversations with an incoming or outgoing message that contains this text — the same search as [Search Conversations](/online-api/conversations/search-conversations).",
                      "disabled": true
                    },
                    {
                      "key": "sort_by",
                      "value": "",
                      "description": "The sort order. Pinned conversations are always listed first.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Add Conversation",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/add-conversation)\n\nCreate a new conversation in an account.\n\nCreating a conversation requires a source ID (or a contact — see below) in\norder to tie the session and the messages together. The source ID could be\nthe phone number in case of a WhatsApp session, an identifier hash in case of\na web widget, and the email address in case of an email channel.\n\nThere are three ways to call this endpoint — one tab each under Request →\nBody:\n\n- **With `source_id`** — the contact is already linked to the inbox. The\n  source ID comes from [Create Contact](https://docs.99digital.co.il/online-api/contacts/create-contact)\n  (with `inbox_id`) or [Create Contact Inbox](https://docs.99digital.co.il/online-api/contacts/create-contact-inbox).\n- **With `contact_id`** — the contact's link to the inbox is created if it\n  is missing. You can also set the initial status, the assignee, the team\n  and attributes.\n- **One-shot, with `contact`** — the contact is found by phone number,\n  email or `contact.id`, and created if it is missing; the conversation is\n  reused or created; then `message` is sent. This is the mode used for\n  outbound WhatsApp messages. On WhatsApp inboxes, send an approved template\n  in `message.content_attributes.template_info` — see\n  [Create a Message](https://docs.99digital.co.il/online-api/messages/create-a-message).\n\n`message` is sent as an outgoing message from the caller, and accepts every\nfield of [Create a Message](https://docs.99digital.co.il/online-api/messages/create-a-message):\nattachments, `private`, `content_attributes.template_info`, and so on.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations` |\n| Method | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token: the caller must be allowed to view the inbox. New rules\n  system: **Inbox new message** for the inbox. Sending `message` also needs\n  the permissions of [Create a Message](https://docs.99digital.co.il/online-api/messages/create-a-message)\n  — **Inbox reply** for a reply.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Request body Parameters:**\n\n| Parameter | type | Description | Required |\n| --- | --- | --- | --- |\n| `inbox_id` | integer | ID of the inbox in which the conversation is created | Yes |\n| `source_id` | string | Conversation source ID: the source ID of the contact's existing link to the inbox (contact inbox) | Conditional — required unless you send `contact_id` or `contact` |\n| `status` | string | Conversation status. Enum: `open` (Bot, the default), `pending` (Manual), `snoozed`, `resolved` | No |\n| `contact_id` | integer | Contact ID for which the conversation is created. The contact's link to the inbox is created automatically if it is missing | Conditional |\n| `contact` | object | **One-shot mode**: find or create the contact and the conversation by `contact.phone_number` (or `contact.phone`, E.164), `contact.email` or `contact.id`, and send the message. `contact.name` names a new contact (default: the phone number or email) | Conditional |\n| `is_new_conversation` | boolean | One-shot mode only: always open a new conversation instead of reusing the contact's last conversation in the inbox | No |\n| `message` | object | The first message (`message.content` is its text), sent as an outgoing message from the caller. Accepts every field of Create a Message | No |\n| `assignee_id` | integer | Agent ID for assigning the conversation to an agent | No |\n| `team_id` | integer | Team ID for assigning the conversation to a team | No |\n| `snoozed_until` | string | With `status: snoozed`: when the conversation reopens | No |\n| `custom_attributes` | object | The object to save custom attributes for the conversation; accepts custom attribute keys and values | No |\n| `additional_attributes` | object | Lets you specify attributes like browser information | No |\n| `campaign_id` | integer | The campaign that started the conversation | No |\n\n> **Info:** If the contact's link to the inbox already has a conversation, the call does\n> **not** create a new one. It returns the latest conversation of that contact\n> inbox — in any status, even resolved — and adds `message` to it. `status`,\n> `assignee_id` and the other conversation fields are then ignored. In\n> WhatsApp API inboxes, where `contact_id` is required, the contact's existing\n> conversation in the inbox is always reused. See\n> [Conversation Basics](https://docs.99digital.co.il/online-api/conversations/conversation-basics).\n\n**Request body example:**\n\n```json\n{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"additional_attributes\": {},\n  \"custom_attributes\": {\n    \"attribute_key\": \"attribute_value\"\n  },\n  \"status\": \"open\",\n  \"assignee_id\": 51,\n  \"team_id\": 7\n}\n```\n\n**Response:**\n\nThe response is shortened here; the full conversation object, with the last\nmessage in `messages`, is under Responses below.\n\n```json\n{\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": \"avi.levi@example.com\",\n      \"id\": 802,\n      \"name\": \"Avi Levi\",\n      \"phone_number\": \"+972521234567\",\n      \"identifier\": \"crm-802\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"attribute_key\": \"attribute_value\"\n      },\n      \"last_activity_at\": 1794472200,\n      \"blocked\": false,\n      \"created_at\": 1794470600\n    },\n    \"assignee\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"auto_offline\": true,\n      \"confirmed\": true,\n      \"email\": \"jane.agent@example.com\",\n      \"available_name\": \"Jane Agent\",\n      \"name\": \"Jane Agent\",\n      \"role\": \"agent\",\n      \"see_all_conversations\": true,\n      \"thumbnail\": \"\"\n    },\n    \"channel\": \"Channel::Api\",\n    \"hmac_verified\": false\n  },\n  \"id\": 1504,\n  \"account_id\": 12,\n  \"additional_attributes\": {},\n  \"can_reply\": true,\n  \"custom_attributes\": {\n    \"attribute_key\": \"attribute_value\"\n  },\n  \"inbox_id\": 31,\n  \"muted\": false,\n  \"status\": \"open\",\n  \"created_at\": 1794472200\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `meta` | Object containing conversation-related data |\n| `meta -> sender` | Object containing the contact data |\n| `meta -> sender -> id` | Numeric ID of the contact |\n| `meta -> sender -> name` | Contact name |\n| `meta -> sender -> phone_number` | Contact phone number (E.164) |\n| `meta -> sender -> email` | Contact email address |\n| `meta -> sender -> availability_status` | Availability status of the contact. Enum: `online`, `offline` |\n| `meta -> sender -> identifier` | A unique identifier for the contact in an external system |\n| `meta -> sender -> thumbnail` | Avatar URL of the contact |\n| `meta -> sender -> custom_attributes` | Object containing custom attributes related to the contact |\n| `meta -> sender -> additional_attributes` | Object containing additional attributes related to the contact |\n| `meta -> sender -> last_activity_at` | Timestamp of the last activity (Unix time) |\n| `meta -> sender -> blocked` | Whether the contact is blocked |\n| `meta -> sender -> created_at` | Timestamp of the contact's creation time (Unix time) |\n| `meta -> channel` | Channel type of the inbox, for example `Channel::Api`, `Channel::Whatsapp` or `Channel::Email` |\n| `meta -> assignee` | Object containing the assignee's details |\n| `meta -> assignee -> id` | Assignee ID |\n| `meta -> assignee -> account_id` | Numeric ID of the account |\n| `meta -> assignee -> availability_status` | The availability status of the assignee. Enum: `online`, `busy`, `offline` |\n| `meta -> assignee -> auto_offline` | Indicates whether the availability status of the agent is configured to go offline automatically when away |\n| `meta -> assignee -> confirmed` | Indicates whether the agent has been validated by clicking on the invitation email they received |\n| `meta -> assignee -> email` | Agent email address |\n| `meta -> assignee -> available_name` | Display name of the agent |\n| `meta -> assignee -> name` | Agent full name |\n| `meta -> assignee -> role` | Assignee role: the custom role's name (new rules system), or `agent` / `administrator` (legacy roles) |\n| `meta -> assignee -> see_all_conversations` | Indicates whether the assignee can see all conversations in the account |\n| `meta -> assignee -> thumbnail` | Assignee avatar URL |\n| `meta -> hmac_verified` | Whether the contact's identity was HMAC-verified (website widget) |\n| `id` | Numeric ID of the conversation (its display ID, used in every path) |\n| `account_id` | Numeric ID of the account |\n| `inbox_id` | Numeric ID of the inbox |\n| `status` | The status of the conversation. Enum: `open` (Bot), `pending` (Manual), `snoozed`, `resolved` |\n| `created_at` | The time at which the conversation was created (Unix time) |\n| `muted` | Whether the conversation is currently muted. A muted conversation does not notify agents |\n| `can_reply` | Whether the conversation is currently within the messaging window — `false` when the channel's reply window is closed (for example WhatsApp's 24-hour window) |\n| `custom_attributes` | Object containing custom attributes related to the conversation |\n| `additional_attributes` | Object containing additional attributes related to the conversation |\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `404` | `inbox_id`, `contact_id` or `source_id` not found. | `{\"error\": \"Resource could not be found\"}` |\n| `403` | The role lacks **Inbox new message** / **Inbox reply** for the inbox. | `{\"error\": \"You are not authorized to do this action\"}` |\n| `422` | `source_id` already used by another contact inbox. | `{\"error\": \"source_id should be unique\"}` |\n| `422` | Only private notes are allowed in the inbox (incoming-calls API inbox). | `{\"message\": \"Only private notes can be added in an incoming calls inbox\", \"attributes\": [\"base\"]}` |\n\n## Remarks\n\n- In one-shot mode, an unassigned conversation is assigned to the caller,\n  unless the account uses queue management or `is_new_conversation` is\n  `true`.\n- In one-shot mode, if the contact is blocked, the message is silently\n  dropped.\n- The status names differ from the dashboard: `open` (the default) is\n  **Bot** and `pending` is **Manual**. See\n  [Statuses](https://docs.99digital.co.il/online-api/conversations/conversation-basics#statuses).\n- A new conversation fires the `conversation_created`\n  [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).",
          "item": [
            {
              "name": "With source_id",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const conversation_id = pick([\"id\"]);",
                      "  if (conversation_id !== undefined && conversation_id !== null) {",
                      "    pm.collectionVariables.set(\"conversation_id\", String(conversation_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ]
                },
                "description": "The contact is already linked to the inbox.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/add-conversation)"
              },
              "response": [
                {
                  "name": "200 · With contact_id",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": null,\n      \"id\": 802,\n      \"name\": \"Avi Levi\",\n      \"phone_number\": \"+972521234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470600\n    },\n    \"channel\": \"Channel::Api\",\n    \"assignee\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"auto_offline\": true,\n      \"confirmed\": true,\n      \"email\": \"jane.agent@example.com\",\n      \"available_name\": \"Jane Agent\",\n      \"custom_attributes\": {},\n      \"name\": \"Jane Agent\",\n      \"role\": \"General Manager\",\n      \"operation_bot\": false,\n      \"see_all_conversations\": true,\n      \"assignable_to_inbox\": [\n        31,\n        32,\n        33\n      ],\n      \"new_role\": \"General Manager\",\n      \"thumbnail\": \"\",\n      \"two_factor_type\": \"sms\",\n      \"phone1\": \"+972541234567\",\n      \"email1\": null,\n      \"create_time\": 1790000000\n    },\n    \"hmac_verified\": false\n  },\n  \"contact_inbox\": {\n    \"wa_id\": null\n  },\n  \"id\": 1504,\n  \"messages\": [\n    {\n      \"id\": 40121,\n      \"content\": \"We received your request.\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1504,\n      \"message_type\": 1,\n      \"content_type\": \"text\",\n      \"content_attributes\": {},\n      \"private\": false,\n      \"status\": \"sent\",\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 51,\n        \"name\": \"Jane Agent\",\n        \"available_name\": \"Jane Agent\",\n        \"email\": \"jane.agent@example.com\",\n        \"avatar_url\": \"\",\n        \"type\": \"user\",\n        \"availability_status\": \"online\",\n        \"thumbnail\": \"\"\n      },\n      \"ticket_id\": 904,\n      \"created_at\": 1794472200,\n      \"created_at_exact\": \"2026-11-12T08:30:00.000Z\"\n    }\n  ],\n  \"account_id\": 12,\n  \"uuid\": \"3c9e7b2a-5d1f-4a8e-b6c4-2f0e9d8c7b6a\",\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"agent_last_seen_at\": 0,\n  \"assignee_last_seen_at\": 0,\n  \"can_reply\": true,\n  \"last_incoming_message_time\": null,\n  \"contact_last_seen_at\": 0,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"inbox_id\": 31,\n  \"labels\": [],\n  \"muted\": false,\n  \"snoozed_until\": null,\n  \"status\": \"pending\",\n  \"created_at\": 1794472200,\n  \"timestamp\": 1794472200,\n  \"first_reply_created_at\": 1794472200,\n  \"unread_count\": 0,\n  \"has_incoming_messages\": false,\n  \"last_non_activity_message\": {\n    \"id\": 40121,\n    \"content\": \"We received your request.\",\n    \"inbox_id\": 31,\n    \"conversation_id\": 1504,\n    \"message_type\": 1,\n    \"content_type\": \"text\",\n    \"content_attributes\": {},\n    \"private\": false,\n    \"status\": \"sent\",\n    \"source_id\": null,\n    \"sender\": {\n      \"id\": 51,\n      \"name\": \"Jane Agent\",\n      \"available_name\": \"Jane Agent\",\n      \"email\": \"jane.agent@example.com\",\n      \"avatar_url\": \"\",\n      \"type\": \"user\",\n      \"availability_status\": \"online\",\n      \"thumbnail\": \"\"\n    },\n    \"ticket_id\": 904,\n    \"created_at\": 1794472200,\n    \"created_at_exact\": \"2026-11-12T08:30:00.000Z\"\n  },\n  \"last_activity_at\": 1794472200,\n  \"priority\": null,\n  \"waiting_since\": 0,\n  \"sla_policy_id\": null,\n  \"feature_enabled_sla\": true,\n  \"applied_sla\": null,\n  \"sla_events\": [],\n  \"sla_events_with_distinct_event_type\": [],\n  \"campaign_id\": null,\n  \"pinned\": false\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Source ID taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"source_id should be unique\"\n}"
                },
                {
                  "name": "422 · Private notes only",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"inbox_id\": 31,\n  \"message\": {\n    \"content\": \"Hello from the API.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Only private notes can be added in an incoming calls inbox\",\n  \"attributes\": [\n    \"base\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "With contact_id",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const conversation_id = pick([\"id\"]);",
                      "  if (conversation_id !== undefined && conversation_id !== null) {",
                      "    pm.collectionVariables.set(\"conversation_id\", String(conversation_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ]
                },
                "description": "A conversation in Manual status, assigned to an agent, with attributes.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/add-conversation)"
              },
              "response": [
                {
                  "name": "200 · With contact_id",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": null,\n      \"id\": 802,\n      \"name\": \"Avi Levi\",\n      \"phone_number\": \"+972521234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470600\n    },\n    \"channel\": \"Channel::Api\",\n    \"assignee\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"auto_offline\": true,\n      \"confirmed\": true,\n      \"email\": \"jane.agent@example.com\",\n      \"available_name\": \"Jane Agent\",\n      \"custom_attributes\": {},\n      \"name\": \"Jane Agent\",\n      \"role\": \"General Manager\",\n      \"operation_bot\": false,\n      \"see_all_conversations\": true,\n      \"assignable_to_inbox\": [\n        31,\n        32,\n        33\n      ],\n      \"new_role\": \"General Manager\",\n      \"thumbnail\": \"\",\n      \"two_factor_type\": \"sms\",\n      \"phone1\": \"+972541234567\",\n      \"email1\": null,\n      \"create_time\": 1790000000\n    },\n    \"hmac_verified\": false\n  },\n  \"contact_inbox\": {\n    \"wa_id\": null\n  },\n  \"id\": 1504,\n  \"messages\": [\n    {\n      \"id\": 40121,\n      \"content\": \"We received your request.\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1504,\n      \"message_type\": 1,\n      \"content_type\": \"text\",\n      \"content_attributes\": {},\n      \"private\": false,\n      \"status\": \"sent\",\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 51,\n        \"name\": \"Jane Agent\",\n        \"available_name\": \"Jane Agent\",\n        \"email\": \"jane.agent@example.com\",\n        \"avatar_url\": \"\",\n        \"type\": \"user\",\n        \"availability_status\": \"online\",\n        \"thumbnail\": \"\"\n      },\n      \"ticket_id\": 904,\n      \"created_at\": 1794472200,\n      \"created_at_exact\": \"2026-11-12T08:30:00.000Z\"\n    }\n  ],\n  \"account_id\": 12,\n  \"uuid\": \"3c9e7b2a-5d1f-4a8e-b6c4-2f0e9d8c7b6a\",\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"agent_last_seen_at\": 0,\n  \"assignee_last_seen_at\": 0,\n  \"can_reply\": true,\n  \"last_incoming_message_time\": null,\n  \"contact_last_seen_at\": 0,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"inbox_id\": 31,\n  \"labels\": [],\n  \"muted\": false,\n  \"snoozed_until\": null,\n  \"status\": \"pending\",\n  \"created_at\": 1794472200,\n  \"timestamp\": 1794472200,\n  \"first_reply_created_at\": 1794472200,\n  \"unread_count\": 0,\n  \"has_incoming_messages\": false,\n  \"last_non_activity_message\": {\n    \"id\": 40121,\n    \"content\": \"We received your request.\",\n    \"inbox_id\": 31,\n    \"conversation_id\": 1504,\n    \"message_type\": 1,\n    \"content_type\": \"text\",\n    \"content_attributes\": {},\n    \"private\": false,\n    \"status\": \"sent\",\n    \"source_id\": null,\n    \"sender\": {\n      \"id\": 51,\n      \"name\": \"Jane Agent\",\n      \"available_name\": \"Jane Agent\",\n      \"email\": \"jane.agent@example.com\",\n      \"avatar_url\": \"\",\n      \"type\": \"user\",\n      \"availability_status\": \"online\",\n      \"thumbnail\": \"\"\n    },\n    \"ticket_id\": 904,\n    \"created_at\": 1794472200,\n    \"created_at_exact\": \"2026-11-12T08:30:00.000Z\"\n  },\n  \"last_activity_at\": 1794472200,\n  \"priority\": null,\n  \"waiting_since\": 0,\n  \"sla_policy_id\": null,\n  \"feature_enabled_sla\": true,\n  \"applied_sla\": null,\n  \"sla_events\": [],\n  \"sla_events_with_distinct_event_type\": [],\n  \"campaign_id\": null,\n  \"pinned\": false\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Source ID taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"source_id should be unique\"\n}"
                },
                {
                  "name": "422 · Private notes only",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact_id\": 802,\n  \"status\": \"pending\",\n  \"assignee_id\": 51,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"message\": {\n    \"content\": \"We received your request.\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Only private notes can be added in an incoming calls inbox\",\n  \"attributes\": [\n    \"base\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "One-shot by phone",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const conversation_id = pick([\"id\"]);",
                      "  if (conversation_id !== undefined && conversation_id !== null) {",
                      "    pm.collectionVariables.set(\"conversation_id\", String(conversation_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations"
                  ]
                },
                "description": "Find or create the contact by phone number, then send the message.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/add-conversation)"
              },
              "response": [
                {
                  "name": "200 · With contact_id",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": null,\n      \"id\": 802,\n      \"name\": \"Avi Levi\",\n      \"phone_number\": \"+972521234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470600\n    },\n    \"channel\": \"Channel::Api\",\n    \"assignee\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"auto_offline\": true,\n      \"confirmed\": true,\n      \"email\": \"jane.agent@example.com\",\n      \"available_name\": \"Jane Agent\",\n      \"custom_attributes\": {},\n      \"name\": \"Jane Agent\",\n      \"role\": \"General Manager\",\n      \"operation_bot\": false,\n      \"see_all_conversations\": true,\n      \"assignable_to_inbox\": [\n        31,\n        32,\n        33\n      ],\n      \"new_role\": \"General Manager\",\n      \"thumbnail\": \"\",\n      \"two_factor_type\": \"sms\",\n      \"phone1\": \"+972541234567\",\n      \"email1\": null,\n      \"create_time\": 1790000000\n    },\n    \"hmac_verified\": false\n  },\n  \"contact_inbox\": {\n    \"wa_id\": null\n  },\n  \"id\": 1504,\n  \"messages\": [\n    {\n      \"id\": 40121,\n      \"content\": \"We received your request.\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1504,\n      \"message_type\": 1,\n      \"content_type\": \"text\",\n      \"content_attributes\": {},\n      \"private\": false,\n      \"status\": \"sent\",\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 51,\n        \"name\": \"Jane Agent\",\n        \"available_name\": \"Jane Agent\",\n        \"email\": \"jane.agent@example.com\",\n        \"avatar_url\": \"\",\n        \"type\": \"user\",\n        \"availability_status\": \"online\",\n        \"thumbnail\": \"\"\n      },\n      \"ticket_id\": 904,\n      \"created_at\": 1794472200,\n      \"created_at_exact\": \"2026-11-12T08:30:00.000Z\"\n    }\n  ],\n  \"account_id\": 12,\n  \"uuid\": \"3c9e7b2a-5d1f-4a8e-b6c4-2f0e9d8c7b6a\",\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"agent_last_seen_at\": 0,\n  \"assignee_last_seen_at\": 0,\n  \"can_reply\": true,\n  \"last_incoming_message_time\": null,\n  \"contact_last_seen_at\": 0,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"inbox_id\": 31,\n  \"labels\": [],\n  \"muted\": false,\n  \"snoozed_until\": null,\n  \"status\": \"pending\",\n  \"created_at\": 1794472200,\n  \"timestamp\": 1794472200,\n  \"first_reply_created_at\": 1794472200,\n  \"unread_count\": 0,\n  \"has_incoming_messages\": false,\n  \"last_non_activity_message\": {\n    \"id\": 40121,\n    \"content\": \"We received your request.\",\n    \"inbox_id\": 31,\n    \"conversation_id\": 1504,\n    \"message_type\": 1,\n    \"content_type\": \"text\",\n    \"content_attributes\": {},\n    \"private\": false,\n    \"status\": \"sent\",\n    \"source_id\": null,\n    \"sender\": {\n      \"id\": 51,\n      \"name\": \"Jane Agent\",\n      \"available_name\": \"Jane Agent\",\n      \"email\": \"jane.agent@example.com\",\n      \"avatar_url\": \"\",\n      \"type\": \"user\",\n      \"availability_status\": \"online\",\n      \"thumbnail\": \"\"\n    },\n    \"ticket_id\": 904,\n    \"created_at\": 1794472200,\n    \"created_at_exact\": \"2026-11-12T08:30:00.000Z\"\n  },\n  \"last_activity_at\": 1794472200,\n  \"priority\": null,\n  \"waiting_since\": 0,\n  \"sla_policy_id\": null,\n  \"feature_enabled_sla\": true,\n  \"applied_sla\": null,\n  \"sla_events\": [],\n  \"sla_events_with_distinct_event_type\": [],\n  \"campaign_id\": null,\n  \"pinned\": false\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Source ID taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"source_id should be unique\"\n}"
                },
                {
                  "name": "422 · Private notes only",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"contact\": {\n    \"phone_number\": \"+972531234567\",\n    \"name\": \"Noa Mizrahi\"\n  },\n  \"message\": {\n    \"content\": \"Hi Noa, thanks for reaching out. How can we help?\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Only private notes can be added in an incoming calls inbox\",\n  \"attributes\": [\n    \"base\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Conversation Counts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/meta",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "meta"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "open",
                  "description": "Count only conversations with this status. If omitted, every status is counted.",
                  "disabled": true
                },
                {
                  "key": "assignee_type",
                  "value": "",
                  "description": "Count only conversations with this kind of assignment.",
                  "disabled": true
                },
                {
                  "key": "inbox_id",
                  "value": "32",
                  "description": "Count only conversations of this inbox.",
                  "disabled": true
                },
                {
                  "key": "team_id",
                  "value": "",
                  "description": "Count only conversations of this team.",
                  "disabled": true
                },
                {
                  "key": "labels[]",
                  "value": "",
                  "description": "Count only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                  "disabled": true
                },
                {
                  "key": "source_id",
                  "value": "",
                  "description": "Count only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                  "disabled": true
                },
                {
                  "key": "conversation_type",
                  "value": "",
                  "description": "Count only conversations of this kind.",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "",
                  "description": "Count only conversations with an incoming or outgoing message that contains this text.",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "",
                  "description": "The page of the list that `total` and `last_page` describe, 25 conversations per page.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/conversation-counts)\n\nGet new, unassigned and all conversation counts.\n\nThe answer is the `meta` part of\n[List Conversations](https://docs.99digital.co.il/online-api/conversations/list-conversations), without\nthe conversations: the numbers of mine, new, assigned, unassigned and all\nconversations, and the counts by status. It accepts the same query\nparameters, so you can count, for example, the Bot conversations of one\ninbox.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/meta` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token: any agent of the account. Only the conversations the caller\n  may see are counted — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Query Parameters:**\n\n| Parameter | type | Description | Required |\n| --- | --- | --- | --- |\n| `status` | string | Filters conversations by status. Enum: `open` (Bot), `pending` (Manual), `snoozed`, `resolved`, `!resolved` (`open` + `pending`), `all`. If omitted, every status is counted | No |\n| `q` | string | Filters conversations with messages containing the search term | No |\n| `inbox_id` | integer | Filters conversations belonging to an inbox by `inbox_id` | No |\n| `team_id` | integer | Filters conversations assigned to a team by `team_id` | No |\n| `labels[]` | array of strings | Filters conversations by labels: conversations with **any** of these label titles. Repeat the parameter for each label | No |\n| `assignee_type` | string | Filters conversations by assignment. Enum: `me` (assigned to the caller), `unassigned`, `assigned`, `new` (with unread incoming messages), `all` | No |\n| `source_id` | string | Filters conversations of the contact inbox with this source ID (for example a phone number in a WhatsApp inbox) | No |\n| `conversation_type` | string | Enum: `mention` (the caller was mentioned; also marks those mentions as read), `participating` (the caller is a participant), `unattended` | No |\n| `page` | integer | The page of the list that `total` and `last_page` describe (25 per page). Default `1` | No |\n\n**Response:**\n\n```json\n{\n  \"meta\": {\n    \"mine_count\": 1,\n    \"new_count\": 1,\n    \"assigned_count\": 1,\n    \"unassigned_count\": 3,\n    \"all_count\": 4,\n    \"active_status_count\": 4,\n    \"resolved_status_count\": 0,\n    \"pending_status_count\": 1,\n    \"snoozed_status_count\": 0,\n    \"all_status_count\": 4,\n    \"last_page\": true,\n    \"total\": 4\n  }\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `meta` | An object containing the counts |\n| `meta -> mine_count` | Number of conversations that have been assigned to the user (the caller) |\n| `meta -> new_count` | Number of new conversations: conversations with unread incoming messages |\n| `meta -> assigned_count` | Number of conversations that have been assigned |\n| `meta -> unassigned_count` | Number of unassigned conversations |\n| `meta -> all_count` | Number of all conversations |\n| `meta -> active_status_count` | Number of active conversations: `open` (Bot) plus `pending` (Manual) |\n| `meta -> resolved_status_count` | Number of resolved conversations |\n| `meta -> pending_status_count` | Number of `pending` (Manual) conversations |\n| `meta -> snoozed_status_count` | Number of snoozed conversations |\n| `meta -> all_status_count` | Number of conversations in every status |\n| `meta -> last_page` | `true` when the requested page is the last page of the list |\n| `meta -> total` | Number of conversations on **this page** of the list (25 per page) |\n\n`mine_count`, `assigned_count`, `unassigned_count` and `all_count` are the\ncounts of the assignee tabs: they apply every filter except `assignee_type`.\n\n## Remarks\n\n- This endpoint is not subject to the limit of 10 requests per minute for\n  the same URL that applies to the other `GET` endpoints under\n  `/conversations`. See [Rate limits](https://docs.99digital.co.il/online-api/getting-started#rate-limits)."
          },
          "response": [
            {
              "name": "200 · Whole account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/meta",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "meta"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Count only conversations with this status. If omitted, every status is counted.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Count only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "32",
                      "description": "Count only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Count only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Count only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Count only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Count only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Count only conversations with an incoming or outgoing message that contains this text.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page of the list that `total` and `last_page` describe, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"mine_count\": 1,\n    \"new_count\": 1,\n    \"assigned_count\": 1,\n    \"unassigned_count\": 3,\n    \"all_count\": 4,\n    \"active_status_count\": 4,\n    \"resolved_status_count\": 0,\n    \"pending_status_count\": 1,\n    \"snoozed_status_count\": 0,\n    \"all_status_count\": 4,\n    \"last_page\": true,\n    \"total\": 4\n  }\n}"
            },
            {
              "name": "200 · Bot conversations of one inbox",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/meta",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "meta"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Count only conversations with this status. If omitted, every status is counted.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Count only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "32",
                      "description": "Count only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Count only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Count only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Count only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Count only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Count only conversations with an incoming or outgoing message that contains this text.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page of the list that `total` and `last_page` describe, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"mine_count\": 0,\n    \"new_count\": 0,\n    \"assigned_count\": 0,\n    \"unassigned_count\": 1,\n    \"all_count\": 1,\n    \"active_status_count\": 1,\n    \"resolved_status_count\": 0,\n    \"pending_status_count\": 0,\n    \"snoozed_status_count\": 0,\n    \"all_status_count\": 1,\n    \"last_page\": true,\n    \"total\": 1\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/meta",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "meta"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Count only conversations with this status. If omitted, every status is counted.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Count only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "32",
                      "description": "Count only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Count only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Count only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Count only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Count only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Count only conversations with an incoming or outgoing message that contains this text.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page of the list that `total` and `last_page` describe, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/meta",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "meta"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Count only conversations with this status. If omitted, every status is counted.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Count only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "32",
                      "description": "Count only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Count only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Count only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Count only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Count only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Count only conversations with an incoming or outgoing message that contains this text.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page of the list that `total` and `last_page` describe, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/meta",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "meta"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Count only conversations with this status. If omitted, every status is counted.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Count only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "32",
                      "description": "Count only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Count only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Count only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Count only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Count only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Count only conversations with an incoming or outgoing message that contains this text.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page of the list that `total` and `last_page` describe, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/meta",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "meta"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "open",
                      "description": "Count only conversations with this status. If omitted, every status is counted.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Count only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "32",
                      "description": "Count only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Count only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Count only conversations that have **any** of these labels (label titles). Repeat the parameter for each label: `labels[]=vip&labels[]=billing`.",
                      "disabled": true
                    },
                    {
                      "key": "source_id",
                      "value": "",
                      "description": "Count only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox.",
                      "disabled": true
                    },
                    {
                      "key": "conversation_type",
                      "value": "",
                      "description": "Count only conversations of this kind.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Count only conversations with an incoming or outgoing message that contains this text.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page of the list that `total` and `last_page` describe, 25 conversations per page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Search Conversations",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/search?q=where is my order",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "search"
              ],
              "query": [
                {
                  "key": "q",
                  "value": "where is my order",
                  "description": "The text to look for in the messages."
                },
                {
                  "key": "page",
                  "value": "",
                  "description": "The page number, 25 conversations per page.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "Only conversations with this status — the values of [List Conversations](/online-api/conversations/list-conversations). Every filter of that endpoint works here too.",
                  "disabled": true
                },
                {
                  "key": "assignee_type",
                  "value": "",
                  "description": "Only conversations with this kind of assignment.",
                  "disabled": true
                },
                {
                  "key": "inbox_id",
                  "value": "",
                  "description": "Only conversations of this inbox.",
                  "disabled": true
                },
                {
                  "key": "team_id",
                  "value": "",
                  "description": "Only conversations of this team.",
                  "disabled": true
                },
                {
                  "key": "labels[]",
                  "value": "",
                  "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/search-conversations)\n\nReturns conversations that have an incoming or outgoing message whose text contains the search text (case-insensitive).\n\nThe search text is the `q` parameter. You can narrow the search with the filters of\n[List Conversations](https://docs.99digital.co.il/online-api/conversations/list-conversations)\n(`status`, `inbox_id`, …).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/search` |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token: any agent of the account. Only the conversations the caller\n  may see are returned — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `q` | string | Yes | Text to search for in message content. |\n| `page` | integer | No | Page number (25 per page). |\n| Other | | No | Any filter of [List Conversations](https://docs.99digital.co.il/online-api/conversations/list-conversations) (`status`, `inbox_id`, ...). |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/search?q=where%20is%20my%20order&page=1' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`): `{\"meta\": {...same counts as in List Conversations...}, \"payload\": [ ...conversation objects... ]}`.\nHere it returned one conversation, `1501`. Unlike\n[List Conversations](https://docs.99digital.co.il/online-api/conversations/list-conversations), the\nresponse is **not** wrapped in `data`: `meta` and `payload` are at the top\nlevel. The conversation is shortened; each item is a full conversation\nobject.\n\n```json\n{\n  \"meta\": {\n    \"mine_count\": 0,\n    \"new_count\": 1,\n    \"assigned_count\": 0,\n    \"unassigned_count\": 1,\n    \"all_count\": 1,\n    \"active_status_count\": 1,\n    \"resolved_status_count\": 0,\n    \"pending_status_count\": 0,\n    \"snoozed_status_count\": 0,\n    \"all_status_count\": 1,\n    \"last_page\": true,\n    \"total\": 1\n  },\n  \"payload\": [\n    {\n      \"id\": 1501,\n      \"inbox_id\": 31,\n      \"status\": \"open\",\n      \"priority\": null,\n      \"labels\": [\"vip\"],\n      \"unread_count\": 1,\n      \"last_activity_at\": 1794471300\n    }\n  ]\n}\n```\n\n## Remarks\n\n- The same `GET` URL under `/conversations` can be called at most 10 times\n  per minute from one IP address; above that the answer is `429`. See\n  [Rate limits](https://docs.99digital.co.il/online-api/getting-started#rate-limits)."
          },
          "response": [
            {
              "name": "200 · One match",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/search?q=where is my order",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "where is my order",
                      "description": "The text to look for in the messages."
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only conversations with this status — the values of [List Conversations](/online-api/conversations/list-conversations). Every filter of that endpoint works here too.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"mine_count\": 0,\n    \"new_count\": 1,\n    \"assigned_count\": 0,\n    \"unassigned_count\": 1,\n    \"all_count\": 1,\n    \"active_status_count\": 1,\n    \"resolved_status_count\": 0,\n    \"pending_status_count\": 0,\n    \"snoozed_status_count\": 0,\n    \"all_status_count\": 1,\n    \"last_page\": true,\n    \"total\": 1\n  },\n  \"payload\": [\n    {\n      \"id\": 1501,\n      \"inbox_id\": 31,\n      \"status\": \"open\",\n      \"priority\": null,\n      \"labels\": [\n        \"vip\"\n      ],\n      \"unread_count\": 1,\n      \"last_activity_at\": 1794471300\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/search?q=where is my order",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "where is my order",
                      "description": "The text to look for in the messages."
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only conversations with this status — the values of [List Conversations](/online-api/conversations/list-conversations). Every filter of that endpoint works here too.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/search?q=where is my order",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "where is my order",
                      "description": "The text to look for in the messages."
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only conversations with this status — the values of [List Conversations](/online-api/conversations/list-conversations). Every filter of that endpoint works here too.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/search?q=where is my order",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "where is my order",
                      "description": "The text to look for in the messages."
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only conversations with this status — the values of [List Conversations](/online-api/conversations/list-conversations). Every filter of that endpoint works here too.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/search?q=where is my order",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "where is my order",
                      "description": "The text to look for in the messages."
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only conversations with this status — the values of [List Conversations](/online-api/conversations/list-conversations). Every filter of that endpoint works here too.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "429 Too Many Requests",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/search?q=where is my order",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "search"
                  ],
                  "query": [
                    {
                      "key": "q",
                      "value": "where is my order",
                      "description": "The text to look for in the messages."
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only conversations with this status — the values of [List Conversations](/online-api/conversations/list-conversations). Every filter of that endpoint works here too.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    },
                    {
                      "key": "inbox_id",
                      "value": "",
                      "description": "Only conversations of this inbox.",
                      "disabled": true
                    },
                    {
                      "key": "team_id",
                      "value": "",
                      "description": "Only conversations of this team.",
                      "disabled": true
                    },
                    {
                      "key": "labels[]",
                      "value": "",
                      "description": "Only conversations that have **any** of these labels (label titles). Repeat the parameter for each label.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Filter Conversations",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/filter-conversations)\n\nAdvanced filtering with conditions, in the same format as Filter Contacts; results are sorted by last activity, 25 per page.\n\nSend the conditions in `payload`. Each condition compares one attribute with\n`values`, and is joined to the **next** condition by its `query_operator`\n(`and` or `or`); the last condition has `query_operator: null`. The format is\nthe same as in [Filter Contacts](https://docs.99digital.co.il/online-api/contacts/filter-contacts).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/filter` |\n| **Authorization** | User token. Only visible conversations are returned. |\n\n**Permissions:**\n\n- User token: any agent of the account — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `page` | integer | No | Page number (25 per page). |\n| `assignee_type` | string | No | `me` (assigned to the caller), `unassigned`, `assigned`, `new` (with unread incoming messages). |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `payload[].attribute_key` | string | Yes | Attribute (table below) or the key of a **conversation** custom attribute. |\n| `payload[].filter_operator` | string | Yes | Operator (table below). |\n| `payload[].values` | array | Yes | Values. `equal_to` on `status`, `inbox_id` and `labels` accepts several values (match any). Send `[]` for `is_present` / `is_not_present`. |\n| `payload[].query_operator` | string | Yes | `and` / `or` to the next condition; `null` on the last one. Any other value returns `422`. |\n\n**Filterable attributes**\n\n| `attribute_key` | Operators | Values |\n| --- | --- | --- |\n| `status` | `equal_to`, `not_equal_to` | `open`, `pending`, `snoozed`, `resolved`, `!resolved` (= `open`, `pending`, `snoozed`), `all` |\n| `assignee_id`, `contact_id`, `inbox_id`, `team_id`, `display_id`, `campaign_id` | `equal_to`, `not_equal_to`, `is_present`, `is_not_present` | IDs |\n| `labels` | `equal_to` (has any), `not_equal_to` (has none), `is_present`, `is_not_present` | Label titles |\n| `browser_language`, `conversation_language`, `country_code`, `referer`, `mail_subject` | `equal_to`, `not_equal_to`, `contains`, `does_not_contain` | Text (stored in `additional_attributes`) |\n| `created_at`, `last_activity_at` | `is_greater_than`, `is_less_than`, `days_before` | `YYYY-MM-DD`, or a number of days for `days_before` |\n\n`attribute_key` can also be the key of a **conversation** custom attribute\ndefined in Settings → Custom attributes.\n\n> **Warning:** An unsupported operator or an unknown custom attribute key makes that\n> condition be **silently ignored** (for example `contains` on `labels`, or a\n> custom attribute that is not defined in Settings → Custom attributes), so\n> the filter returns more conversations than you expect. Check your conditions\n> against the table.\n\n**Example request**: Bot or Manual conversations in inbox 31 that have the\nlabel `vip`.\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/filter?page=1' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"payload\": [\n      { \"attribute_key\": \"status\", \"filter_operator\": \"equal_to\", \"values\": [\"open\", \"pending\"], \"query_operator\": \"and\" },\n      { \"attribute_key\": \"inbox_id\", \"filter_operator\": \"equal_to\", \"values\": [31], \"query_operator\": \"and\" },\n      { \"attribute_key\": \"labels\", \"filter_operator\": \"equal_to\", \"values\": [\"vip\"], \"query_operator\": null }\n    ]\n  }'\n```\n\n**Example response** (`200 OK`). The conversation is shortened to its `id`;\neach item is a full conversation object.\n\n```json\n{\n  \"meta\": {\n    \"mine_count\": 0,\n    \"new_count\": 1,\n    \"assigned_count\": 0,\n    \"unassigned_count\": 1,\n    \"all_count\": 1,\n    \"last_page\": true\n  },\n  \"payload\": [\n    { \"id\": 1501 }\n  ]\n}\n```\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `422` | A `query_operator` is not `and`, `or` or `null`. | `{\"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"}` |\n\n## Remarks\n\n- Here `!resolved` means `open`, `pending` and `snoozed`. In the `status`\n  parameter of [List Conversations](https://docs.99digital.co.il/online-api/conversations/list-conversations)\n  it means only `open` and `pending`.\n- The status names differ from the dashboard: `open` is **Bot** and\n  `pending` is **Manual**. See\n  [Statuses](https://docs.99digital.co.il/online-api/conversations/conversation-basics#statuses).",
          "item": [
            {
              "name": "One condition",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "filter"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    }
                  ]
                },
                "description": "The Bot conversations.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/filter-conversations)"
              },
              "response": [
                {
                  "name": "200 · Several conditions",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"mine_count\": 0,\n    \"new_count\": 1,\n    \"assigned_count\": 0,\n    \"unassigned_count\": 1,\n    \"all_count\": 1,\n    \"last_page\": true\n  },\n  \"payload\": [\n    {\n      \"id\": 1501\n    }\n  ]\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"\n}"
                }
              ]
            },
            {
              "name": "Several conditions",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\",\n        \"pending\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"inbox_id\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        31\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"labels\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"vip\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "filter"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    }
                  ]
                },
                "description": "Bot or Manual conversations in inbox 31 that have the label vip.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/filter-conversations)"
              },
              "response": [
                {
                  "name": "200 · Several conditions",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\",\n        \"pending\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"inbox_id\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        31\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"labels\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"vip\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"mine_count\": 0,\n    \"new_count\": 1,\n    \"assigned_count\": 0,\n    \"unassigned_count\": 1,\n    \"all_count\": 1,\n    \"last_page\": true\n  },\n  \"payload\": [\n    {\n      \"id\": 1501\n    }\n  ]\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\",\n        \"pending\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"inbox_id\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        31\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"labels\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"vip\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\",\n        \"pending\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"inbox_id\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        31\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"labels\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"vip\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\",\n        \"pending\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"inbox_id\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        31\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"labels\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"vip\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\",\n        \"pending\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"inbox_id\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        31\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"labels\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"vip\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"status\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"open\",\n        \"pending\"\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"inbox_id\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        31\n      ],\n      \"query_operator\": \"and\"\n    },\n    {\n      \"attribute_key\": \"labels\",\n      \"filter_operator\": \"equal_to\",\n      \"values\": [\n        \"vip\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"\n}"
                }
              ]
            },
            {
              "name": "Recent activity",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"last_activity_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "filter"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, 25 conversations per page.",
                      "disabled": true
                    },
                    {
                      "key": "assignee_type",
                      "value": "",
                      "description": "Only conversations with this kind of assignment.",
                      "disabled": true
                    }
                  ]
                },
                "description": "Conversations with activity after a date.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/filter-conversations)"
              },
              "response": [
                {
                  "name": "200 · Several conditions",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"last_activity_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"meta\": {\n    \"mine_count\": 0,\n    \"new_count\": 1,\n    \"assigned_count\": 0,\n    \"unassigned_count\": 1,\n    \"all_count\": 1,\n    \"last_page\": true\n  },\n  \"payload\": [\n    {\n      \"id\": 1501\n    }\n  ]\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"last_activity_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"last_activity_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"last_activity_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"last_activity_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"payload\": [\n    {\n      \"attribute_key\": \"last_activity_at\",\n      \"filter_operator\": \"is_greater_than\",\n      \"values\": [\n        \"2026-11-11\"\n      ],\n      \"query_operator\": null\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/filter",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "filter"
                      ],
                      "query": [
                        {
                          "key": "page",
                          "value": "1",
                          "description": "The page number, 25 conversations per page.",
                          "disabled": true
                        },
                        {
                          "key": "assignee_type",
                          "value": "",
                          "description": "Only conversations with this kind of assignment.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Find or Create by Phone",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/find-conversation-by-phone)\n\nLooks up a contact by its exact E.164 phone number and returns its conversation in the given inbox, creating whatever is missing.\n\nMissing pieces are created: the contact (with the given attributes), the\ncontact inbox (the contact's link to the inbox) and the conversation. No\nmessage is sent — to send one, use\n[Create a Message](https://docs.99digital.co.il/online-api/messages/create-a-message) with the returned\n`conversation_id`, or call\n[Add Conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation) in one-shot\nmode instead. Built for WhatsApp integrations: `wa_id` identifies WhatsApp\nusers who hide their phone number.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/by_phone_number` |\n| **Authorization** | User token. The caller must be allowed to view the inbox. |\n\n**Permissions:**\n\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `inbox_id` | integer | Yes | Inbox ID. |\n| `phone_number` | string | Conditional | Phone in exact E.164 (`+972...`). Local formats like `0501234567` are **not** matched and fail with `422` if the normalised number already exists. Required unless `wa_id` is sent. |\n| `wa_id` | string | No | WhatsApp ID. Without `phone_number`, the contact is found or created by `wa_id`. With both, the `wa_id` is saved on the contact inbox (WhatsApp v2 inboxes). |\n| `name`, `email`, `identifier`, `additional_attributes`, `custom_attributes`, `avatar_url` | | No | Attributes for a **new** contact (ignored when the contact exists). |\n\n**Example: existing contact**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/by_phone_number' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"inbox_id\": 31, \"phone_number\": \"+972501234567\" }'\n```\n\nResponse (`200 OK`). `conversation_id` is the display ID (see\n[Conversation Basics](https://docs.99digital.co.il/online-api/conversations/conversation-basics)).\n\n```json\n{ \"contact_id\": 801, \"conversation_id\": 1501 }\n```\n\n**Example: new contact**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/by_phone_number' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"inbox_id\": 32, \"phone_number\": \"+972547654321\", \"name\": \"Yossi Ben David\" }'\n```\n\nResponse (`200 OK`):\n\n```json\n{ \"contact_id\": 804, \"conversation_id\": 1503 }\n```\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `422` | The contact could not be created — for example, the phone number was sent in a local format and the normalised number already belongs to a contact. | `{\"message\": \"Phone number has already been taken\", \"attributes\": [\"phone_number\"]}` |\n| `404` | The inbox was not found. | `{\"error\": \"Resource could not be found\"}` |",
          "item": [
            {
              "name": "Existing contact",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const contact_id = pick([\"contact_id\"]);",
                      "  if (contact_id !== undefined && contact_id !== null) {",
                      "    pm.collectionVariables.set(\"contact_id\", String(contact_id));",
                      "  }",
                      "  const conversation_id = pick([\"conversation_id\"]);",
                      "  if (conversation_id !== undefined && conversation_id !== null) {",
                      "    pm.collectionVariables.set(\"conversation_id\", String(conversation_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "by_phone_number"
                  ]
                },
                "description": "The contact and its conversation already exist.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/find-conversation-by-phone)"
              },
              "response": [
                {
                  "name": "200 · Existing contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"contact_id\": 801,\n  \"conversation_id\": 1501\n}"
                },
                {
                  "name": "200 · New contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"contact_id\": 804,\n  \"conversation_id\": 1503\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 31,\n  \"phone_number\": \"+972501234567\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Phone number has already been taken\",\n  \"attributes\": [\n    \"phone_number\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "New contact",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const contact_id = pick([\"contact_id\"]);",
                      "  if (contact_id !== undefined && contact_id !== null) {",
                      "    pm.collectionVariables.set(\"contact_id\", String(contact_id));",
                      "  }",
                      "  const conversation_id = pick([\"conversation_id\"]);",
                      "  if (conversation_id !== undefined && conversation_id !== null) {",
                      "    pm.collectionVariables.set(\"conversation_id\", String(conversation_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "by_phone_number"
                  ]
                },
                "description": "No contact has this phone number, so the contact, its link to the inbox and the conversation are created.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/find-conversation-by-phone)"
              },
              "response": [
                {
                  "name": "200 · Existing contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"contact_id\": 801,\n  \"conversation_id\": 1501\n}"
                },
                {
                  "name": "200 · New contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"contact_id\": 804,\n  \"conversation_id\": 1503\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"phone_number\": \"+972547654321\",\n  \"name\": \"Yossi Ben David\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/by_phone_number",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "by_phone_number"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Phone number has already been taken\",\n  \"attributes\": [\n    \"phone_number\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Get Conversation",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/get-conversation)\n\nRetrieve details regarding a conversation by ID.\n\nThe response is the full conversation object: the contact, the assignee and\nteam, the status, labels, attributes, and the last message. To read the\nmessage history, use [List of Messages](https://docs.99digital.co.il/online-api/messages/list-of-messages).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token: any agent who may see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n  Otherwise the answer is `403`.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `conversation_id` | The numeric ID of the conversation: its display ID, the `id` in conversation responses and the number in the dashboard URL | Yes |\n\n**Response:**\n\n```json\n{\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {},\n      \"availability_status\": \"offline\",\n      \"email\": null,\n      \"id\": 802,\n      \"name\": \"Avi Levi\",\n      \"phone_number\": \"+972521234567\",\n      \"identifier\": null,\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {},\n      \"last_activity_at\": 1794472200,\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470600\n    },\n    \"channel\": \"Channel::Api\",\n    \"team\": {\n      \"id\": 7,\n      \"name\": \"support\",\n      \"description\": \"First-line support\",\n      \"allow_auto_assign\": true,\n      \"account_id\": 12,\n      \"is_member\": true\n    },\n    \"assignee\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"auto_offline\": true,\n      \"confirmed\": true,\n      \"email\": \"jane.agent@example.com\",\n      \"available_name\": \"Jane Agent\",\n      \"name\": \"Jane Agent\",\n      \"role\": \"General Manager\",\n      \"see_all_conversations\": true,\n      \"thumbnail\": \"\"\n    },\n    \"hmac_verified\": false\n  },\n  \"contact_inbox\": {\n    \"wa_id\": null\n  },\n  \"id\": 1504,\n  \"uuid\": \"3c9e7b2a-5d1f-4a8e-b6c4-2f0e9d8c7b6a\",\n  \"messages\": [\n    {\n      \"id\": 40121,\n      \"content\": \"We received your request.\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1504,\n      \"message_type\": 1,\n      \"private\": false,\n      \"status\": \"sent\",\n      \"source_id\": null,\n      \"content_type\": \"text\",\n      \"content_attributes\": {},\n      \"sender_type\": \"User\",\n      \"sender_id\": 51,\n      \"ticket_id\": 904,\n      \"created_at\": 1794472200,\n      \"created_at_exact\": \"2026-11-12T08:30:00.000Z\"\n    }\n  ],\n  \"account_id\": 12,\n  \"additional_attributes\": {\n    \"source\": \"crm\"\n  },\n  \"agent_last_seen_at\": 0,\n  \"assignee_last_seen_at\": 0,\n  \"can_reply\": true,\n  \"contact_last_seen_at\": 0,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1002\"\n  },\n  \"inbox_id\": 31,\n  \"labels\": [\"billing\"],\n  \"muted\": false,\n  \"snoozed_until\": null,\n  \"status\": \"pending\",\n  \"priority\": null,\n  \"created_at\": 1794472200,\n  \"timestamp\": 1794472200,\n  \"last_activity_at\": 1794472200,\n  \"first_reply_created_at\": 1794472200,\n  \"waiting_since\": 0,\n  \"unread_count\": 0,\n  \"has_incoming_messages\": false,\n  \"last_incoming_message_time\": null,\n  \"last_non_activity_message\": {\n    \"id\": 40121,\n    \"content\": \"We received your request.\",\n    \"inbox_id\": 31,\n    \"conversation_id\": 1504,\n    \"message_type\": 1,\n    \"private\": false,\n    \"status\": \"sent\",\n    \"source_id\": null,\n    \"content_type\": \"text\",\n    \"content_attributes\": {},\n    \"ticket_id\": 904,\n    \"created_at\": 1794472200,\n    \"created_at_exact\": \"2026-11-12T08:30:00.000Z\",\n    \"sender\": {\n      \"id\": 51,\n      \"name\": \"Jane Agent\",\n      \"available_name\": \"Jane Agent\",\n      \"email\": \"jane.agent@example.com\",\n      \"avatar_url\": \"\",\n      \"logo_user_url\": null,\n      \"type\": \"user\",\n      \"availability_status\": \"online\",\n      \"thumbnail\": \"\"\n    }\n  },\n  \"sla_policy_id\": null,\n  \"applied_sla\": null,\n  \"sla_events\": [],\n  \"sla_events_with_distinct_event_type\": [],\n  \"feature_enabled_sla\": true,\n  \"campaign_id\": null,\n  \"pinned\": false\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `meta` | Object containing the conversation's metadata: its people and channel |\n| `meta -> sender` | Object containing the sender's data: the [contact](https://docs.99digital.co.il/online-api/contacts/retrieve-contact), without `contact_inboxes` |\n| `meta -> channel` | Channel type of the inbox, for example `Channel::Api`, `Channel::Whatsapp` or `Channel::Email` |\n| `meta -> team` | Object containing the assigned team's data, if a team is assigned |\n| `meta -> assignee` | Object containing the assignee's data (the assigned [agent](https://docs.99digital.co.il/online-api/agents/list-of-all-agents)), if an agent is assigned |\n| `meta -> hmac_verified` | Whether the contact's identity was HMAC-verified (website widget) |\n| `contact_inbox -> wa_id` | The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise `null` |\n| `id` | Conversation numeric ID: the display ID, used in every path |\n| `uuid` | A globally unique ID of the conversation |\n| `status` | The status of the conversation. Enum: `open` (Bot), `pending` (Manual), `snoozed`, `resolved` |\n| `priority` | The priority: `low`, `medium`, `high`, `urgent`, or `null` |\n| `messages` | Array of message objects — only the **last** message. Use [List of Messages](https://docs.99digital.co.il/online-api/messages/list-of-messages) for the history. In these entries the sender is given as `sender_type` (`User`, `Contact` or `AgentBot`) and `sender_id` |\n| `account_id` | Account numeric ID |\n| `inbox_id` | Inbox numeric ID |\n| `labels` | Array of strings: the titles of the conversation's labels |\n| `unread_count` | The number of unread messages: incoming messages the agents have not read |\n| `has_incoming_messages` | Whether the contact has written at least one public message |\n| `contact_last_seen_at` | The last time a contact interacted with your service (Unix time; `0` when never set) |\n| `can_reply` | Whether the conversation is currently within the messaging window — `false` when the channel's reply window is closed (for example WhatsApp's 24-hour window) |\n| `muted` | Whether the conversation is currently muted. A muted conversation does not notify agents |\n| `snoozed_until` | The time at which a previously snoozed conversation is reactivated, in **milliseconds** since the epoch, or `null` |\n| `assignee_last_seen_at` | The last time at which the assignee saw the conversation (Unix time; `0` when never set) |\n| `agent_last_seen_at` | The last time at which an agent saw the conversation (Unix time; `0` when never set) |\n| `additional_attributes` | Object containing additional attributes related to the conversation: channel or system data, such as `mail_subject` or `source` |\n| `custom_attributes` | Object containing custom attributes related to the conversation |\n| `created_at` | The time at which the conversation was created (Unix time) |\n| `timestamp` | The same as `last_activity_at` |\n| `last_activity_at` | The time of the conversation's last activity (Unix time) |\n| `first_reply_created_at` | The time at which the first reply was sent (Unix time; `0` when never set) |\n| `waiting_since` | Since when the contact has been waiting for a reply (Unix time; `0` when not waiting) |\n| `last_incoming_message_time` | The time of the last incoming message (ISO 8601), or `null` |\n| `last_non_activity_message` | Object containing the last non-activity message (incoming, outgoing, template) |\n| `sla_policy_id`, `applied_sla`, `sla_events`, `sla_events_with_distinct_event_type`, `feature_enabled_sla` | SLA data — see [Apply SLA Policy](https://docs.99digital.co.il/online-api/conversations/apply-sla-policy) |\n| `campaign_id` | The campaign that started the conversation, or `null` |\n| `pinned` | Whether the caller pinned this conversation |\n| `file` | `{url, file_type}` when a file is attached to the conversation itself (rare) |\n\n**Error responses:** `404 {\"error\": \"Resource could not be found\"}`,\n`403 {\"error\": \"You are not authorized to do this action\"}`.\n\n## Remarks\n\n- `snoozed_until` is in **milliseconds**; the other timestamps are Unix\n  seconds.\n- The same `GET` URL under `/conversations` can be called at most 10 times\n  per minute from one IP address; above that the answer is `429`. To follow\n  changes, use [webhook events](https://docs.99digital.co.il/online-api/webhooks/webhook-events) instead\n  of polling. See [Rate limits](https://docs.99digital.co.il/online-api/getting-started#rate-limits)."
          },
          "response": [
            {
              "name": "200 · Conversation",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500,\n      \"last_activity_at\": 1794471300\n    },\n    \"channel\": \"Channel::Api\",\n    \"hmac_verified\": false\n  },\n  \"contact_inbox\": {\n    \"wa_id\": null\n  },\n  \"id\": 1501,\n  \"messages\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1501,\n      \"message_type\": 0,\n      \"content_type\": \"text\",\n      \"content_attributes\": {},\n      \"private\": false,\n      \"status\": \"sent\",\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"email\": \"dana.cohen@example.com\",\n        \"phone_number\": \"+972501234567\",\n        \"identifier\": \"crm-801\",\n        \"thumbnail\": \"\",\n        \"type\": \"contact\",\n        \"blocked\": false\n      },\n      \"ticket_id\": 903,\n      \"created_at\": 1794471300,\n      \"created_at_exact\": \"2026-11-12T08:15:00.000Z\"\n    }\n  ],\n  \"account_id\": 12,\n  \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\",\n  \"additional_attributes\": {},\n  \"agent_last_seen_at\": 1794471250,\n  \"assignee_last_seen_at\": 0,\n  \"can_reply\": true,\n  \"last_incoming_message_time\": \"2026-11-12T08:15:00.000Z\",\n  \"contact_last_seen_at\": 0,\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\"\n  },\n  \"inbox_id\": 31,\n  \"labels\": [\n    \"vip\"\n  ],\n  \"muted\": false,\n  \"snoozed_until\": null,\n  \"status\": \"open\",\n  \"created_at\": 1794470520,\n  \"timestamp\": 1794471300,\n  \"first_reply_created_at\": 1794470700,\n  \"unread_count\": 1,\n  \"has_incoming_messages\": true,\n  \"last_non_activity_message\": {\n    \"id\": 40113,\n    \"content\": \"Hi, where is my order?\",\n    \"inbox_id\": 31,\n    \"conversation_id\": 1501,\n    \"message_type\": 0,\n    \"content_type\": \"text\",\n    \"content_attributes\": {},\n    \"private\": false,\n    \"status\": \"sent\",\n    \"source_id\": null,\n    \"sender\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"email\": \"dana.cohen@example.com\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"type\": \"contact\",\n      \"blocked\": false\n    },\n    \"ticket_id\": 903,\n    \"created_at\": 1794471300,\n    \"created_at_exact\": \"2026-11-12T08:15:00.000Z\"\n  },\n  \"last_activity_at\": 1794471300,\n  \"priority\": null,\n  \"waiting_since\": 1794471300,\n  \"sla_policy_id\": null,\n  \"feature_enabled_sla\": true,\n  \"applied_sla\": null,\n  \"sla_events\": [],\n  \"sla_events_with_distinct_event_type\": [],\n  \"campaign_id\": null,\n  \"pinned\": false\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            },
            {
              "name": "429 Too Many Requests",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}"
                  ]
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Toggle Conversation Status",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status)\n\nThis endpoint allows you to toggle the status of the conversation between open and resolved, or to set it to a given status.\n\nSend `status` to set it: `pending` hands a Bot conversation over to a human\nagent (Manual), `snoozed` hides it until `snoozed_until`, `resolved` closes\nit, and `open` returns it to the bot. Without `status`, the status is\ntoggled: a `resolved`, `pending` or `snoozed` conversation becomes `open`,\nand an `open` one becomes `resolved`.\n\nThe status names differ from the dashboard: `open` is **Bot** and `pending`\nis **Manual**. See [Statuses](https://docs.99digital.co.il/online-api/conversations/conversation-basics#statuses).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_status` |\n| Method | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token: the caller must be able to see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n  New rules system: the inbox permission depends on the change, in the\n  conversation's inbox:\n  - to `resolved` → **Inbox resolve**;\n  - to `snoozed` → **Inbox move to pending** (labelled \"Snooze\n    conversation\" in the role editor);\n  - from `resolved` or `snoozed` back to `open` or `pending` → **Inbox\n    reopen**;\n  - between `open` and `pending` (Bot ↔ Manual) → **Inbox manual/bot\n    switch**.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `conversation_id` | The numeric ID of the conversation (its display ID) | Yes |\n\n**Request body Parameters:**\n\n| Parameter | type | Description | Required |\n| --- | --- | --- | --- |\n| `status` | string | The status of the conversation. Enum: `open` (Bot), `pending` (Manual), `snoozed`, `resolved`. Leave it out to toggle | No |\n| `snoozed_until` | string | With `snoozed`: when to reopen the conversation, as an ISO 8601 date-time (for example `2026-11-13T09:00:00Z`). If it cannot be parsed, one hour from now is used | No |\n\n**Request body example:**\n\n```json\n{\n  \"status\": \"resolved\"\n}\n```\n\n**Response:**\n\n```json\n{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"resolved\",\n    \"snoozed_until\": null\n  }\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `payload` | Object containing the response |\n| `payload -> success` | Indicates whether the status of the conversation has changed |\n| `payload -> conversation_id` | Numeric ID of the conversation (its display ID) |\n| `payload -> current_status` | The current status of the conversation. Enum: `open` (Bot), `pending` (Manual), `snoozed`, `resolved` |\n| `payload -> snoozed_until` | If set, this is the time in the future when this conversation will be marked as open, i.e. it will be in a snoozed state until this time. In **milliseconds** since the epoch; `null` when the conversation is not snoozed |\n\n**Error responses:** `403` (missing inbox permission).\n\n## Remarks\n\n- Fires the `conversation_status_changed`\n  [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).\n- Resolving a conversation closes its current\n  [ticket](https://docs.99digital.co.il/online-api/tickets/list-tickets); reopening it starts a new one.",
          "item": [
            {
              "name": "Hand over to a human",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"pending\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "toggle_status"
                  ]
                },
                "description": "Bot → Manual, so an agent takes over.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status)"
              },
              "response": [
                {
                  "name": "200 · Hand over to a human",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"pending\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "200 · Snooze until a time",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"snoozed\",\n    \"snoozed_until\": 1794560400000\n  }\n}"
                },
                {
                  "name": "200 · Resolve",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"resolved\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "200 · Toggle",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"open\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"pending\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Snooze until a time",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "toggle_status"
                  ]
                },
                "description": "Hide the conversation until the given time.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status)"
              },
              "response": [
                {
                  "name": "200 · Hand over to a human",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"pending\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "200 · Snooze until a time",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"snoozed\",\n    \"snoozed_until\": 1794560400000\n  }\n}"
                },
                {
                  "name": "200 · Resolve",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"resolved\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "200 · Toggle",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"open\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"snoozed\",\n  \"snoozed_until\": \"2026-11-13T09:00:00Z\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Resolve",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"resolved\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "toggle_status"
                  ]
                },
                "description": "Close the conversation.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status)"
              },
              "response": [
                {
                  "name": "200 · Hand over to a human",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"pending\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "200 · Snooze until a time",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"snoozed\",\n    \"snoozed_until\": 1794560400000\n  }\n}"
                },
                {
                  "name": "200 · Resolve",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"resolved\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "200 · Toggle",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"open\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"resolved\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Toggle",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "toggle_status"
                  ]
                },
                "description": "No body: an `open` conversation is resolved, any other is reopened as `open`.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status)"
              },
              "response": [
                {
                  "name": "200 · Hand over to a human",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"pending\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "200 · Snooze until a time",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"snoozed\",\n    \"snoozed_until\": 1794560400000\n  }\n}"
                },
                {
                  "name": "200 · Resolve",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"resolved\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "200 · Toggle",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"success\": true,\n    \"conversation_id\": 1501,\n    \"current_status\": \"open\",\n    \"snoozed_until\": null\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_status",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_status"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Toggle Conversation Priority",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-priority)\n\nSet or clear the priority of a conversation.\n\nSend `priority` with the new value. Leave it out, or send `null`, to clear\nthe priority. The conversation's `priority` field shows the result.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_priority` |\n| **Authorization** | User token or **agent-bot token**. New rules: **Inbox priority of conversations** for the inbox. |\n\n**Permissions:**\n\n- User token: the caller must also be able to see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `priority` | string | No | `low`, `medium`, `high`, `urgent`. Omit or send `null` to clear it. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/toggle_priority' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"priority\": \"urgent\" }'\n```\n\n**Example response**: `200 OK` with an empty body. The conversation now has\n`\"priority\": \"urgent\"`.\n\n## Remarks\n\n- Despite its name, the endpoint does not cycle through the priorities: it\n  sets the value you send.\n- A change fires the `conversation_updated`\n  [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).",
          "item": [
            {
              "name": "Set the priority",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priority\": \"urgent\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "toggle_priority"
                  ]
                },
                "description": "Mark the conversation as urgent.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-priority)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": \"urgent\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": \"urgent\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": \"urgent\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": \"urgent\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": \"urgent\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": \"urgent\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Clear the priority",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priority\": null\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "toggle_priority"
                  ]
                },
                "description": "Remove the priority.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-priority)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"priority\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/toggle_priority",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "toggle_priority"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Assign Conversation",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/assign-conversation)\n\nThis endpoint allows you to assign a conversation to an agent or a team.\n\nSend exactly one of `assignee_id` and `team_id`, or `null` to remove the\nagent or the team. The answer depends on what you sent: the assigned agent,\nthe assigned team, or `null`.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/assignments` |\n| Method | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token: the caller must be able to see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n  New rules system: **Inbox can assign** (to assign an agent) or **Inbox\n  assign to group** (to assign a team) for the conversation's inbox.\n- The agent you assign must be assignable in the conversation's inbox. New\n  rules system: their role has **Inbox can be assigned** for that inbox.\n  Legacy roles: they are a member of the inbox.\n  [List Assignable Agents](https://docs.99digital.co.il/online-api/agents/list-assignable-agents) lists\n  them.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `conversation_id` | The numeric ID of the conversation (its display ID) | Yes |\n\n**Request body Parameters:**\n\n| Parameter | type | Description | Required |\n| --- | --- | --- | --- |\n| `assignee_id` | integer | ID of the agent to whom the conversation is to be assigned. `null` unassigns the agent | Conditional — send this or `team_id` |\n| `team_id` | integer | ID of the team. If `assignee_id` is present, this parameter is ignored. `null` removes the team | Conditional — send this or `assignee_id` |\n\n**Request body example:**\n\n```json\n{\n  \"assignee_id\": 51,\n  \"team_id\": 7\n}\n```\n\nHere `team_id` is ignored, because `assignee_id` is present. To assign a\nteam, send only `{\"team_id\": 7}`; to unassign the agent, send\n`{\"assignee_id\": null}` (and `{\"team_id\": null}` to remove the team).\n\n**Response:**\n\nWhen you assign an agent, the response is the assigned agent:\n\n```json\n{\n  \"id\": 51,\n  \"account_id\": 12,\n  \"availability_status\": \"online\",\n  \"auto_offline\": true,\n  \"confirmed\": true,\n  \"email\": \"jane.agent@example.com\",\n  \"available_name\": \"Jane Agent\",\n  \"name\": \"Jane Agent\",\n  \"role\": \"agent\",\n  \"see_all_conversations\": true,\n  \"thumbnail\": \"\"\n}\n```\n\nWhen you assign a team, the response is the raw team record — its shape\ndiffers from the team object of the [Teams](https://docs.99digital.co.il/online-api/teams/list-of-all-teams)\nendpoints. When you unassign, the response is `null`. Both are shown under\nResponses below.\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | Agent numeric ID |\n| `account_id` | Account numeric ID |\n| `availability_status` | The availability status of the agent. Enum: `online`, `busy`, `offline` |\n| `auto_offline` | Indicates whether the availability status of the agent is configured to go offline automatically when away |\n| `confirmed` | Indicates whether the agent has been validated by clicking on the invitation email they received |\n| `email` | Email of the agent |\n| `available_name` | Display name of the agent |\n| `name` | Full name of the agent |\n| `role` | The agent's role: the custom role's name (new rules system), or `agent` / `administrator` (legacy roles) |\n| `see_all_conversations` | Indicates whether the agent can see all conversations in the account |\n| `thumbnail` | Agent thumbnail (avatar URL) |\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `403` | The target agent cannot be assigned in this inbox. | `{\"error\": \"Agent cannot be assigned to this inbox\"}` |\n| `403` | The caller lacks **Inbox can assign** / **Inbox assign to group**. | `{\"error\": \"You are not authorized to do this action\"}` |\n\n## Remarks\n\n- The assigned agent becomes a\n  [participant](https://docs.99digital.co.il/online-api/conversations/participants/list-participants)\n  of the conversation and is notified.\n- With queue management enabled, assigning an agent to a queue-routed\n  conversation goes through the queue engine, as a manual assignment.\n- A change fires the `conversation_updated`\n  [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).",
          "item": [
            {
              "name": "Assign an agent",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"assignee_id\": 51\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "assignments"
                  ]
                },
                "description": "Assign the conversation to an agent.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/assign-conversation)"
              },
              "response": [
                {
                  "name": "200 · Assign an agent",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": 51\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 51,\n  \"account_id\": 12,\n  \"availability_status\": \"online\",\n  \"auto_offline\": true,\n  \"confirmed\": true,\n  \"email\": \"jane.agent@example.com\",\n  \"available_name\": \"Jane Agent\",\n  \"custom_attributes\": {},\n  \"name\": \"Jane Agent\",\n  \"role\": \"General Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": true,\n  \"assignable_to_inbox\": [\n    31,\n    32,\n    33\n  ],\n  \"new_role\": \"General Manager\",\n  \"thumbnail\": \"\",\n  \"two_factor_type\": \"sms\",\n  \"phone1\": \"+972541234567\",\n  \"email1\": null,\n  \"create_time\": 1790000000\n}"
                },
                {
                  "name": "200 · Assign a team",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": 51\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"\",\n  \"allow_auto_assign\": true,\n  \"account_id\": 12,\n  \"created_at\": \"2026-11-12T08:00:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:00:00.000Z\"\n}"
                },
                {
                  "name": "200 · Unassign",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": 51\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "null"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": 51\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": 51\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · Agent not assignable",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": 51\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Agent cannot be assigned to this inbox\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": 51\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": 51\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Assign a team",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"team_id\": 7\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "assignments"
                  ]
                },
                "description": "Assign the conversation to a team.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/assign-conversation)"
              },
              "response": [
                {
                  "name": "200 · Assign an agent",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team_id\": 7\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 51,\n  \"account_id\": 12,\n  \"availability_status\": \"online\",\n  \"auto_offline\": true,\n  \"confirmed\": true,\n  \"email\": \"jane.agent@example.com\",\n  \"available_name\": \"Jane Agent\",\n  \"custom_attributes\": {},\n  \"name\": \"Jane Agent\",\n  \"role\": \"General Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": true,\n  \"assignable_to_inbox\": [\n    31,\n    32,\n    33\n  ],\n  \"new_role\": \"General Manager\",\n  \"thumbnail\": \"\",\n  \"two_factor_type\": \"sms\",\n  \"phone1\": \"+972541234567\",\n  \"email1\": null,\n  \"create_time\": 1790000000\n}"
                },
                {
                  "name": "200 · Assign a team",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team_id\": 7\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"\",\n  \"allow_auto_assign\": true,\n  \"account_id\": 12,\n  \"created_at\": \"2026-11-12T08:00:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:00:00.000Z\"\n}"
                },
                {
                  "name": "200 · Unassign",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team_id\": 7\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "null"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team_id\": 7\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team_id\": 7\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · Agent not assignable",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team_id\": 7\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Agent cannot be assigned to this inbox\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team_id\": 7\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team_id\": 7\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Unassign",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"assignee_id\": null\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "assignments"
                  ]
                },
                "description": "Remove the agent. Send `{\"team_id\": null}` to remove the team the same way.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/assign-conversation)"
              },
              "response": [
                {
                  "name": "200 · Assign an agent",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 51,\n  \"account_id\": 12,\n  \"availability_status\": \"online\",\n  \"auto_offline\": true,\n  \"confirmed\": true,\n  \"email\": \"jane.agent@example.com\",\n  \"available_name\": \"Jane Agent\",\n  \"custom_attributes\": {},\n  \"name\": \"Jane Agent\",\n  \"role\": \"General Manager\",\n  \"operation_bot\": false,\n  \"see_all_conversations\": true,\n  \"assignable_to_inbox\": [\n    31,\n    32,\n    33\n  ],\n  \"new_role\": \"General Manager\",\n  \"thumbnail\": \"\",\n  \"two_factor_type\": \"sms\",\n  \"phone1\": \"+972541234567\",\n  \"email1\": null,\n  \"create_time\": 1790000000\n}"
                },
                {
                  "name": "200 · Assign a team",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"\",\n  \"allow_auto_assign\": true,\n  \"account_id\": 12,\n  \"created_at\": \"2026-11-12T08:00:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:00:00.000Z\"\n}"
                },
                {
                  "name": "200 · Unassign",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "null"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · Agent not assignable",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Agent cannot be assigned to this inbox\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"assignee_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/assignments",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "assignments"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "List Conversation Labels",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "labels"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/list-conversation-labels)\n\nList all labels associated to a conversation.\n\nThe response holds the label titles. The labels themselves — their colors\nand descriptions — are managed with the\n[Labels](https://docs.99digital.co.il/online-api/labels/list-labels) endpoints. To change a\nconversation's labels, use\n[Set Conversation Labels](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/labels` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token: any agent who may see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `conversation_id` | The numeric ID of the conversation (its display ID) | Yes |\n\n**Response:**\n\n```json\n{\n  \"payload\": [\"vip\", \"billing\"]\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `payload` | Array of strings (label): the titles of the conversation's labels |\n\n## Remarks\n\n- The same `GET` URL under `/conversations` can be called at most 10 times\n  per minute from one IP address; above that the answer is `429`. See\n  [Rate limits](https://docs.99digital.co.il/online-api/getting-started#rate-limits)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    \"vip\",\n    \"billing\"\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            },
            {
              "name": "429 Too Many Requests",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Set Conversation Labels",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels)\n\nAdd labels to a conversation.\n\n> **Note:** Using this request will overwrite the existing list of labels associated to\n> the conversation: labels you leave out are removed. Send the full list — or\n> `[]` to remove every label.\n\nTo add or remove single labels without sending the full list, use\n[Bulk Update Conversations](https://docs.99digital.co.il/online-api/conversations/bulk-update-conversations)\nwith `labels.add` / `labels.remove`. The labels themselves are managed with\nthe [Labels](https://docs.99digital.co.il/online-api/labels/list-labels) endpoints.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/labels` |\n| Method | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token: the caller must be able to see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n  New rules system: **Inbox assign labels** for the conversation's inbox.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `conversation_id` | The numeric ID of the conversation (its display ID) | Yes |\n\n**Request body:**\n\n| Parameter | type | Description | Required |\n| --- | --- | --- | --- |\n| `labels` | array of strings | An array of labels: the full list of label titles the conversation should have (see [List Labels](https://docs.99digital.co.il/online-api/labels/list-labels)) | Yes |\n\n**Request body example:**\n\n```json\n{\n  \"labels\": [\"vip\", \"billing\"]\n}\n```\n\n**Response:**\n\n```json\n{\n  \"payload\": [\n    \"vip\",\n    \"billing\"\n  ]\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `payload` | Array of strings (label): the titles of the conversation's labels after the change |\n\n## Remarks\n\n- A change fires the `conversation_updated`\n  [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).",
          "item": [
            {
              "name": "Set labels",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                },
                "description": "The conversation gets exactly these two labels.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels)"
              },
              "response": [
                {
                  "name": "200 · Set labels",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": [\n    \"vip\",\n    \"billing\"\n  ]\n}"
                },
                {
                  "name": "200 · Remove all labels",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": []\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": [\n    \"vip\",\n    \"billing\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Remove all labels",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"labels\": []\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "labels"
                  ]
                },
                "description": "An empty list removes every label.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels)"
              },
              "response": [
                {
                  "name": "200 · Set labels",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": [\n    \"vip\",\n    \"billing\"\n  ]\n}"
                },
                {
                  "name": "200 · Remove all labels",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": []\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"labels\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Set Conversation Custom Attributes",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/custom_attributes",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "custom_attributes"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/set-conversation-custom-attributes)\n\nReplaces the conversation's custom attributes with the given object.\n\n> **Warning:** This call **overwrites** the conversation's `custom_attributes`: keys you\n> leave out are removed, so send the full object.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/custom_attributes` |\n| **Authorization** | User token or **agent-bot token**. |\n\n**Permissions:**\n\n- User token: any agent who may see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `custom_attributes` | object | Yes | Key/value pairs. Use the keys of conversation custom attributes defined in Settings → Custom attributes so they show in the dashboard. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/custom_attributes' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"custom_attributes\": { \"order_id\": \"A-1001\", \"items_count\": 2 } }'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}\n```\n\n## Remarks\n\n- A change fires the `conversation_updated`\n  [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "custom_attributes"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "custom_attributes"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "custom_attributes"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "custom_attributes"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "custom_attributes"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\",\n    \"items_count\": 2\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "custom_attributes"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Mute Conversation",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/mute",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "mute"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/mute-conversation)\n\nMute a conversation: muting resolves it, and new incoming messages from the contact no longer reopen it until it is unmuted.\n\nMuting **resolves** the conversation and sets `muted` to `true`. Until you\n[unmute](https://docs.99digital.co.il/online-api/conversations/unmute-conversation) it, new incoming\nmessages from the contact do not reopen the conversation, and it does not\nnotify agents. An activity message is added to the conversation.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/mute` (or `/unmute`) |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token: any agent who may see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/mute' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response**: `200 OK` with an empty body. The conversation now has\n`\"muted\": true` and `\"status\": \"resolved\"`."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/mute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "mute"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/mute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "mute"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/mute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "mute"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/mute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "mute"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/mute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "mute"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/mute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "mute"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Unmute Conversation",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unmute",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "unmute"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/unmute-conversation)\n\nUnmute a conversation, so that new incoming messages from the contact reopen it again.\n\nMuting **resolves** the conversation, and new incoming messages from the\ncontact no longer reopen it until it is unmuted. Unmuting sets `muted` to\n`false` and does not change the status: a conversation that was resolved\nwhen it was [muted](https://docs.99digital.co.il/online-api/conversations/mute-conversation) stays\nresolved until the contact writes again or an agent reopens it.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/unmute` (or `/mute`) |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token: any agent who may see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/unmute' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response**: `200 OK` with an empty body. `POST .../unmute` sets\n`\"muted\": false` and does not change the status."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unmute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unmute"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unmute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unmute"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unmute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unmute"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unmute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unmute"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unmute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unmute"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unmute",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unmute"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "List Conversation Attachments",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/attachments",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "attachments"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/list-conversation-attachments)\n\nReturns all files sent in the conversation, from both the contact and agents.\n\nEach item is one file, with the message it belongs to and who sent it. The\nwhole list is returned at once.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/attachments` |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/attachments' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). A conversation without files returns\n`{\"payload\": []}`.\n\n```json\n{\n  \"payload\": [\n    {\n      \"message_id\": 40111,\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213,\n      \"file_type\": \"image\",\n      \"extension\": null,\n      \"created_at\": 1794471100,\n      \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"type\": \"user\" }\n    }\n  ]\n}\n```\n\n## Remarks\n\n- For a paginated list of the files, with their attachment IDs, use\n  [List Conversation Files](https://docs.99digital.co.il/online-api/messages/list-conversation-files)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/attachments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "attachments"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"message_id\": 40111,\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213,\n      \"file_type\": \"image\",\n      \"extension\": null,\n      \"created_at\": 1794471100,\n      \"sender\": {\n        \"id\": 51,\n        \"name\": \"Jane Agent\",\n        \"type\": \"user\"\n      }\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/attachments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "attachments"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/attachments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "attachments"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/attachments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "attachments"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/attachments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "attachments"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/attachments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "attachments"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Send Conversation Transcript",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/send-conversation-transcript)\n\nEmails the conversation transcript (incoming and outgoing messages) to an address, or previews it.\n\nWith `meta: true` it only returns a preview (message count and first\nmessage) without sending anything. Rate-limited to 30 transcript requests per\nhour per account.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/transcript` |\n| **Authorization** | User token. New rules: **Inbox send Transcript** for the inbox. |\n\n**Permissions:**\n\n- User token: the caller must also be able to see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `period.type_id` | string | Yes | Which messages: `all`, `today`, `h1` / `h3` / `h5` / `h24` (last 1/3/5/24 hours), `new` (since the last transcript), `custom` (from `period.from`), `last_ai_summary` (only the last AI-summary note). |\n| `period.from` | integer | Conditional | Unix timestamp, with `type_id: custom`. |\n| `email` | string | Conditional | Recipient. Required unless `to_assignee` is `true` or `meta` is `true`. |\n| `to_assignee` | boolean | No | Send to the conversation's assignee instead of `email`. |\n| `meta` | boolean | No | Return a preview only. |\n\n**Example: preview**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/transcript' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"period\": { \"type_id\": \"h24\" }, \"meta\": true }'\n```\n\nResponse (`200 OK`):\n\n```json\n{\n  \"count\": 4,\n  \"first\": {\n    \"content\": \"Hello, I have a question about my order.\",\n    \"created_at\": 1794471000\n  }\n}\n```\n\n**Example: send by email**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/transcript' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"period\": { \"type_id\": \"all\" }, \"email\": \"dana.cohen@example.com\" }'\n```\n\nResponse: `200 OK` with an empty body. The email is sent in the background.\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `422` | `email` is missing, and neither `to_assignee` nor `meta` is `true`. | `{\"error\": \"email param missing\"}` |\n| `429` | More than 30 transcript requests in an hour for the account (rate limit). See [Rate limits](https://docs.99digital.co.il/online-api/getting-started#rate-limits). | |",
          "item": [
            {
              "name": "Send by email",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "transcript"
                  ]
                },
                "description": "The whole conversation, to an email address.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/send-conversation-transcript)"
              },
              "response": [
                {
                  "name": "200 · Preview",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"count\": 4,\n  \"first\": {\n    \"content\": \"Hello, I have a question about my order.\",\n    \"created_at\": 1794471000\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"email param missing\"\n}"
                },
                {
                  "name": "429 Too Many Requests",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"all\"\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "header": [],
                  "body": ""
                }
              ]
            },
            {
              "name": "Since a time",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "transcript"
                  ]
                },
                "description": "The messages from a given time on.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/send-conversation-transcript)"
              },
              "response": [
                {
                  "name": "200 · Preview",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"count\": 4,\n  \"first\": {\n    \"content\": \"Hello, I have a question about my order.\",\n    \"created_at\": 1794471000\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"email param missing\"\n}"
                },
                {
                  "name": "429 Too Many Requests",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"custom\",\n    \"from\": 1794470400\n  },\n  \"email\": \"dana.cohen@example.com\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "header": [],
                  "body": ""
                }
              ]
            },
            {
              "name": "To the assignee",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "transcript"
                  ]
                },
                "description": "Today's messages, to the conversation's assignee.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/send-conversation-transcript)"
              },
              "response": [
                {
                  "name": "200 · Preview",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"count\": 4,\n  \"first\": {\n    \"content\": \"Hello, I have a question about my order.\",\n    \"created_at\": 1794471000\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"email param missing\"\n}"
                },
                {
                  "name": "429 Too Many Requests",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"today\"\n  },\n  \"to_assignee\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "header": [],
                  "body": ""
                }
              ]
            },
            {
              "name": "Preview",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "transcript"
                  ]
                },
                "description": "Preview the last 24 hours without sending anything.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/send-conversation-transcript)"
              },
              "response": [
                {
                  "name": "200 · Preview",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"count\": 4,\n  \"first\": {\n    \"content\": \"Hello, I have a question about my order.\",\n    \"created_at\": 1794471000\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"email param missing\"\n}"
                },
                {
                  "name": "429 Too Many Requests",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"period\": {\n    \"type_id\": \"h24\"\n  },\n  \"meta\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/transcript",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "transcript"
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "header": [],
                  "body": ""
                }
              ]
            }
          ]
        },
        {
          "name": "Send CSAT Survey",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/send-csat-survey)\n\nSends a customer-satisfaction (CSAT) survey message to the contact in this conversation.\n\nThe survey is sent as an outgoing message with `content_type`\n`input_csat`, which holds a link to the survey. When the contact answers,\nthe `csat_survey_submitted`\n[webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events) is sent.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/send_survey` |\n| **Authorization** | User token or **agent-bot token**. |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `survey_id` | integer | No | CSAT survey ID (from the account's CSAT surveys). Omit to send the built-in default survey. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/send_survey' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{}'\n```\n\n**Example response**: `200 OK` with an empty body. An outgoing message with\n`content_type: \"input_csat\"` is added to the conversation — here, for\nsurvey `3`:\n\n```json\n{\n  \"id\": 40120,\n  \"content\": \"Please rate this conversation, https://online.99digital.co.il/survey/responses/NDAxMjA=\",\n  \"message_type\": 1,\n  \"content_type\": \"input_csat\",\n  \"content_attributes\": {\n    \"submitted_values\": {\n      \"csat_survey_response\": {\n        \"csat_survey_id\": 3\n      }\n    }\n  }\n}\n```\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `404` | No CSAT survey with this `survey_id`. | `{\"error\": \"Survey not found\"}` |",
          "item": [
            {
              "name": "Default survey",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "send_survey"
                  ]
                },
                "description": "The built-in default survey.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/send-csat-survey)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 · Survey not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Survey not found\"\n}"
                },
                {
                  "name": "404 · Conversation not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "A specific survey",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"survey_id\": 3\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "send_survey"
                  ]
                },
                "description": "One of the account's CSAT surveys.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/send-csat-survey)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"survey_id\": 3\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"survey_id\": 3\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"survey_id\": 3\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"survey_id\": 3\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"survey_id\": 3\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 · Survey not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"survey_id\": 3\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Survey not found\"\n}"
                },
                {
                  "name": "404 · Conversation not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"survey_id\": 3\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/send_survey",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "send_survey"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Apply SLA Policy",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/apply-sla-policy)\n\nApplies an SLA policy to the conversation, or removes it, and returns the full conversation.\n\nThe policy is removed when `sla_policy_id` is `null`. The SLA is in the\nconversation's `sla_policy_id` and `applied_sla`.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/apply_sla` |\n| **Authorization** | User token or **agent-bot token**. |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `sla_policy_id` | integer | Yes | SLA policy ID, or `null` to remove the policy. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/apply_sla' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"sla_policy_id\": 4 }'\n```\n\n**Example response** (`200 OK`): a full conversation object. Only the SLA\nfields are shown here.\n\n```json\n{\n  \"id\": 1501,\n  \"sla_policy_id\": 4,\n  \"applied_sla\": {\n    \"id\": 210,\n    \"sla_id\": 4,\n    \"sla_status\": \"active\",\n    \"created_at\": 1794473400,\n    \"updated_at\": 1794473400,\n    \"sla_description\": \"Standard response times\",\n    \"sla_name\": \"Standard\",\n    \"sla_first_response_time_threshold\": 60.0,\n    \"sla_next_response_time_threshold\": 180.0,\n    \"sla_only_during_business_hours\": false,\n    \"sla_resolution_time_threshold\": 240.0\n  },\n  \"sla_events\": []\n}\n```\n\nThresholds are in seconds. `applied_sla` holds:\n\n| Field | Description |\n| --- | --- |\n| `id` | The ID of the applied SLA. |\n| `sla_id` | The SLA policy's ID. |\n| `sla_status` | The SLA's state, for example `active`. |\n| `sla_name`, `sla_description` | The policy's name and description. |\n| `sla_first_response_time_threshold`, `sla_next_response_time_threshold`, `sla_resolution_time_threshold` | The policy's thresholds, in seconds. |\n| `sla_only_during_business_hours` | Whether the thresholds apply only during business hours. |\n| `created_at`, `updated_at` | Unix time, seconds. |\n\n`DELETE /conversations/{conversation_id}/cancel_sla` also removes the policy,\nbut it is deprecated; send `{\"sla_policy_id\": null}` instead.\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `404` | No SLA policy with this `sla_policy_id`. | `{\"error\": \"SLA policy not found\"}` |",
          "item": [
            {
              "name": "Apply a policy",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"sla_policy_id\": 4\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "apply_sla"
                  ]
                },
                "description": "Apply SLA policy 4.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/apply-sla-policy)"
              },
              "response": [
                {
                  "name": "200 · Policy applied",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": 4\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1501,\n  \"sla_policy_id\": 4,\n  \"applied_sla\": {\n    \"id\": 210,\n    \"sla_id\": 4,\n    \"sla_status\": \"active\",\n    \"created_at\": 1794473400,\n    \"updated_at\": 1794473400,\n    \"sla_description\": \"Standard response times\",\n    \"sla_name\": \"Standard\",\n    \"sla_first_response_time_threshold\": 60,\n    \"sla_next_response_time_threshold\": 180,\n    \"sla_only_during_business_hours\": false,\n    \"sla_resolution_time_threshold\": 240\n  },\n  \"sla_events\": []\n}"
                },
                {
                  "name": "200 · Policy removed",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": 4\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1501,\n  \"sla_policy_id\": null,\n  \"applied_sla\": null,\n  \"sla_events\": []\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": 4\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": 4\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": 4\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": 4\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 · SLA policy not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": 4\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"SLA policy not found\"\n}"
                },
                {
                  "name": "404 · Conversation not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": 4\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Remove the policy",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"sla_policy_id\": null\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "apply_sla"
                  ]
                },
                "description": "Remove the conversation's SLA policy.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/apply-sla-policy)"
              },
              "response": [
                {
                  "name": "200 · Policy applied",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1501,\n  \"sla_policy_id\": 4,\n  \"applied_sla\": {\n    \"id\": 210,\n    \"sla_id\": 4,\n    \"sla_status\": \"active\",\n    \"created_at\": 1794473400,\n    \"updated_at\": 1794473400,\n    \"sla_description\": \"Standard response times\",\n    \"sla_name\": \"Standard\",\n    \"sla_first_response_time_threshold\": 60,\n    \"sla_next_response_time_threshold\": 180,\n    \"sla_only_during_business_hours\": false,\n    \"sla_resolution_time_threshold\": 240\n  },\n  \"sla_events\": []\n}"
                },
                {
                  "name": "200 · Policy removed",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 1501,\n  \"sla_policy_id\": null,\n  \"applied_sla\": null,\n  \"sla_events\": []\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 · SLA policy not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"SLA policy not found\"\n}"
                },
                {
                  "name": "404 · Conversation not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"sla_policy_id\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/apply_sla",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "apply_sla"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Mark Conversation as Read",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/update_last_seen",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "update_last_seen"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-read)\n\nMark a conversation as read.\n\nSets the conversation's `agent_last_seen_at` to now — and\n`assignee_last_seen_at` too, when the caller is the assignee — so its\nincoming messages count as read. The three read / unread endpoints:\n\n| Action | Method | Path | Effect |\n| --- | --- | --- | --- |\n| [Mark as read](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-read) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/update_last_seen` | Sets the agent's last-seen time to now (also the assignee's, when the caller is the assignee). |\n| [Mark as unread (by last incoming message)](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-unread) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/unread` | Moves last-seen to just before the last incoming message, so it counts as unread again. |\n| [Mark as unread (flag)](https://docs.99digital.co.il/online-api/conversations/set-conversation-unread) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/set_unread` | Marks the conversation unread and fires `conversation.unread`. |\n\n**Authorization**: user token. **Response** (`200 OK`): the full\n[conversation object](https://docs.99digital.co.il/online-api/conversations/get-conversation). The\nrequest has no body.\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/update_last_seen' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n## Remarks\n\n- For several conversations at once, use\n  [Bulk Mark as Read](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read)."
          },
          "response": [
            {
              "name": "200 · Read",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/update_last_seen",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "update_last_seen"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1501,\n  \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\",\n  \"account_id\": 12,\n  \"inbox_id\": 31,\n  \"status\": \"open\",\n  \"priority\": null,\n  \"labels\": [\n    \"vip\"\n  ],\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\"\n  },\n  \"additional_attributes\": {},\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500\n    },\n    \"channel\": \"Channel::Api\",\n    \"assignee\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"available_name\": \"Jane Agent\",\n      \"name\": \"Jane Agent\",\n      \"email\": \"jane.agent@example.com\",\n      \"role\": \"General Manager\",\n      \"thumbnail\": \"\"\n    },\n    \"hmac_verified\": false\n  },\n  \"contact_inbox\": {\n    \"wa_id\": null\n  },\n  \"messages\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1501,\n      \"message_type\": 0,\n      \"content_type\": \"text\",\n      \"status\": \"sent\",\n      \"status_history\": {\n        \"sent\": 1794472860\n      },\n      \"content_attributes\": {},\n      \"private\": false,\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"email\": \"dana.cohen@example.com\",\n        \"phone_number\": \"+972501234567\",\n        \"identifier\": \"crm-801\",\n        \"thumbnail\": \"\",\n        \"type\": \"contact\",\n        \"blocked\": false\n      },\n      \"ticket_id\": 903,\n      \"delay_hours\": null,\n      \"created_at\": 1794472860,\n      \"created_at_exact\": \"2026-11-12T08:41:00.000Z\"\n    }\n  ],\n  \"last_non_activity_message\": {\n    \"id\": 40113,\n    \"content\": \"Hi, where is my order?\",\n    \"inbox_id\": 31,\n    \"conversation_id\": 1501,\n    \"message_type\": 0,\n    \"content_type\": \"text\",\n    \"status\": \"sent\",\n    \"status_history\": {\n      \"sent\": 1794472860\n    },\n    \"content_attributes\": {},\n    \"private\": false,\n    \"source_id\": null,\n    \"sender\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"email\": \"dana.cohen@example.com\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"type\": \"contact\",\n      \"blocked\": false\n    },\n    \"ticket_id\": 903,\n    \"delay_hours\": null,\n    \"created_at\": 1794472860,\n    \"created_at_exact\": \"2026-11-12T08:41:00.000Z\"\n  },\n  \"can_reply\": true,\n  \"muted\": false,\n  \"snoozed_until\": null,\n  \"unread_count\": 0,\n  \"has_incoming_messages\": true,\n  \"created_at\": 1794471000,\n  \"timestamp\": 1794472860,\n  \"last_activity_at\": 1794472860,\n  \"first_reply_created_at\": 1794471120,\n  \"waiting_since\": 1794472860,\n  \"agent_last_seen_at\": 1794473100,\n  \"assignee_last_seen_at\": 1794473100,\n  \"contact_last_seen_at\": 0,\n  \"last_incoming_message_time\": \"2026-11-12T08:41:00.000Z\",\n  \"sla_policy_id\": null,\n  \"feature_enabled_sla\": true,\n  \"applied_sla\": null,\n  \"sla_events\": [],\n  \"sla_events_with_distinct_event_type\": [],\n  \"campaign_id\": null,\n  \"pinned\": false\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/update_last_seen",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "update_last_seen"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/update_last_seen",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "update_last_seen"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/update_last_seen",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "update_last_seen"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/update_last_seen",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "update_last_seen"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/update_last_seen",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "update_last_seen"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Mark Conversation as Unread",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unread",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "unread"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-unread)\n\nMark a conversation as unread by moving its last-seen time back to its last incoming message.\n\nMoves the conversation's last-seen time (`agent_last_seen_at`) to just\nbefore its last incoming message, so that message counts as unread again\n(`unread_count` is at least `1`). The three read / unread endpoints:\n\n| Action | Method | Path | Effect |\n| --- | --- | --- | --- |\n| [Mark as read](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-read) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/update_last_seen` | Sets the agent's last-seen time to now (also the assignee's, when the caller is the assignee). |\n| [Mark as unread (by last incoming message)](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-unread) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/unread` | Moves last-seen to just before the last incoming message, so it counts as unread again. |\n| [Mark as unread (flag)](https://docs.99digital.co.il/online-api/conversations/set-conversation-unread) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/set_unread` | Marks the conversation unread and fires `conversation.unread`. |\n\n**Authorization**: user token. **Response** (`200 OK`): the full\n[conversation object](https://docs.99digital.co.il/online-api/conversations/get-conversation). The\nrequest has no body.\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/unread' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n## Remarks\n\n- For several conversations at once, use\n  [Bulk Mark as Unread](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-unread)."
          },
          "response": [
            {
              "name": "200 · Unread",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unread"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1501,\n  \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\",\n  \"account_id\": 12,\n  \"inbox_id\": 31,\n  \"status\": \"open\",\n  \"priority\": null,\n  \"labels\": [\n    \"vip\"\n  ],\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\"\n  },\n  \"additional_attributes\": {},\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500\n    },\n    \"channel\": \"Channel::Api\",\n    \"assignee\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"available_name\": \"Jane Agent\",\n      \"name\": \"Jane Agent\",\n      \"email\": \"jane.agent@example.com\",\n      \"role\": \"General Manager\",\n      \"thumbnail\": \"\"\n    },\n    \"hmac_verified\": false\n  },\n  \"contact_inbox\": {\n    \"wa_id\": null\n  },\n  \"messages\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1501,\n      \"message_type\": 0,\n      \"content_type\": \"text\",\n      \"status\": \"sent\",\n      \"status_history\": {\n        \"sent\": 1794472860\n      },\n      \"content_attributes\": {},\n      \"private\": false,\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"email\": \"dana.cohen@example.com\",\n        \"phone_number\": \"+972501234567\",\n        \"identifier\": \"crm-801\",\n        \"thumbnail\": \"\",\n        \"type\": \"contact\",\n        \"blocked\": false\n      },\n      \"ticket_id\": 903,\n      \"delay_hours\": null,\n      \"created_at\": 1794472860,\n      \"created_at_exact\": \"2026-11-12T08:41:00.000Z\"\n    }\n  ],\n  \"last_non_activity_message\": {\n    \"id\": 40113,\n    \"content\": \"Hi, where is my order?\",\n    \"inbox_id\": 31,\n    \"conversation_id\": 1501,\n    \"message_type\": 0,\n    \"content_type\": \"text\",\n    \"status\": \"sent\",\n    \"status_history\": {\n      \"sent\": 1794472860\n    },\n    \"content_attributes\": {},\n    \"private\": false,\n    \"source_id\": null,\n    \"sender\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"email\": \"dana.cohen@example.com\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"type\": \"contact\",\n      \"blocked\": false\n    },\n    \"ticket_id\": 903,\n    \"delay_hours\": null,\n    \"created_at\": 1794472860,\n    \"created_at_exact\": \"2026-11-12T08:41:00.000Z\"\n  },\n  \"can_reply\": true,\n  \"muted\": false,\n  \"snoozed_until\": null,\n  \"unread_count\": 1,\n  \"has_incoming_messages\": true,\n  \"created_at\": 1794471000,\n  \"timestamp\": 1794472860,\n  \"last_activity_at\": 1794472860,\n  \"first_reply_created_at\": 1794471120,\n  \"waiting_since\": 1794472860,\n  \"agent_last_seen_at\": 1794472859,\n  \"assignee_last_seen_at\": 1794472859,\n  \"contact_last_seen_at\": 0,\n  \"last_incoming_message_time\": \"2026-11-12T08:41:00.000Z\",\n  \"sla_policy_id\": null,\n  \"feature_enabled_sla\": true,\n  \"applied_sla\": null,\n  \"sla_events\": [],\n  \"sla_events_with_distinct_event_type\": [],\n  \"campaign_id\": null,\n  \"pinned\": false\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unread"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unread"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unread"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unread"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "unread"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Set Conversation Unread",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/set_unread",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "set_unread"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/set-conversation-unread)\n\nFlag a conversation as unread.\n\nMarks the conversation unread and fires the `conversation.unread` event. The\nthree read / unread endpoints:\n\n| Action | Method | Path | Effect |\n| --- | --- | --- | --- |\n| [Mark as read](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-read) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/update_last_seen` | Sets the agent's last-seen time to now (also the assignee's, when the caller is the assignee). |\n| [Mark as unread (by last incoming message)](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-unread) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/unread` | Moves last-seen to just before the last incoming message, so it counts as unread again. |\n| [Mark as unread (flag)](https://docs.99digital.co.il/online-api/conversations/set-conversation-unread) | `POST` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/set_unread` | Marks the conversation unread and fires `conversation.unread`. |\n\n**Authorization**: user token. **Response** (`200 OK`): the full\n[conversation object](https://docs.99digital.co.il/online-api/conversations/get-conversation). The\nrequest has no body.\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/set_unread' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n## Remarks\n\n- `conversation.unread` is not one of the\n  [webhook events](https://docs.99digital.co.il/online-api/webhooks/webhook-events) you can subscribe to."
          },
          "response": [
            {
              "name": "200 · Unread",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/set_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "set_unread"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1501,\n  \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\",\n  \"account_id\": 12,\n  \"inbox_id\": 31,\n  \"status\": \"open\",\n  \"priority\": null,\n  \"labels\": [\n    \"vip\"\n  ],\n  \"custom_attributes\": {\n    \"order_id\": \"A-1001\"\n  },\n  \"additional_attributes\": {},\n  \"meta\": {\n    \"sender\": {\n      \"additional_attributes\": {\n        \"company_name\": \"Example Ltd\",\n        \"city\": \"Tel Aviv\"\n      },\n      \"availability_status\": \"offline\",\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"blocked\": false,\n      \"is_whatsapp_contact\": false,\n      \"created_at\": 1794470500\n    },\n    \"channel\": \"Channel::Api\",\n    \"assignee\": {\n      \"id\": 51,\n      \"account_id\": 12,\n      \"availability_status\": \"online\",\n      \"available_name\": \"Jane Agent\",\n      \"name\": \"Jane Agent\",\n      \"email\": \"jane.agent@example.com\",\n      \"role\": \"General Manager\",\n      \"thumbnail\": \"\"\n    },\n    \"hmac_verified\": false\n  },\n  \"contact_inbox\": {\n    \"wa_id\": null\n  },\n  \"messages\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1501,\n      \"message_type\": 0,\n      \"content_type\": \"text\",\n      \"status\": \"sent\",\n      \"status_history\": {\n        \"sent\": 1794472860\n      },\n      \"content_attributes\": {},\n      \"private\": false,\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"email\": \"dana.cohen@example.com\",\n        \"phone_number\": \"+972501234567\",\n        \"identifier\": \"crm-801\",\n        \"thumbnail\": \"\",\n        \"type\": \"contact\",\n        \"blocked\": false\n      },\n      \"ticket_id\": 903,\n      \"delay_hours\": null,\n      \"created_at\": 1794472860,\n      \"created_at_exact\": \"2026-11-12T08:41:00.000Z\"\n    }\n  ],\n  \"last_non_activity_message\": {\n    \"id\": 40113,\n    \"content\": \"Hi, where is my order?\",\n    \"inbox_id\": 31,\n    \"conversation_id\": 1501,\n    \"message_type\": 0,\n    \"content_type\": \"text\",\n    \"status\": \"sent\",\n    \"status_history\": {\n      \"sent\": 1794472860\n    },\n    \"content_attributes\": {},\n    \"private\": false,\n    \"source_id\": null,\n    \"sender\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"email\": \"dana.cohen@example.com\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"type\": \"contact\",\n      \"blocked\": false\n    },\n    \"ticket_id\": 903,\n    \"delay_hours\": null,\n    \"created_at\": 1794472860,\n    \"created_at_exact\": \"2026-11-12T08:41:00.000Z\"\n  },\n  \"can_reply\": true,\n  \"muted\": false,\n  \"snoozed_until\": null,\n  \"unread_count\": 1,\n  \"has_incoming_messages\": true,\n  \"created_at\": 1794471000,\n  \"timestamp\": 1794472860,\n  \"last_activity_at\": 1794472860,\n  \"first_reply_created_at\": 1794471120,\n  \"waiting_since\": 1794472860,\n  \"agent_last_seen_at\": 1794472859,\n  \"assignee_last_seen_at\": 1794472859,\n  \"contact_last_seen_at\": 0,\n  \"last_incoming_message_time\": \"2026-11-12T08:41:00.000Z\",\n  \"sla_policy_id\": null,\n  \"feature_enabled_sla\": true,\n  \"applied_sla\": null,\n  \"sla_events\": [],\n  \"sla_events_with_distinct_event_type\": [],\n  \"campaign_id\": null,\n  \"pinned\": false\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/set_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "set_unread"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/set_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "set_unread"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/set_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "set_unread"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/set_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "set_unread"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/set_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "set_unread"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "List Conversation Events",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code >= 200 && pm.response.code < 300) {",
                  "  let body;",
                  "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                  "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                  "  const event_id = pick([\"payload\",0,\"id\"]);",
                  "  if (event_id !== undefined && event_id !== null) {",
                  "    pm.collectionVariables.set(\"event_id\", String(event_id));",
                  "  }",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "conversation_events"
              ],
              "query": [
                {
                  "key": "event_type",
                  "value": "label",
                  "description": "Return only events of this type. The values are explained under `event_type` in the response.",
                  "disabled": true
                },
                {
                  "key": "ticket_id",
                  "value": "903",
                  "description": "Return only the events of this ticket.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/list-conversation-events)\n\nList a conversation's events: its audit trail of status, assignment, label and other changes.\n\nThe audit trail of a conversation: status changes, Bot/Manual switches,\nassignments, team changes, labels, priority, SLA, custom and additional\nattribute changes, and mentions. Each event carries the `ticket_id` it\nbelongs to (see [Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets)).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **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)) |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Query parameters (list)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `event_type` | string | No | `agent`, `team`, `label`, `status`, `sla`, `custom_attribute`, `additional_attributes`, `priority`, `agent_mentions`, `bot_mode`, `human_mode`, `other`. |\n| `ticket_id` | integer | No | Only events of this ticket. |\n\n**Event fields**\n\n| Field | Description |\n| --- | --- |\n| `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). |\n| `created_by` | `system`, `agent_create` (an agent or API user), `agent_bot`, `user` (the contact). |\n| `type_old_status`, `type_new_status` | For `status`, `bot_mode` and `human_mode` events. |\n| `type_agent` + `type_agent_old_value` / `type_agent_new_value` | `add_agent` / `remove_agent` / `change_agent` and the agent IDs. |\n| `type_team` + `team_type_old_value` / `team_type_new_value` | `add_team` / `remove_team` / `change_team` and the team IDs. |\n| `type_label` + `type_label_value` | `add_label` / `remove_label` and the labels. |\n| `type_priority`, `type_sla_event`, `type_custom_attribute`, `type_additional_attributes`, `type_agent_mentions` | Details of the other event types. |\n| `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). |\n| `created_at`, `updated_at` | Unix timestamps. |\n\nThe fields that describe the change depend on `event_type`; the others are\n`null`.\n\n**Example: label events only**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/conversation_events?event_type=label' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`):\n\n```json\n{\n  \"payload\": [\n    {\n      \"id\": 6102,\n      \"created_by\": \"agent_create\",\n      \"event_type\": \"label\",\n      \"team_type_new_value\": null,\n      \"team_type_old_value\": null,\n      \"type_additional_attributes\": null,\n      \"type_agent\": null,\n      \"type_agent_mentions\": null,\n      \"type_agent_new_value\": null,\n      \"type_agent_old_value\": null,\n      \"type_custom_attribute\": null,\n      \"type_label\": \"add_label\",\n      \"type_label_value\": \"[\\\"vip\\\"]\",\n      \"type_new_status\": null,\n      \"type_old_status\": null,\n      \"type_priority\": null,\n      \"type_sla_event\": null,\n      \"type_team\": null,\n      \"created_at\": 1794472950,\n      \"updated_at\": 1794472950,\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 2301,\n      \"inbox_id\": 31,\n      \"ticket_id\": 903\n    }\n  ]\n}\n```\n\nTo get one event, use\n[Get Conversation Event](https://docs.99digital.co.il/online-api/conversations/get-conversation-event)."
          },
          "response": [
            {
              "name": "200 · All events",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events"
                  ],
                  "query": [
                    {
                      "key": "event_type",
                      "value": "label",
                      "description": "Return only events of this type. The values are explained under `event_type` in the response.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "903",
                      "description": "Return only the events of this ticket.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"id\": 6101,\n      \"created_by\": \"agent_create\",\n      \"event_type\": \"agent\",\n      \"team_type_new_value\": null,\n      \"team_type_old_value\": null,\n      \"type_additional_attributes\": null,\n      \"type_agent\": \"change_agent\",\n      \"type_agent_mentions\": null,\n      \"type_agent_new_value\": 51,\n      \"type_agent_old_value\": null,\n      \"type_custom_attribute\": null,\n      \"type_label\": null,\n      \"type_label_value\": null,\n      \"type_new_status\": null,\n      \"type_old_status\": null,\n      \"type_priority\": null,\n      \"type_sla_event\": null,\n      \"type_team\": null,\n      \"created_at\": 1794472920,\n      \"updated_at\": 1794472920,\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 2301,\n      \"inbox_id\": 31,\n      \"ticket_id\": 903\n    },\n    {\n      \"id\": 6102,\n      \"created_by\": \"agent_create\",\n      \"event_type\": \"label\",\n      \"team_type_new_value\": null,\n      \"team_type_old_value\": null,\n      \"type_additional_attributes\": null,\n      \"type_agent\": null,\n      \"type_agent_mentions\": null,\n      \"type_agent_new_value\": null,\n      \"type_agent_old_value\": null,\n      \"type_custom_attribute\": null,\n      \"type_label\": \"add_label\",\n      \"type_label_value\": \"[\\\"vip\\\"]\",\n      \"type_new_status\": null,\n      \"type_old_status\": null,\n      \"type_priority\": null,\n      \"type_sla_event\": null,\n      \"type_team\": null,\n      \"created_at\": 1794472950,\n      \"updated_at\": 1794472950,\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 2301,\n      \"inbox_id\": 31,\n      \"ticket_id\": 903\n    }\n  ]\n}"
            },
            {
              "name": "200 · Label events",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events"
                  ],
                  "query": [
                    {
                      "key": "event_type",
                      "value": "label",
                      "description": "Return only events of this type. The values are explained under `event_type` in the response.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "903",
                      "description": "Return only the events of this ticket.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"id\": 6102,\n      \"created_by\": \"agent_create\",\n      \"event_type\": \"label\",\n      \"team_type_new_value\": null,\n      \"team_type_old_value\": null,\n      \"type_additional_attributes\": null,\n      \"type_agent\": null,\n      \"type_agent_mentions\": null,\n      \"type_agent_new_value\": null,\n      \"type_agent_old_value\": null,\n      \"type_custom_attribute\": null,\n      \"type_label\": \"add_label\",\n      \"type_label_value\": \"[\\\"vip\\\"]\",\n      \"type_new_status\": null,\n      \"type_old_status\": null,\n      \"type_priority\": null,\n      \"type_sla_event\": null,\n      \"type_team\": null,\n      \"created_at\": 1794472950,\n      \"updated_at\": 1794472950,\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 2301,\n      \"inbox_id\": 31,\n      \"ticket_id\": 903\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events"
                  ],
                  "query": [
                    {
                      "key": "event_type",
                      "value": "label",
                      "description": "Return only events of this type. The values are explained under `event_type` in the response.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "903",
                      "description": "Return only the events of this ticket.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events"
                  ],
                  "query": [
                    {
                      "key": "event_type",
                      "value": "label",
                      "description": "Return only events of this type. The values are explained under `event_type` in the response.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "903",
                      "description": "Return only the events of this ticket.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events"
                  ],
                  "query": [
                    {
                      "key": "event_type",
                      "value": "label",
                      "description": "Return only events of this type. The values are explained under `event_type` in the response.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "903",
                      "description": "Return only the events of this ticket.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events"
                  ],
                  "query": [
                    {
                      "key": "event_type",
                      "value": "label",
                      "description": "Return only events of this type. The values are explained under `event_type` in the response.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "903",
                      "description": "Return only the events of this ticket.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events"
                  ],
                  "query": [
                    {
                      "key": "event_type",
                      "value": "label",
                      "description": "Return only events of this type. The values are explained under `event_type` in the response.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "903",
                      "description": "Return only the events of this ticket.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Get Conversation Event",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events/{{event_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "conversation_events",
                "{{event_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/get-conversation-event)\n\nGet one event from a conversation's audit trail.\n\nThe audit trail of a conversation: status changes, Bot/Manual switches,\nassignments, team changes, labels, priority, SLA, custom and additional\nattribute changes, and mentions. Each event carries the `ticket_id` it\nbelongs to (see [Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets)).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **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)) |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n| `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). |\n\n**Event fields**\n\n| Field | Description |\n| --- | --- |\n| `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). |\n| `created_by` | `system`, `agent_create` (an agent or API user), `agent_bot`, `user` (the contact). |\n| `type_old_status`, `type_new_status` | For `status`, `bot_mode` and `human_mode` events. |\n| `type_agent` + `type_agent_old_value` / `type_agent_new_value` | `add_agent` / `remove_agent` / `change_agent` and the agent IDs. |\n| `type_team` + `team_type_old_value` / `team_type_new_value` | `add_team` / `remove_team` / `change_team` and the team IDs. |\n| `type_label` + `type_label_value` | `add_label` / `remove_label` and the labels. |\n| `type_priority`, `type_sla_event`, `type_custom_attribute`, `type_additional_attributes`, `type_agent_mentions` | Details of the other event types. |\n| `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). |\n| `created_at`, `updated_at` | Unix timestamps. |\n\nThe fields that describe the change depend on `event_type`; the others are\n`null`.\n\n**Example: one event (an assignment)**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/conversation_events/6101' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`). The event object is not wrapped in `payload`; null\nfields are trimmed here.\n\n```json\n{\n  \"id\": 6101,\n  \"created_by\": \"agent_create\",\n  \"event_type\": \"agent\",\n  \"type_agent\": \"change_agent\",\n  \"type_agent_new_value\": 51,\n  \"type_agent_old_value\": null,\n  \"created_at\": 1794472920,\n  \"updated_at\": 1794472920,\n  \"account_id\": 12,\n  \"contact_id\": 801,\n  \"conversation_id\": 2301,\n  \"inbox_id\": 31,\n  \"ticket_id\": 903\n}\n```"
          },
          "response": [
            {
              "name": "200 · Assignment",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events/{{event_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events",
                    "{{event_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 6101,\n  \"created_by\": \"agent_create\",\n  \"event_type\": \"agent\",\n  \"team_type_new_value\": null,\n  \"team_type_old_value\": null,\n  \"type_additional_attributes\": null,\n  \"type_agent\": \"change_agent\",\n  \"type_agent_mentions\": null,\n  \"type_agent_new_value\": 51,\n  \"type_agent_old_value\": null,\n  \"type_custom_attribute\": null,\n  \"type_label\": null,\n  \"type_label_value\": null,\n  \"type_new_status\": null,\n  \"type_old_status\": null,\n  \"type_priority\": null,\n  \"type_sla_event\": null,\n  \"type_team\": null,\n  \"created_at\": 1794472920,\n  \"updated_at\": 1794472920,\n  \"account_id\": 12,\n  \"contact_id\": 801,\n  \"conversation_id\": 2301,\n  \"inbox_id\": 31,\n  \"ticket_id\": 903\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events/{{event_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events",
                    "{{event_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events/{{event_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events",
                    "{{event_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events/{{event_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events",
                    "{{event_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events/{{event_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events",
                    "{{event_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/conversation_events/{{event_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "conversation_events",
                    "{{event_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Bulk Update Conversations",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/bulk-update-conversations)\n\nUpdates many conversations at once: status, priority, assignee, team, snooze time, and adding or removing labels.\n\nThe update runs in the background, so the response is immediate. The request\nis rejected as a whole (`403`) if any conversation is not visible to the\ncaller, or if the caller lacks the inbox permission for a field being\nchanged (the same permissions as the single-conversation endpoints); then\nno conversation is changed.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/bulk_actions` |\n| **Authorization** | User token. Per-field inbox permissions as in [Toggle Conversation Status](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status), [Toggle Conversation Priority](https://docs.99digital.co.il/online-api/conversations/toggle-conversation-priority), [Assign Conversation](https://docs.99digital.co.il/online-api/conversations/assign-conversation) and [Set Conversation Labels](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels). |\n\n**Permissions:**\n\n- User token: the caller must be able to see every conversation in `ids` —\n  see [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n  New rules system, for each field you change, in every conversation's\n  inbox:\n  - `fields.status`: **Inbox resolve**, **Inbox move to pending**, **Inbox\n    reopen** or **Inbox manual/bot switch**, by the status.\n  - `fields.priority`: **Inbox priority of conversations**.\n  - `fields.assignee_id`: **Inbox can assign**. `fields.team_id`:\n    **Inbox assign to group**.\n  - `labels`: **Inbox assign labels**.\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `type` | string | Yes | Must be `Conversation`. Anything else returns `422 {\"success\": false}`. |\n| `ids` | integer[] | Yes | Conversation display IDs. |\n| `fields.status` | string | No | New status: `open` (Bot), `pending` (Manual), `snoozed`, `resolved`. |\n| `fields.priority` | string | No | New priority: `low`, `medium`, `high`, `urgent`. |\n| `fields.assignee_id` | integer | No | Agent to assign (must be assignable in every affected inbox). |\n| `fields.team_id` | integer | No | Team to assign. |\n| `fields.snoozed_until` | string | No | Snooze end time. |\n| `labels.add` | string[] | No | Labels to add. |\n| `labels.remove` | string[] | No | Labels to remove. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk_actions' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"type\": \"Conversation\",\n    \"ids\": [1501],\n    \"fields\": { \"status\": \"pending\", \"priority\": \"high\" },\n    \"labels\": { \"add\": [\"billing\"], \"remove\": [\"follow_up\"] }\n  }'\n```\n\n**Example response**: `200 OK` with an empty body. A few seconds later\nconversation `1501` had status `pending`, priority `high` and labels\n`[\"vip\", \"billing\"]`.\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `403` | A conversation is not visible to the caller, or the caller lacks the inbox permission for a field. The whole request is rejected. | |\n| `422` | `type` is not `Conversation`. | `{\"success\": false}` |\n\n## Remarks\n\n- `labels.add` and `labels.remove` change single labels without sending the\n  full list, unlike\n  [Set Conversation Labels](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels),\n  which replaces it. This works for a single conversation too.\n- To mark conversations as read or unread, use\n  [Bulk Mark as Read](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read) and\n  [Bulk Mark as Unread](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-unread).",
          "item": [
            {
              "name": "Resolve",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"resolved\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions"
                  ]
                },
                "description": "Resolve two conversations.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/bulk-update-conversations)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"resolved\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"resolved\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"resolved\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"resolved\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"resolved\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"resolved\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"success\": false\n}"
                }
              ]
            },
            {
              "name": "Status, priority and labels",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"pending\",\n    \"priority\": \"high\"\n  },\n  \"labels\": {\n    \"add\": [\n      \"vip\"\n    ],\n    \"remove\": [\n      \"follow_up\"\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions"
                  ]
                },
                "description": "Hand over to a human, raise the priority, and change labels.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/bulk-update-conversations)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"pending\",\n    \"priority\": \"high\"\n  },\n  \"labels\": {\n    \"add\": [\n      \"vip\"\n    ],\n    \"remove\": [\n      \"follow_up\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"pending\",\n    \"priority\": \"high\"\n  },\n  \"labels\": {\n    \"add\": [\n      \"vip\"\n    ],\n    \"remove\": [\n      \"follow_up\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"pending\",\n    \"priority\": \"high\"\n  },\n  \"labels\": {\n    \"add\": [\n      \"vip\"\n    ],\n    \"remove\": [\n      \"follow_up\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"pending\",\n    \"priority\": \"high\"\n  },\n  \"labels\": {\n    \"add\": [\n      \"vip\"\n    ],\n    \"remove\": [\n      \"follow_up\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"pending\",\n    \"priority\": \"high\"\n  },\n  \"labels\": {\n    \"add\": [\n      \"vip\"\n    ],\n    \"remove\": [\n      \"follow_up\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"status\": \"pending\",\n    \"priority\": \"high\"\n  },\n  \"labels\": {\n    \"add\": [\n      \"vip\"\n    ],\n    \"remove\": [\n      \"follow_up\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"success\": false\n}"
                }
              ]
            },
            {
              "name": "Assign",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"assignee_id\": 52,\n    \"team_id\": 7\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions"
                  ]
                },
                "description": "Assign an agent and a team.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/bulk-update-conversations)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"assignee_id\": 52,\n    \"team_id\": 7\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"assignee_id\": 52,\n    \"team_id\": 7\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"assignee_id\": 52,\n    \"team_id\": 7\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"assignee_id\": 52,\n    \"team_id\": 7\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"assignee_id\": 52,\n    \"team_id\": 7\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"type\": \"Conversation\",\n  \"ids\": [\n    1501,\n    1502\n  ],\n  \"fields\": {\n    \"assignee_id\": 52,\n    \"team_id\": 7\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "bulk_actions"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"success\": false\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Bulk Mark as Read",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_read_all",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "bulk_actions",
                "mark_as_read_all"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read)\n\nMark several conversations as read at once.\n\nMarks every conversation in `ids` as read. The response has an empty body.\nFor one conversation, you can also use\n[Mark Conversation as Read](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-read),\nwhich returns the conversation. The two bulk read / unread endpoints:\n\n| Action | Method | Path | Body | Response |\n| --- | --- | --- | --- | --- |\n| [Mark as read](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read) | `POST` | `/api/v1/accounts/{account_id}/bulk_actions/mark_as_read_all` | `{\"ids\": [1501]}` | `200 OK`, empty body |\n| [Mark as unread](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-unread) | `POST` | `/api/v1/accounts/{account_id}/bulk_actions/mark_as_unread` | `{\"ids\": [1501]}` | `200 OK`, `{\"payload\": [...conversations that were marked unread...]}`. A conversation without incoming messages is skipped. |\n\n**Permissions:**\n\n- User token: allowed.\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `ids` | integer[] | Yes | Conversation display IDs. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk_actions/mark_as_read_all' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"ids\": [1501, 1502] }'\n```\n\n**Example response**: `200 OK` with an empty body."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_read_all",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_read_all"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_read_all",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_read_all"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_read_all",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_read_all"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_read_all",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_read_all"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_read_all",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_read_all"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Bulk Mark as Unread",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_unread",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "bulk_actions",
                "mark_as_unread"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-unread)\n\nMark several conversations as unread at once.\n\nMarks every conversation in `ids` as unread, and returns the conversations\nthat were marked. A conversation without incoming messages is skipped, and\nis not in the response. For one conversation, you can also use\n[Mark Conversation as Unread](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-unread).\nThe two bulk read / unread endpoints:\n\n| Action | Method | Path | Body | Response |\n| --- | --- | --- | --- | --- |\n| [Mark as read](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read) | `POST` | `/api/v1/accounts/{account_id}/bulk_actions/mark_as_read_all` | `{\"ids\": [1501]}` | `200 OK`, empty body |\n| [Mark as unread](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-unread) | `POST` | `/api/v1/accounts/{account_id}/bulk_actions/mark_as_unread` | `{\"ids\": [1501]}` | `200 OK`, `{\"payload\": [...conversations that were marked unread...]}`. A conversation without incoming messages is skipped. |\n\n**Permissions:**\n\n- User token: allowed.\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `ids` | integer[] | Yes | Conversation display IDs. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk_actions/mark_as_unread' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"ids\": [1501, 1502] }'\n```\n\n**Example response** (`200 OK`): `{\"payload\": [...]}` with the conversations\nthat were marked unread — here only `1501`, because `1502` has no incoming\nmessages. The full conversation objects are under Responses below."
          },
          "response": [
            {
              "name": "200 · One skipped",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_unread"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"id\": 1501,\n      \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\",\n      \"account_id\": 12,\n      \"inbox_id\": 31,\n      \"status\": \"open\",\n      \"priority\": null,\n      \"labels\": [\n        \"vip\"\n      ],\n      \"custom_attributes\": {\n        \"order_id\": \"A-1001\"\n      },\n      \"additional_attributes\": {},\n      \"meta\": {\n        \"sender\": {\n          \"additional_attributes\": {\n            \"company_name\": \"Example Ltd\",\n            \"city\": \"Tel Aviv\"\n          },\n          \"availability_status\": \"offline\",\n          \"email\": \"dana.cohen@example.com\",\n          \"id\": 801,\n          \"name\": \"Dana Cohen\",\n          \"phone_number\": \"+972501234567\",\n          \"identifier\": \"crm-801\",\n          \"thumbnail\": \"\",\n          \"custom_attributes\": {\n            \"customer_tier\": \"gold\"\n          },\n          \"blocked\": false,\n          \"is_whatsapp_contact\": false,\n          \"created_at\": 1794470500\n        },\n        \"channel\": \"Channel::Api\",\n        \"assignee\": {\n          \"id\": 51,\n          \"account_id\": 12,\n          \"availability_status\": \"online\",\n          \"available_name\": \"Jane Agent\",\n          \"name\": \"Jane Agent\",\n          \"email\": \"jane.agent@example.com\",\n          \"role\": \"General Manager\",\n          \"thumbnail\": \"\"\n        },\n        \"hmac_verified\": false\n      },\n      \"contact_inbox\": {\n        \"wa_id\": null\n      },\n      \"messages\": [\n        {\n          \"id\": 40113,\n          \"content\": \"Hi, where is my order?\",\n          \"inbox_id\": 31,\n          \"conversation_id\": 1501,\n          \"message_type\": 0,\n          \"content_type\": \"text\",\n          \"status\": \"sent\",\n          \"status_history\": {\n            \"sent\": 1794472860\n          },\n          \"content_attributes\": {},\n          \"private\": false,\n          \"source_id\": null,\n          \"sender\": {\n            \"id\": 801,\n            \"name\": \"Dana Cohen\",\n            \"email\": \"dana.cohen@example.com\",\n            \"phone_number\": \"+972501234567\",\n            \"identifier\": \"crm-801\",\n            \"thumbnail\": \"\",\n            \"type\": \"contact\",\n            \"blocked\": false\n          },\n          \"ticket_id\": 903,\n          \"delay_hours\": null,\n          \"created_at\": 1794472860,\n          \"created_at_exact\": \"2026-11-12T08:41:00.000Z\"\n        }\n      ],\n      \"last_non_activity_message\": {\n        \"id\": 40113,\n        \"content\": \"Hi, where is my order?\",\n        \"inbox_id\": 31,\n        \"conversation_id\": 1501,\n        \"message_type\": 0,\n        \"content_type\": \"text\",\n        \"status\": \"sent\",\n        \"status_history\": {\n          \"sent\": 1794472860\n        },\n        \"content_attributes\": {},\n        \"private\": false,\n        \"source_id\": null,\n        \"sender\": {\n          \"id\": 801,\n          \"name\": \"Dana Cohen\",\n          \"email\": \"dana.cohen@example.com\",\n          \"phone_number\": \"+972501234567\",\n          \"identifier\": \"crm-801\",\n          \"thumbnail\": \"\",\n          \"type\": \"contact\",\n          \"blocked\": false\n        },\n        \"ticket_id\": 903,\n        \"delay_hours\": null,\n        \"created_at\": 1794472860,\n        \"created_at_exact\": \"2026-11-12T08:41:00.000Z\"\n      },\n      \"can_reply\": true,\n      \"muted\": false,\n      \"snoozed_until\": null,\n      \"unread_count\": 1,\n      \"has_incoming_messages\": true,\n      \"created_at\": 1794471000,\n      \"timestamp\": 1794472860,\n      \"last_activity_at\": 1794472860,\n      \"first_reply_created_at\": 1794471120,\n      \"waiting_since\": 1794472860,\n      \"agent_last_seen_at\": 1794472859,\n      \"assignee_last_seen_at\": 1794472859,\n      \"contact_last_seen_at\": 0,\n      \"last_incoming_message_time\": \"2026-11-12T08:41:00.000Z\",\n      \"sla_policy_id\": null,\n      \"feature_enabled_sla\": true,\n      \"applied_sla\": null,\n      \"sla_events\": [],\n      \"sla_events_with_distinct_event_type\": [],\n      \"campaign_id\": null,\n      \"pinned\": false\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_unread"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_unread"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_unread"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ids\": [\n    1501,\n    1502\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/bulk_actions/mark_as_unread",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "bulk_actions",
                    "mark_as_unread"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Participants",
          "item": [
            {
              "name": "List Participants",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "participants"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/participants/list-participants)\n\nList the agents who participate in a conversation.\n\nParticipants are agents who follow a conversation and get its\nnotifications, without being the assignee. Assigned agents are added\nautomatically.\n\n| Action | Method | Path | Body |\n| --- | --- | --- | --- |\n| [List participants](https://docs.99digital.co.il/online-api/conversations/participants/list-participants) | `GET` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/participants` | |\n| [Add participants](https://docs.99digital.co.il/online-api/conversations/participants/add-participants) | `POST` | same | `{\"user_ids\": [52]}` |\n| [Replace the participant list](https://docs.99digital.co.il/online-api/conversations/participants/replace-participants) | `PATCH` | same | `{\"user_ids\": [51, 52]}` |\n| [Remove participants](https://docs.99digital.co.il/online-api/conversations/participants/remove-participants) | `DELETE` | same | `{\"user_ids\": [52]}` |\n\n**Authorization**: user token; the caller must be able to see the\nconversation — see\n[Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n\n**Permissions:**\n\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example: list participants**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/participants' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`): an array of [agent objects](https://docs.99digital.co.il/online-api/agents/list-of-all-agents).\nHere there were two agents, IDs `51` and `52`; the first was added\nautomatically when it was assigned. The full objects are under Responses\nbelow.\n\n## Remarks\n\n- On accounts with the new rules system, the agents' personal details are\n  returned only when the caller's role grants **Agents → read** — see the\n  `Agent` object below."
              },
              "response": [
                {
                  "name": "200 · Participants",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"jane.agent@example.com\",\n    \"available_name\": \"Jane Agent\",\n    \"custom_attributes\": {},\n    \"name\": \"Jane Agent\",\n    \"role\": \"General Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": true,\n    \"assignable_to_inbox\": [\n      31,\n      32,\n      33\n    ],\n    \"new_role\": \"General Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972541234567\",\n    \"email1\": null,\n    \"create_time\": 1790000000\n  },\n  {\n    \"id\": 52,\n    \"account_id\": 12,\n    \"availability_status\": \"offline\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"dana.levi@example.com\",\n    \"available_name\": \"Dana Levi\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    },\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": false,\n    \"assignable_to_inbox\": [\n      31,\n      32\n    ],\n    \"new_role\": \"Shift Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": null,\n    \"phone1\": \"+972507654321\",\n    \"email1\": null,\n    \"create_time\": 1794470400\n  }\n]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Add Participants",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "participants"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/participants/add-participants)\n\nAdd agents as participants of a conversation.\n\nParticipants are agents who follow a conversation and get its\nnotifications, without being the assignee. Assigned agents are added\nautomatically.\n\n| Action | Method | Path | Body |\n| --- | --- | --- | --- |\n| [List participants](https://docs.99digital.co.il/online-api/conversations/participants/list-participants) | `GET` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/participants` | |\n| [Add participants](https://docs.99digital.co.il/online-api/conversations/participants/add-participants) | `POST` | same | `{\"user_ids\": [52]}` |\n| [Replace the participant list](https://docs.99digital.co.il/online-api/conversations/participants/replace-participants) | `PATCH` | same | `{\"user_ids\": [51, 52]}` |\n| [Remove participants](https://docs.99digital.co.il/online-api/conversations/participants/remove-participants) | `DELETE` | same | `{\"user_ids\": [52]}` |\n\n**Authorization**: user token; the caller must be able to see the\nconversation — see\n[Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n\n**Permissions:**\n\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `user_ids` | integer[] | Yes | Agent IDs. The agents to add. |\n\n**Example: add participants**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/participants' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"user_ids\": [52] }'\n```\n\nResponse (`200 OK`): only the **newly added** participants, as\n[agent objects](https://docs.99digital.co.il/online-api/agents/list-of-all-agents). Agents who were\nalready participants are skipped, so the list can be `[]` — for example\nwhen agent 52 was already a participant."
              },
              "response": [
                {
                  "name": "200 · Added",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 52,\n    \"account_id\": 12,\n    \"availability_status\": \"offline\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"dana.levi@example.com\",\n    \"available_name\": \"Dana Levi\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    },\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": false,\n    \"assignable_to_inbox\": [\n      31,\n      32\n    ],\n    \"new_role\": \"Shift Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": null,\n    \"phone1\": \"+972507654321\",\n    \"email1\": null,\n    \"create_time\": 1794470400\n  }\n]"
                },
                {
                  "name": "200 · Already participants",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Replace Participants",
              "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/participants/replace-participants)\n\nReplace the participant list of a conversation.\n\nParticipants are agents who follow a conversation and get its\nnotifications, without being the assignee. Assigned agents are added\nautomatically.\n\n| Action | Method | Path | Body |\n| --- | --- | --- | --- |\n| [List participants](https://docs.99digital.co.il/online-api/conversations/participants/list-participants) | `GET` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/participants` | |\n| [Add participants](https://docs.99digital.co.il/online-api/conversations/participants/add-participants) | `POST` | same | `{\"user_ids\": [52]}` |\n| [Replace the participant list](https://docs.99digital.co.il/online-api/conversations/participants/replace-participants) | `PATCH` | same | `{\"user_ids\": [51, 52]}` |\n| [Remove participants](https://docs.99digital.co.il/online-api/conversations/participants/remove-participants) | `DELETE` | same | `{\"user_ids\": [52]}` |\n\n**Authorization**: user token; the caller must be able to see the\nconversation — see\n[Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n\n**Permissions:**\n\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `user_ids` | integer[] | Yes | Agent IDs. The new participants: every other participant is removed, and `[]` removes them all. |\n\n**Example: replace**\n\n```bash\ncurl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/participants' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"user_ids\": [] }'\n```\n\nResponse (`200 OK`): the full participant list after the change (`[]`\nhere).",
              "item": [
                {
                  "name": "Replace the list",
                  "request": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    51\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    },
                    "description": "Jane Agent becomes the only participant.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/participants/replace-participants)"
                  },
                  "response": [
                    {
                      "name": "200 · Replaced",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": [\n    51\n  ]\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "[\n  {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"jane.agent@example.com\",\n    \"available_name\": \"Jane Agent\",\n    \"custom_attributes\": {},\n    \"name\": \"Jane Agent\",\n    \"role\": \"General Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": true,\n    \"assignable_to_inbox\": [\n      31,\n      32,\n      33\n    ],\n    \"new_role\": \"General Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972541234567\",\n    \"email1\": null,\n    \"create_time\": 1790000000\n  }\n]"
                    },
                    {
                      "name": "200 · Emptied",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": [\n    51\n  ]\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "[]"
                    },
                    {
                      "name": "401 · Invalid token",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": [\n    51\n  ]\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                    },
                    {
                      "name": "401 · Another account",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": [\n    51\n  ]\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                    },
                    {
                      "name": "403 · No permission",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": [\n    51\n  ]\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                    },
                    {
                      "name": "403 · Agent bot",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": [\n    51\n  ]\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                    },
                    {
                      "name": "404 Not Found",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": [\n    51\n  ]\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Not Found",
                      "code": 404,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                    }
                  ]
                },
                {
                  "name": "Remove everyone",
                  "request": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": []\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    },
                    "description": "Remove every participant.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/participants/replace-participants)"
                  },
                  "response": [
                    {
                      "name": "200 · Replaced",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": []\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "[\n  {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"jane.agent@example.com\",\n    \"available_name\": \"Jane Agent\",\n    \"custom_attributes\": {},\n    \"name\": \"Jane Agent\",\n    \"role\": \"General Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": true,\n    \"assignable_to_inbox\": [\n      31,\n      32,\n      33\n    ],\n    \"new_role\": \"General Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972541234567\",\n    \"email1\": null,\n    \"create_time\": 1790000000\n  }\n]"
                    },
                    {
                      "name": "200 · Emptied",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": []\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "[]"
                    },
                    {
                      "name": "401 · Invalid token",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": []\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                    },
                    {
                      "name": "401 · Another account",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": []\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                    },
                    {
                      "name": "403 · No permission",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": []\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                    },
                    {
                      "name": "403 · Agent bot",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": []\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Forbidden",
                      "code": 403,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                    },
                    {
                      "name": "404 Not Found",
                      "originalRequest": {
                        "method": "PATCH",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"user_ids\": []\n}",
                          "options": {
                            "raw": {
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                          "host": [
                            "{{base_url}}"
                          ],
                          "path": [
                            "accounts",
                            "{{account_id}}",
                            "conversations",
                            "{{conversation_id}}",
                            "participants"
                          ]
                        }
                      },
                      "status": "Not Found",
                      "code": 404,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                    }
                  ]
                }
              ]
            },
            {
              "name": "Remove Participants",
              "request": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "participants"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/conversations/participants/remove-participants)\n\nRemove agents from a conversation's participants.\n\nParticipants are agents who follow a conversation and get its\nnotifications, without being the assignee. Assigned agents are added\nautomatically.\n\n| Action | Method | Path | Body |\n| --- | --- | --- | --- |\n| [List participants](https://docs.99digital.co.il/online-api/conversations/participants/list-participants) | `GET` | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/participants` | |\n| [Add participants](https://docs.99digital.co.il/online-api/conversations/participants/add-participants) | `POST` | same | `{\"user_ids\": [52]}` |\n| [Replace the participant list](https://docs.99digital.co.il/online-api/conversations/participants/replace-participants) | `PATCH` | same | `{\"user_ids\": [51, 52]}` |\n| [Remove participants](https://docs.99digital.co.il/online-api/conversations/participants/remove-participants) | `DELETE` | same | `{\"user_ids\": [52]}` |\n\n**Authorization**: user token; the caller must be able to see the\nconversation — see\n[Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n\n**Permissions:**\n\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `user_ids` | integer[] | Yes | Agent IDs. The agents to remove. |\n\n**Example: remove**\n\n```bash\ncurl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/participants' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"user_ids\": [52] }'\n```\n\nResponse: `200 OK` with an empty body. To see the list after the change,\nuse [List Participants](https://docs.99digital.co.il/online-api/conversations/participants/list-participants)."
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/participants",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "participants"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Tickets",
      "item": [
        {
          "name": "List Tickets",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "tickets"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/tickets/list-tickets)\n\nReturns all tickets of the conversation, oldest first.\n\n## Tickets\n\nA ticket is one \"case\" inside a conversation. The first ticket opens when the\nconversation is created. It is **closed** when the conversation is resolved,\nand a **new** ticket opens when the conversation is reopened. So one\nlong-lived conversation (for example a WhatsApp thread) can hold many\ntickets. Messages and\n[conversation events](https://docs.99digital.co.il/online-api/conversations/list-conversation-events)\ncarry the `ticket_id` they belong to. Closing a ticket fires the\n`ticket_resolved` [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).\n\nTickets are created and closed automatically; there is no endpoint to create\nor delete one. Through the API you can read tickets and store **custom\nattributes** on them (for example a case type or a refund amount).\n\nAll ticket endpoints are nested under a conversation (`{conversation_id}` is\nthe display ID — see\n[Conversation Basics](https://docs.99digital.co.il/online-api/conversations/conversation-basics)).\n\n**Endpoints in this section**\n\n- `GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets`:\n  [List Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets)\n- `GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}`:\n  [Get Ticket](https://docs.99digital.co.il/online-api/tickets/get-ticket)\n- `GET /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/current`:\n  [Get Current Ticket](https://docs.99digital.co.il/online-api/tickets/get-current-ticket)\n- `PATCH /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}`:\n  [Set Ticket Custom Attributes](https://docs.99digital.co.il/online-api/tickets/set-ticket-custom-attributes)\n- `PUT /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}/destroy_custom_attributes`:\n  [Delete Ticket Custom Attributes](https://docs.99digital.co.il/online-api/tickets/delete-ticket-custom-attributes)\n\n**Authorization (all ticket endpoints)**: user token; the caller must be able\nto see the conversation (see\n[Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n## The ticket object\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `id` | integer | Ticket ID. |\n| `ticket_status` | string | `open` or `closed`. |\n| `initiated_by` | string | Who started the conversation: `user` (the contact), `agent`, `agent_bot`. |\n| `channel_name` | string | Inbox channel type, e.g. `Channel::Api`, `Channel::Whatsapp`. |\n| `created_at` | string | When the ticket opened (ISO 8601). |\n| `resolved_at` | string | When it was closed, or `null`. |\n| `total_time` | integer | Seconds from opening to closing, or `null` while open. |\n| `resolved_by_id`, `resolved_agent_id` | integer | Agent who resolved the conversation, or `null` (e.g. closed by a bot or automation). |\n| `custom_attributes` | object | Your data for this ticket. |\n| `account_id`, `contact_id`, `inbox_id` | integer | Related IDs. |\n| `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). |\n| `updated_at` | string | Last update (ISO 8601). |\n\n## List tickets\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets` |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). The conversation was resolved twice and\nreopened, so it has two closed tickets and one open ticket.\n\n```json\n{\n  \"payload\": [\n    {\n      \"id\": 901,\n      \"channel_name\": \"Channel::Api\",\n      \"initiated_by\": \"user\",\n      \"resolved_at\": \"2026-11-12T08:20:00.000Z\",\n      \"ticket_status\": \"closed\",\n      \"total_time\": 600,\n      \"created_at\": \"2026-11-12T08:10:00.000Z\",\n      \"updated_at\": \"2026-11-12T08:20:00.004Z\",\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 1501,\n      \"inbox_id\": 31,\n      \"resolved_agent_id\": 51,\n      \"resolved_by_id\": 51,\n      \"custom_attributes\": {}\n    },\n    {\n      \"id\": 902,\n      \"channel_name\": \"Channel::Api\",\n      \"initiated_by\": \"user\",\n      \"resolved_at\": \"2026-11-12T08:35:00.000Z\",\n      \"ticket_status\": \"closed\",\n      \"total_time\": 300,\n      \"created_at\": \"2026-11-12T08:30:00.000Z\",\n      \"updated_at\": \"2026-11-12T08:35:00.004Z\",\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 1501,\n      \"inbox_id\": 31,\n      \"resolved_agent_id\": null,\n      \"resolved_by_id\": null,\n      \"custom_attributes\": {}\n    },\n    {\n      \"id\": 903,\n      \"channel_name\": \"Channel::Api\",\n      \"initiated_by\": \"user\",\n      \"resolved_at\": null,\n      \"ticket_status\": \"open\",\n      \"total_time\": null,\n      \"created_at\": \"2026-11-12T08:40:00.000Z\",\n      \"updated_at\": \"2026-11-12T08:40:00.000Z\",\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 1501,\n      \"inbox_id\": 31,\n      \"resolved_agent_id\": null,\n      \"resolved_by_id\": null,\n      \"custom_attributes\": {}\n    }\n  ]\n}\n```\n\nTo store your own data on a ticket, use\n[Set Ticket Custom Attributes](https://docs.99digital.co.il/online-api/tickets/set-ticket-custom-attributes)."
          },
          "response": [
            {
              "name": "200 · Three tickets",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"id\": 901,\n      \"channel_name\": \"Channel::Api\",\n      \"initiated_by\": \"user\",\n      \"resolved_at\": \"2026-11-12T08:20:00.000Z\",\n      \"ticket_status\": \"closed\",\n      \"total_time\": 600,\n      \"created_at\": \"2026-11-12T08:10:00.000Z\",\n      \"updated_at\": \"2026-11-12T08:20:00.004Z\",\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 1501,\n      \"inbox_id\": 31,\n      \"resolved_agent_id\": 51,\n      \"resolved_by_id\": 51,\n      \"custom_attributes\": {}\n    },\n    {\n      \"id\": 902,\n      \"channel_name\": \"Channel::Api\",\n      \"initiated_by\": \"user\",\n      \"resolved_at\": \"2026-11-12T08:35:00.000Z\",\n      \"ticket_status\": \"closed\",\n      \"total_time\": 300,\n      \"created_at\": \"2026-11-12T08:30:00.000Z\",\n      \"updated_at\": \"2026-11-12T08:35:00.004Z\",\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 1501,\n      \"inbox_id\": 31,\n      \"resolved_agent_id\": null,\n      \"resolved_by_id\": null,\n      \"custom_attributes\": {}\n    },\n    {\n      \"id\": 903,\n      \"channel_name\": \"Channel::Api\",\n      \"initiated_by\": \"user\",\n      \"resolved_at\": null,\n      \"ticket_status\": \"open\",\n      \"total_time\": null,\n      \"created_at\": \"2026-11-12T08:40:00.000Z\",\n      \"updated_at\": \"2026-11-12T08:40:00.000Z\",\n      \"account_id\": 12,\n      \"contact_id\": 801,\n      \"conversation_id\": 1501,\n      \"inbox_id\": 31,\n      \"resolved_agent_id\": null,\n      \"resolved_by_id\": null,\n      \"custom_attributes\": {}\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Get Current Ticket",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code >= 200 && pm.response.code < 300) {",
                  "  let body;",
                  "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                  "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                  "  const ticket_id = pick([\"id\"]);",
                  "  if (ticket_id !== undefined && ticket_id !== null) {",
                  "    pm.collectionVariables.set(\"ticket_id\", String(ticket_id));",
                  "  }",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/current",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "tickets",
                "current"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/tickets/get-current-ticket)\n\nReturns the conversation's open ticket.\n\nIf none exists yet, one is created. This works only while the conversation\nstatus is `open` (Bot). See [List Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets)\nfor what a ticket is.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/current` |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/current' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). Here `conversation_id` is the **internal**\nconversation ID (`2301`), not the display ID (`1501`).\n\n```json\n{\n  \"id\": 903,\n  \"account_id\": 12,\n  \"inbox_id\": 31,\n  \"channel_name\": \"Channel::Api\",\n  \"conversation_id\": 2301,\n  \"contact_id\": 801,\n  \"initiated_by\": \"user\",\n  \"resolved_by_id\": null,\n  \"total_time\": null,\n  \"resolved_at\": null,\n  \"resolved_agent_id\": null,\n  \"ticket_status\": \"open\",\n  \"created_at\": \"2026-11-12T08:40:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:40:00.000Z\",\n  \"custom_attributes\": {}\n}\n```\n\n> **Warning:** **When the conversation is not `open`** (for example `pending` / Manual, or\n> `resolved`) the response is still HTTP **`200`**, with an error body:\n> \n> ```json\n> {\n>   \"error\": \"No open conversation\",\n>   \"status\": \"unprocessable_entity\"\n> }\n> ```\n> \n> Check for the `error` key instead of relying on the HTTP status. To find the\n> open ticket of a Manual conversation, use\n> [List Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets) and pick the one with\n> `ticket_status: \"open\"`."
          },
          "response": [
            {
              "name": "200 · Open ticket",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/current",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "current"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 903,\n  \"account_id\": 12,\n  \"inbox_id\": 31,\n  \"channel_name\": \"Channel::Api\",\n  \"conversation_id\": 2301,\n  \"contact_id\": 801,\n  \"initiated_by\": \"user\",\n  \"resolved_by_id\": null,\n  \"total_time\": null,\n  \"resolved_at\": null,\n  \"resolved_agent_id\": null,\n  \"ticket_status\": \"open\",\n  \"created_at\": \"2026-11-12T08:40:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:40:00.000Z\",\n  \"custom_attributes\": {}\n}"
            },
            {
              "name": "200 · Conversation not open",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/current",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "current"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"No open conversation\",\n  \"status\": \"unprocessable_entity\"\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/current",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "current"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/current",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "current"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/current",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "current"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/current",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "current"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/current",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "current"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Get Ticket",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "tickets",
                "{{ticket_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/tickets/get-ticket)\n\nGet one ticket of a conversation.\n\nThe ticket must belong to the conversation in the path. See\n[List Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets) for what a ticket is.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}` |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n| `ticket_id` | integer | Yes | Ticket ID (must belong to this conversation). |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/901' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{\n  \"id\": 901,\n  \"channel_name\": \"Channel::Api\",\n  \"initiated_by\": \"user\",\n  \"resolved_at\": \"2026-11-12T08:20:00.000Z\",\n  \"ticket_status\": \"closed\",\n  \"total_time\": 600,\n  \"created_at\": \"2026-11-12T08:10:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:20:00.004Z\",\n  \"account_id\": 12,\n  \"contact_id\": 801,\n  \"conversation_id\": 1501,\n  \"inbox_id\": 31,\n  \"resolved_agent_id\": 51,\n  \"resolved_by_id\": 51,\n  \"custom_attributes\": {}\n}\n```\n\n**Error responses**: `404 {\"error\": \"Resource could not be found\"}`."
          },
          "response": [
            {
              "name": "200 · Open ticket",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 903,\n  \"channel_name\": \"Channel::Api\",\n  \"initiated_by\": \"user\",\n  \"resolved_at\": null,\n  \"ticket_status\": \"open\",\n  \"total_time\": null,\n  \"created_at\": \"2026-11-12T08:40:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:40:00.000Z\",\n  \"account_id\": 12,\n  \"contact_id\": 801,\n  \"conversation_id\": 1501,\n  \"inbox_id\": 31,\n  \"resolved_agent_id\": null,\n  \"resolved_by_id\": null,\n  \"custom_attributes\": {}\n}"
            },
            {
              "name": "200 · Closed ticket",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 901,\n  \"channel_name\": \"Channel::Api\",\n  \"initiated_by\": \"user\",\n  \"resolved_at\": \"2026-11-12T08:20:00.000Z\",\n  \"ticket_status\": \"closed\",\n  \"total_time\": 600,\n  \"created_at\": \"2026-11-12T08:10:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:20:00.004Z\",\n  \"account_id\": 12,\n  \"contact_id\": 801,\n  \"conversation_id\": 1501,\n  \"inbox_id\": 31,\n  \"resolved_agent_id\": 51,\n  \"resolved_by_id\": 51,\n  \"custom_attributes\": {}\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Set Ticket Custom Attributes",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "tickets",
                "{{ticket_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/tickets/set-ticket-custom-attributes)\n\nReplaces the ticket's custom attributes with the given object.\n\nThe ticket's `custom_attributes` are **replaced**: keys you leave out are\nremoved, so send the full object. To remove only some keys, use\n[Delete Ticket Custom Attributes](https://docs.99digital.co.il/online-api/tickets/delete-ticket-custom-attributes).\nSee [List Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets) for what a ticket is.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `PATCH` (or `PUT`) |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}` |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n| `ticket_id` | integer | Yes | Ticket ID (must belong to this conversation). |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `custom_attributes` | object | Yes | Key/value pairs to store on the ticket. Keys not sent are removed. |\n\n**Example request**\n\n```bash\ncurl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/903' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"custom_attributes\": { \"case_type\": \"refund\", \"order_id\": \"A-1001\", \"refund_amount\": 85 } }'\n```\n\n**Example response** (`200 OK`). `conversation_id` is the internal ID, not the\ndisplay ID used in the path.\n\n```json\n{\n  \"conversation_id\": 2301,\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  },\n  \"id\": 903,\n  \"account_id\": 12,\n  \"inbox_id\": 31,\n  \"channel_name\": \"Channel::Api\",\n  \"contact_id\": 801,\n  \"initiated_by\": \"user\",\n  \"resolved_by_id\": null,\n  \"total_time\": null,\n  \"resolved_at\": null,\n  \"resolved_agent_id\": null,\n  \"ticket_status\": \"open\",\n  \"created_at\": \"2026-11-12T08:40:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:55:00.000Z\"\n}\n```"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  },\n  \"id\": 903,\n  \"account_id\": 12,\n  \"inbox_id\": 31,\n  \"channel_name\": \"Channel::Api\",\n  \"conversation_id\": 2301,\n  \"contact_id\": 801,\n  \"initiated_by\": \"user\",\n  \"resolved_by_id\": null,\n  \"total_time\": null,\n  \"resolved_at\": null,\n  \"resolved_agent_id\": null,\n  \"ticket_status\": \"open\",\n  \"created_at\": \"2026-11-12T08:40:00.000Z\",\n  \"updated_at\": \"2026-11-12T08:55:00.000Z\"\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\",\n    \"refund_amount\": 85\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Delete Ticket Custom Attributes",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"custom_attributes\": [\n    \"refund_amount\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}/destroy_custom_attributes",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "tickets",
                "{{ticket_id}}",
                "destroy_custom_attributes"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/tickets/delete-ticket-custom-attributes)\n\nRemoves the given keys from the ticket's custom attributes.\n\nThe other keys of the ticket's `custom_attributes` are kept. To replace them all, use\n[Set Ticket Custom Attributes](https://docs.99digital.co.il/online-api/tickets/set-ticket-custom-attributes).\nSee [List Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets) for what a ticket is.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `PUT` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}/destroy_custom_attributes` |\n\n**Permissions:**\n\n- User token: any agent who can see the conversation — see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n| `ticket_id` | integer | Yes | Ticket ID (must belong to this conversation). |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `custom_attributes` | string[] | Yes | Keys to remove. |\n\n**Example request**\n\n```bash\ncurl -X PUT 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/903/destroy_custom_attributes' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"custom_attributes\": [\"refund_amount\"] }'\n```\n\n**Example response** (`200 OK`): the ticket (same shape as\n[Set Ticket Custom Attributes](https://docs.99digital.co.il/online-api/tickets/set-ticket-custom-attributes))\nwith `\"custom_attributes\": {\"case_type\": \"refund\", \"order_id\": \"A-1001\"}`. In the\nresponse, `conversation_id` is the conversation's **internal** ID, not the\ndisplay ID used in the path."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"refund_amount\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"custom_attributes\": {\n    \"case_type\": \"refund\",\n    \"order_id\": \"A-1001\"\n  },\n  \"id\": 903,\n  \"account_id\": 12,\n  \"inbox_id\": 31,\n  \"channel_name\": \"Channel::Api\",\n  \"conversation_id\": 2301,\n  \"contact_id\": 801,\n  \"initiated_by\": \"user\",\n  \"resolved_by_id\": null,\n  \"total_time\": null,\n  \"resolved_at\": null,\n  \"resolved_agent_id\": null,\n  \"ticket_status\": \"open\",\n  \"created_at\": \"2026-11-12T08:40:00.000Z\",\n  \"updated_at\": \"2026-11-12T09:00:00.000Z\"\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"refund_amount\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"refund_amount\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"refund_amount\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"refund_amount\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"custom_attributes\": [\n    \"refund_amount\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/tickets/{{ticket_id}}/destroy_custom_attributes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "tickets",
                    "{{ticket_id}}",
                    "destroy_custom_attributes"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Forms",
      "item": [
        {
          "name": "List Forms",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code >= 200 && pm.response.code < 300) {",
                  "  let body;",
                  "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                  "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                  "  const form_id = pick([0,\"publicId\"]);",
                  "  if (form_id !== undefined && form_id !== null) {",
                  "    pm.collectionVariables.set(\"form_id\", String(form_id));",
                  "  }",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/forms",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "forms"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "published",
                  "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/forms/list-forms)\n\nRetrieve the forms in an account.\n\n**Settings:**\n\n| URL | Method |\n| --- | --- |\n| `https://online.99digital.co.il/api/v1/accounts/{account_id}/forms` | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key; access depends on the user's permissions. |\n\n**Permissions:**\n\nThese apply to every Forms endpoint.\n\n- **User token**: on accounts with the new rules system, forms and fields need\n  **Forms → read**; submissions need **Forms Responses → read**. Accounts on\n  the legacy role system are not restricted.\n- **Agent-bot token**: all form endpoints are allowed (for example from Studio\n  flows).\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | Account identifier. | Yes |\n\n**Query Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `status` | Only forms with this status: `published`, `draft` or `archived`. Only `published` forms can be turned into links. | No |\n\n**Request Example:**\n\n```\ncurl -s -H \"api_access_token: <YOUR_API_ACCESS_TOKEN>\" \"https://online.99digital.co.il/api/v1/accounts/12/forms\"\n\ncurl -s -H \"api_access_token: <YOUR_API_ACCESS_TOKEN>\" \"https://online.99digital.co.il/api/v1/accounts/12/forms?status=published\"\n```\n\n**Response:**\n\n```\n[\n  {\n    \"publicId\": \"45\",\n    \"accountId\": \"2c7e9a4b-1d3f-4b6a-8e5c-0f9d8b7a6c51\",\n    \"name\": \"Event registration\",\n    \"status\": \"published\",\n    \"submissionCount\": 12,\n    \"updatedAt\": \"2026-11-12T08:00:00.000Z\"\n  },\n  {\n    \"publicId\": \"46\",\n    \"accountId\": \"2c7e9a4b-1d3f-4b6a-8e5c-0f9d8b7a6c51\",\n    \"name\": \"Customer feedback\",\n    \"status\": \"published\",\n    \"submissionCount\": 3,\n    \"updatedAt\": \"2026-11-10T14:47:31.886Z\"\n  }\n]\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| Root array | Form summaries. |\n| `publicId` | Public form identifier (string). This is the form ID to use as `{form_id}` in all other Forms endpoints. |\n| `accountId` | Account identifier (string): the account's ID in the Forms app. |\n| `name` | Form name. |\n| `status` | Form status. Enum: `draft`, `published`, `archived`. |\n| `submissionCount` | Number of submissions reported for the form. |\n| `updatedAt` | Last update timestamp in ISO 8601 format. |\n\n## Forms\n\nForms are built in the **99digital Forms** app and connected to the account\nthrough the Forms integration. Through this API you can list the account's\nforms, read their fields and submissions, and generate personal or public\n**form links** to send to contacts. When a contact submits a form, the\nsubmission is linked to the contact and conversation, and the\n`form_submitted` [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events) fires.\nGenerating a link fires `form_link_generated`.\n\nForm IDs in all paths are the form's **`publicId`** (as returned by\n*List Forms*), not the Forms app's internal ID. The responses come from the\nForms app and are passed through as-is; their timestamps are ISO 8601\nstrings.\n\n**Endpoints in this section**\n\n- `GET /api/v1/accounts/{account_id}/forms`: [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms)\n- `GET /api/v1/accounts/{account_id}/forms/{form_id}`: [Get a Form](https://docs.99digital.co.il/online-api/forms/get-a-form)\n- `GET /api/v1/accounts/{account_id}/forms/{form_id}/fields`: [List Form Fields](https://docs.99digital.co.il/online-api/forms/list-form-fields)\n- `GET /api/v1/accounts/{account_id}/forms/{form_id}/submissions`: [List Form Submissions](https://docs.99digital.co.il/online-api/forms/list-form-submissions)\n- `GET /api/v1/accounts/{account_id}/forms/{form_id}/submissions/{submission_id}`: [Get Submission](https://docs.99digital.co.il/online-api/forms/get-submission)\n- `POST /api/v1/accounts/{account_id}/forms/{form_id}/links`: [Generate Form Link](https://docs.99digital.co.il/online-api/forms/generate-form-link)\n\n**Common error responses (all form endpoints)**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `403` | Forms is not enabled for the account. | `{\"error\": \"Forms is not enabled for this account\"}` |\n| `503` | The Forms integration is not configured on the server. | `{\"error\": \"Forms is not configured on this server\"}` |\n| `404` | Form or submission not found in the Forms app. | `{\"error\": \"Not found\"}` |\n| `502` | The Forms app returned an error. | `{\"error\": \"Failed to retrieve forms\"}` (message depends on the endpoint) |\n| `500` | Unexpected error talking to the Forms app. | `{\"error\": \"<context>: <details>\"}` |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"publicId\": \"45\",\n    \"accountId\": \"2c7e9a4b-1d3f-4b6a-8e5c-0f9d8b7a6c51\",\n    \"name\": \"Event registration\",\n    \"status\": \"published\",\n    \"submissionCount\": 12,\n    \"updatedAt\": \"2026-11-12T08:00:00.000Z\"\n  },\n  {\n    \"publicId\": \"46\",\n    \"accountId\": \"2c7e9a4b-1d3f-4b6a-8e5c-0f9d8b7a6c51\",\n    \"name\": \"Customer feedback\",\n    \"status\": \"published\",\n    \"submissionCount\": 3,\n    \"updatedAt\": \"2026-11-10T14:47:31.886Z\"\n  }\n]"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · Forms not enabled",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not enabled for this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Not found\"\n}"
            },
            {
              "name": "500 Internal Server Error",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"<context>: <details>\"\n}"
            },
            {
              "name": "502 Bad Gateway",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Bad Gateway",
              "code": 502,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Failed to retrieve forms\"\n}"
            },
            {
              "name": "503 Service Unavailable",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "published",
                      "description": "Return only the forms with this status. Only `published` forms can be turned into links.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Service Unavailable",
              "code": 503,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not configured on this server\"\n}"
            }
          ]
        },
        {
          "name": "Get a Form",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "forms",
                "{{form_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/forms/get-a-form)\n\nRetrieve a form and its field definitions.\n\n**Settings:**\n\n| URL | Method |\n| --- | --- |\n| `https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}` | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key; access depends on the user's permissions. |\n\n**Permissions:**\n\n- User token: on accounts with the new rules system, **Forms → read**.\n  Accounts on the legacy role system are not restricted.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | Account identifier. | Yes |\n| `form_id` | Form identifier in the path: the form's `publicId`, as returned by [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms). | Yes |\n\n**Request Example:**\n\n```\ncurl -s -H \"api_access_token: <YOUR_API_ACCESS_TOKEN>\" \"https://online.99digital.co.il/api/v1/accounts/12/forms/45\"\n```\n\n**Response:**\n\nThis abbreviated example shows three of the form's fields.\n\n```\n{\n  \"id\": \"45\",\n  \"name\": \"Event registration\",\n  \"description\": null,\n  \"status\": \"published\",\n  \"created_at\": \"2026-11-05T09:30:12.019Z\",\n  \"updated_at\": \"2026-11-12T08:00:00.000Z\",\n  \"fields\": [\n    {\"id\": \"text\", \"type\": \"text\", \"name\": \"text\", \"label\": \"Full name\", \"required\": true},\n    {\"id\": \"number\", \"type\": \"number\", \"name\": \"number\", \"label\": \"Age\", \"required\": false},\n    {\"id\": \"email\", \"type\": \"email\", \"name\": \"email\", \"label\": \"Email\", \"required\": true}\n  ]\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | Form identifier (string): the form's `publicId`. |\n| `name` | Form name. |\n| `description` | Form description, or `null`. |\n| `status` | Form status. Enum: `draft`, `published`, `archived`. Only `published` forms can be turned into links. |\n| `created_at` | Creation timestamp in ISO 8601 format. |\n| `updated_at` | Last update timestamp in ISO 8601 format. |\n| `fields` | Array of field definitions. |\n| `fields[].id` | Field identifier; corresponds to `answers[].field_id` when the field is answered (see [Get Submission](https://docs.99digital.co.il/online-api/forms/get-submission)). |\n| `fields[].type` | Field type. Enum: `text`, `email`, `phone`, `number`, `textarea`, `radio`, `checkbox`, `multi_select`, `select`, `date`, `time`, `datetime`, `number_rating`, `slider`, `file_upload`, `star_rating`. |\n| `fields[].name` | Field name. |\n| `fields[].label` | Display label. |\n| `fields[].required` | Boolean indicating whether the field is required. |\n\nThe response comes from the 99digital Forms app as it is. How forms work, and\nthe errors every Forms endpoint can return, are explained in\n[List Forms](https://docs.99digital.co.il/online-api/forms/list-forms)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"45\",\n  \"name\": \"Event registration\",\n  \"description\": null,\n  \"status\": \"published\",\n  \"created_at\": \"2026-11-05T09:30:12.019Z\",\n  \"updated_at\": \"2026-11-12T08:00:00.000Z\",\n  \"fields\": [\n    {\n      \"id\": \"text\",\n      \"type\": \"text\",\n      \"name\": \"text\",\n      \"label\": \"Full name\",\n      \"required\": true\n    },\n    {\n      \"id\": \"number\",\n      \"type\": \"number\",\n      \"name\": \"number\",\n      \"label\": \"Age\",\n      \"required\": false\n    },\n    {\n      \"id\": \"email\",\n      \"type\": \"email\",\n      \"name\": \"email\",\n      \"label\": \"Email\",\n      \"required\": true\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · Forms not enabled",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not enabled for this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Not found\"\n}"
            },
            {
              "name": "500 Internal Server Error",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}"
                  ]
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"<context>: <details>\"\n}"
            },
            {
              "name": "503 Service Unavailable",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}"
                  ]
                }
              },
              "status": "Service Unavailable",
              "code": 503,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not configured on this server\"\n}"
            }
          ]
        },
        {
          "name": "List Form Fields",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "forms",
                "{{form_id}}",
                "fields"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/forms/list-form-fields)\n\nReturns the form's fields in a normalised format, as used by automation rules.\n\nThis is the format of the \"Form response\" conditions of automation rules, for\nthe `form_response_submitted` event. For the fields as the form defines them,\nuse [Get a Form](https://docs.99digital.co.il/online-api/forms/get-a-form). How forms work, and the errors\nevery Forms endpoint can return, are explained in\n[List Forms](https://docs.99digital.co.il/online-api/forms/list-forms).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/forms/{form_id}/fields` |\n\n**Permissions:**\n\n- User token: on accounts with the new rules system, **Forms → read**.\n  Accounts on the legacy role system are not restricted.\n- Agent-bot token: allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `form_id` | string | Yes | Form `publicId`. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/forms/45/fields' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{\n  \"fields\": [\n    { \"key\": \"text\", \"name\": \"Full name\", \"type\": \"plain_text\", \"options\": [] },\n    { \"key\": \"number\", \"name\": \"Age\", \"type\": \"number\", \"options\": [] },\n    { \"key\": \"email\", \"name\": \"Email\", \"type\": \"plain_text\", \"options\": [] }\n  ]\n}\n```\n\n`type` is the automation-condition type (`plain_text`, `number`, `list`, ...);\n`options` lists the choices of select-type fields.\n\n**Error responses**: the common Forms errors (`403`, `404`, `500`, `502`,\n`503`) listed in [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "fields"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"fields\": [\n    {\n      \"key\": \"text\",\n      \"name\": \"Full name\",\n      \"type\": \"plain_text\",\n      \"options\": []\n    },\n    {\n      \"key\": \"number\",\n      \"name\": \"Age\",\n      \"type\": \"number\",\n      \"options\": []\n    },\n    {\n      \"key\": \"email\",\n      \"name\": \"Email\",\n      \"type\": \"plain_text\",\n      \"options\": []\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "fields"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "fields"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · Forms not enabled",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "fields"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not enabled for this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "fields"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "fields"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Not found\"\n}"
            },
            {
              "name": "500 Internal Server Error",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "fields"
                  ]
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"<context>: <details>\"\n}"
            },
            {
              "name": "503 Service Unavailable",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "fields"
                  ]
                }
              },
              "status": "Service Unavailable",
              "code": 503,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not configured on this server\"\n}"
            }
          ]
        },
        {
          "name": "Generate Form Link",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/forms/generate-form-link)\n\nGenerate a link for an existing conversation or for a contact on a new conversation screen.\n\n**Settings:**\n\n| URL | Method |\n| --- | --- |\n| `https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}/links` | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key; access depends on the user's permissions. |\n| `Content-Type` | `application/json` |\n\n**Permissions:**\n\n- User token: on accounts with the new rules system, **Forms → read**.\n  Accounts on the legacy role system are not restricted.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | Account identifier. | Yes |\n| `form_id` | Form identifier in the path: the form's `publicId`, as returned by [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms). | Yes |\n\n**Request Body:**\n\nFor an existing conversation, `conversation_id` is the conversation **display\nID**:\n\n```\n{\"conversation_id\": 1501}\n```\n\nFor a contact who may not exist yet:\n\n```\n{\"inbox_id\": 32, \"contact\": {\"email\": \"dana.cohen@example.com\", \"name\": \"Dana Cohen\"}}\n```\n\n| Parameter | Description |\n| --- | --- |\n| `conversation_id` | Conversation display ID (conversation link). |\n| `inbox_id` | Inbox identifier. Required for a contact link; optional for a public link, where it records which inbox the link came from. |\n| `contact.phone_number` | Contact phone (contact link). Phone or email is required for a contact link. |\n| `contact.email` | Contact email address (contact link). |\n| `contact.name` | Contact name, used for a new contact (contact link). |\n\n**Request Examples:**\n\n```\ncurl -s -X POST -H \"api_access_token: <YOUR_API_ACCESS_TOKEN>\" -H \"Content-Type: application/json\" \\\n  \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/links\" \\\n  -d '{\"conversation_id\": 1501}'\n\ncurl -s -X POST -H \"api_access_token: <YOUR_API_ACCESS_TOKEN>\" -H \"Content-Type: application/json\" \\\n  \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/links\" \\\n  -d '{\"inbox_id\": 32, \"contact\": {\"email\": \"dana.cohen@example.com\", \"name\": \"Dana Cohen\"}}'\n```\n\n**Response:**\n\n```\n{\"form_link\": \"https://forms.example.com/forms/45/answer?t=X7kP2mQ9\"}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `form_link` | Generated URL for opening the form. Its domain is the Forms app's; `t` is the link's own token. |\n\n## Kinds of link\n\nCreates a link to fill in the form. What the body contains decides which kind\nof link you get:\n\n1. **Conversation link** (`conversation_id`): tied to an existing conversation\n   and its contact. The submission appears in that conversation.\n2. **Contact link** (`contact` + `inbox_id`): the contact is found by\n   email/phone, or created if missing. Use this before a conversation exists,\n   for example together with an outbound WhatsApp template sent with\n   [Add Conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation).\n3. **Public link** (neither): an anonymous link that anyone can use.\n   `inbox_id` is optional and records which inbox it came from.\n\nThe form must be **published**. Each link has a unique token. Generating a\nlink fires the `form_link_generated`\n[webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events).\n\n**Example: link for a contact (by phone) in an inbox**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/forms/45/links' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"inbox_id\": 32, \"contact\": { \"phone_number\": \"+972501234567\", \"name\": \"Dana Cohen\" } }'\n```\n\nResponse (`200 OK`):\n\n```json\n{ \"form_link\": \"https://forms.example.com/forms/45/answer?t=X7kP2mQ9\" }\n```\n\n**Example: public link**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/forms/45/links' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{}'\n```\n\nResponse (`200 OK`):\n\n```json\n{ \"form_link\": \"https://forms.example.com/forms/45/answer?t=Q4nR8sT2\" }\n```\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `400` | `contact` sent without email or phone. | `{\"error\": \"Missing email or phone_number\"}` |\n| `404` | `conversation_id` not found. | `{\"error\": \"Conversation not found\"}` |\n| `404` | The conversation has no contact. | `{\"error\": \"Contact not found for conversation\"}` |\n| `404` | `inbox_id` not found (contact link). | `{\"error\": \"Inbox not found\"}` |\n| `502` | The form is not published (draft/archived), or the Forms app failed. | `{\"error\": \"Failed to generate form link\"}` |\n\nThe common Forms errors are listed in [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms).\n\n## Remarks\n\n- A form that is not published (a draft or archived form) is answered with\n  `502`, the same as a failure of the Forms app. Check the form's `status`\n  with [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms) first.",
          "item": [
            {
              "name": "Conversation link",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"conversation_id\": 1501\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "links"
                  ]
                },
                "description": "A link for an existing conversation and its contact.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/forms/generate-form-link)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"form_link\": \"https://forms.example.com/forms/45/answer?t=X7kP2mQ9\"\n}"
                },
                {
                  "name": "400 Bad Request",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Missing email or phone_number\"\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · Forms not enabled",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Forms is not enabled for this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 · Form not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Not found\"\n}"
                },
                {
                  "name": "404 · Conversation not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Conversation not found\"\n}"
                },
                {
                  "name": "404 · No contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Contact not found for conversation\"\n}"
                },
                {
                  "name": "404 · Inbox not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Inbox not found\"\n}"
                },
                {
                  "name": "500 Internal Server Error",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"<context>: <details>\"\n}"
                },
                {
                  "name": "502 Bad Gateway",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Failed to generate form link\"\n}"
                },
                {
                  "name": "503 Service Unavailable",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"conversation_id\": 1501\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Forms is not configured on this server\"\n}"
                }
              ]
            },
            {
              "name": "Contact link",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "links"
                  ]
                },
                "description": "A link for a contact, found by phone number or created, in an inbox.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/forms/generate-form-link)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"form_link\": \"https://forms.example.com/forms/45/answer?t=X7kP2mQ9\"\n}"
                },
                {
                  "name": "400 Bad Request",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Missing email or phone_number\"\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · Forms not enabled",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Forms is not enabled for this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 · Form not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Not found\"\n}"
                },
                {
                  "name": "404 · Conversation not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Conversation not found\"\n}"
                },
                {
                  "name": "404 · No contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Contact not found for conversation\"\n}"
                },
                {
                  "name": "404 · Inbox not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Inbox not found\"\n}"
                },
                {
                  "name": "500 Internal Server Error",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"<context>: <details>\"\n}"
                },
                {
                  "name": "502 Bad Gateway",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Failed to generate form link\"\n}"
                },
                {
                  "name": "503 Service Unavailable",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"inbox_id\": 32,\n  \"contact\": {\n    \"phone_number\": \"+972501234567\",\n    \"name\": \"Dana Cohen\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Forms is not configured on this server\"\n}"
                }
              ]
            },
            {
              "name": "Public link",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "links"
                  ]
                },
                "description": "An anonymous link that anyone can use.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/forms/generate-form-link)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"form_link\": \"https://forms.example.com/forms/45/answer?t=X7kP2mQ9\"\n}"
                },
                {
                  "name": "400 Bad Request",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Missing email or phone_number\"\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · Forms not enabled",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Forms is not enabled for this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 · Form not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Not found\"\n}"
                },
                {
                  "name": "404 · Conversation not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Conversation not found\"\n}"
                },
                {
                  "name": "404 · No contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Contact not found for conversation\"\n}"
                },
                {
                  "name": "404 · Inbox not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Inbox not found\"\n}"
                },
                {
                  "name": "500 Internal Server Error",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Internal Server Error",
                  "code": 500,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"<context>: <details>\"\n}"
                },
                {
                  "name": "502 Bad Gateway",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Bad Gateway",
                  "code": 502,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Failed to generate form link\"\n}"
                },
                {
                  "name": "503 Service Unavailable",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/links",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "forms",
                        "{{form_id}}",
                        "links"
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Forms is not configured on this server\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "List Form Submissions",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code >= 200 && pm.response.code < 300) {",
                  "  let body;",
                  "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                  "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                  "  const submission_id = pick([\"data\",0,\"id\"]);",
                  "  if (submission_id !== undefined && submission_id !== null) {",
                  "    pm.collectionVariables.set(\"submission_id\", String(submission_id));",
                  "  }",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "forms",
                "{{form_id}}",
                "submissions"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "The page number, starting at `1`. An invalid value means page 1.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/forms/list-form-submissions)\n\nRetrieve submission summaries for a form, newest first, 50 per page.\n\n**Settings:**\n\n| URL | Method |\n| --- | --- |\n| `https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}/submissions` | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key; access depends on the user's permissions. |\n\n**Permissions:**\n\n- User token: on accounts with the new rules system, **Forms Responses →\n  read**. Accounts on the legacy role system are not restricted.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | Account identifier. | Yes |\n| `form_id` | Form identifier in the path: the form's `publicId`, as returned by [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms). | Yes |\n\n**Query Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `page` | Page number, starting at 1. Invalid values mean page 1. | No |\n\n**Request Example:**\n\n```\ncurl -s -H \"api_access_token: <YOUR_API_ACCESS_TOKEN>\" \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/submissions\"\n\ncurl -s -H \"api_access_token: <YOUR_API_ACCESS_TOKEN>\" \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/submissions?page=1\"\n```\n\n**Response:**\n\nThis example uses illustrative values.\n\n```\n{\n  \"data\": [\n    {\n      \"id\": \"9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\",\n      \"form_id\": \"45\",\n      \"status\": \"completed\",\n      \"created_at\": \"2026-11-12T08:04:51.210Z\",\n      \"updated_at\": \"2026-11-12T08:09:38.775Z\",\n      \"submitted_at\": \"2026-11-12T08:09:38.775Z\"\n    },\n    {\n      \"id\": \"7a1e5d2c-3b4f-4a6e-9d8c-1f2e3a4b5c6d\",\n      \"form_id\": \"45\",\n      \"status\": \"completed\",\n      \"created_at\": \"2026-11-11T13:21:44.508Z\",\n      \"updated_at\": \"2026-11-11T13:24:10.092Z\",\n      \"submitted_at\": \"2026-11-11T13:24:10.092Z\"\n    }\n  ],\n  \"pagination\": {\"page\": 1, \"limit\": 50, \"total\": 2, \"total_pages\": 1}\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `data` | Array of submission summaries for this page, newest first. |\n| `data[].id` | Submission identifier (UUID string); use it as `{submission_id}` in [Get Submission](https://docs.99digital.co.il/online-api/forms/get-submission). |\n| `data[].form_id` | Associated form identifier (string). |\n| `data[].status` | Submission status. |\n| `data[].created_at` | Creation timestamp in ISO 8601 format. |\n| `data[].updated_at` | Last update timestamp in ISO 8601 format. |\n| `data[].submitted_at` | Submission timestamp in ISO 8601 format. |\n| `pagination.page` | Page represented by `data`. |\n| `pagination.limit` | Reported page size (50). |\n| `pagination.total` | Total submissions across pages. |\n| `pagination.total_pages` | Total number of pages. |\n\nEach summary has the submission's ID and times. For the answers, use\n[Get Submission](https://docs.99digital.co.il/online-api/forms/get-submission). How forms work, and the\nerrors every Forms endpoint can return, are explained in\n[List Forms](https://docs.99digital.co.il/online-api/forms/list-forms)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, starting at `1`. An invalid value means page 1.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\",\n      \"form_id\": \"45\",\n      \"status\": \"completed\",\n      \"created_at\": \"2026-11-12T08:04:51.210Z\",\n      \"updated_at\": \"2026-11-12T08:09:38.775Z\",\n      \"submitted_at\": \"2026-11-12T08:09:38.775Z\"\n    },\n    {\n      \"id\": \"7a1e5d2c-3b4f-4a6e-9d8c-1f2e3a4b5c6d\",\n      \"form_id\": \"45\",\n      \"status\": \"completed\",\n      \"created_at\": \"2026-11-11T13:21:44.508Z\",\n      \"updated_at\": \"2026-11-11T13:24:10.092Z\",\n      \"submitted_at\": \"2026-11-11T13:24:10.092Z\"\n    }\n  ],\n  \"pagination\": {\n    \"page\": 1,\n    \"limit\": 50,\n    \"total\": 2,\n    \"total_pages\": 1\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, starting at `1`. An invalid value means page 1.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, starting at `1`. An invalid value means page 1.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · Forms not enabled",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, starting at `1`. An invalid value means page 1.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not enabled for this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, starting at `1`. An invalid value means page 1.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, starting at `1`. An invalid value means page 1.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Not found\"\n}"
            },
            {
              "name": "500 Internal Server Error",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, starting at `1`. An invalid value means page 1.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"<context>: <details>\"\n}"
            },
            {
              "name": "503 Service Unavailable",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "1",
                      "description": "The page number, starting at `1`. An invalid value means page 1.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Service Unavailable",
              "code": 503,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not configured on this server\"\n}"
            }
          ]
        },
        {
          "name": "Get Submission",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "forms",
                "{{form_id}}",
                "submissions",
                "{{submission_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/forms/get-submission)\n\nRetrieve a submission and its answers.\n\n**Settings:**\n\n| URL | Method |\n| --- | --- |\n| `https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}/submissions/{submission_id}` | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key; access depends on the user's permissions. |\n\n**Permissions:**\n\n- User token: on accounts with the new rules system, **Forms Responses →\n  read**. Accounts on the legacy role system are not restricted.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | Account identifier. | Yes |\n| `form_id` | Form identifier in the path: the form's `publicId`, as returned by [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms). | Yes |\n| `submission_id` | Submission identifier (UUID) from the list response ([List Form Submissions](https://docs.99digital.co.il/online-api/forms/list-form-submissions)). | Yes |\n\n**Request Example:**\n\n```\ncurl -s -H \"api_access_token: <YOUR_API_ACCESS_TOKEN>\" \\\n  \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/submissions/9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\"\n```\n\n**Response:**\n\nContact details have been replaced with sample values.\n\n```\n{\n  \"id\": \"9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\",\n  \"form_id\": \"45\",\n  \"status\": \"completed\",\n  \"created_at\": \"2026-11-12T08:04:51.210Z\",\n  \"updated_at\": \"2026-11-12T08:09:38.775Z\",\n  \"submitted_at\": \"2026-11-12T08:09:38.775Z\",\n  \"answers\": [\n    {\"field_id\": \"text\", \"value\": \"Dana Cohen\", \"type\": \"text\"},\n    {\"field_id\": \"number\", \"value\": \"35\", \"type\": \"number\"},\n    {\"field_id\": \"email\", \"value\": \"dana.cohen@example.com\", \"type\": \"email\"},\n    {\"field_id\": \"contactPhone\", \"value\": \"+972501234567\", \"type\": null}\n  ]\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | Submission identifier (UUID string). |\n| `form_id` | Associated form identifier (string). |\n| `status` | Submission status. |\n| `created_at` | Creation timestamp in ISO 8601 format. |\n| `updated_at` | Last update timestamp in ISO 8601 format. |\n| `submitted_at` | Submission timestamp in ISO 8601 format. |\n| `answers` | Array of recorded answers; may contain personal information. |\n| `answers[].field_id` | Identifier of the answered form field. |\n| `answers[].value` | Answer value. |\n| `answers[].type` | Field type. |\n\n`field_id` matches the `id` of the form's fields (see\n[Get a Form](https://docs.99digital.co.il/online-api/forms/get-a-form)). Fields filled automatically from\nthe contact (such as `contactPhone`) appear with `type: null`.\n\nHow forms work, and the errors every Forms endpoint can return, are explained\nin [List Forms](https://docs.99digital.co.il/online-api/forms/list-forms)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions",
                    "{{submission_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\",\n  \"form_id\": \"45\",\n  \"status\": \"completed\",\n  \"created_at\": \"2026-11-12T08:04:51.210Z\",\n  \"updated_at\": \"2026-11-12T08:09:38.775Z\",\n  \"submitted_at\": \"2026-11-12T08:09:38.775Z\",\n  \"answers\": [\n    {\n      \"field_id\": \"text\",\n      \"value\": \"Dana Cohen\",\n      \"type\": \"text\"\n    },\n    {\n      \"field_id\": \"number\",\n      \"value\": \"35\",\n      \"type\": \"number\"\n    },\n    {\n      \"field_id\": \"email\",\n      \"value\": \"dana.cohen@example.com\",\n      \"type\": \"email\"\n    },\n    {\n      \"field_id\": \"contactPhone\",\n      \"value\": \"+972501234567\",\n      \"type\": null\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions",
                    "{{submission_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions",
                    "{{submission_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · Forms not enabled",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions",
                    "{{submission_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not enabled for this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions",
                    "{{submission_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions",
                    "{{submission_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Not found\"\n}"
            },
            {
              "name": "500 Internal Server Error",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions",
                    "{{submission_id}}"
                  ]
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"<context>: <details>\"\n}"
            },
            {
              "name": "503 Service Unavailable",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/forms/{{form_id}}/submissions/{{submission_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "forms",
                    "{{form_id}}",
                    "submissions",
                    "{{submission_id}}"
                  ]
                }
              },
              "status": "Service Unavailable",
              "code": 503,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Forms is not configured on this server\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Labels",
      "item": [
        {
          "name": "List Labels",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/labels",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "labels"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/labels/list-labels)\n\nReturns all labels of the account, sorted by title.\n\n> **Tip:** To list or set the labels of one conversation, see\n> [List Conversation Labels](https://docs.99digital.co.il/online-api/conversations/list-conversation-labels)\n> and [Set Conversation Labels](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels).\n\nLabels are account-wide tags (with a color) that you attach to conversations\nand contacts. This section manages the label **definitions**. To attach\nlabels to a record, use:\n\n- Conversations: [List Conversation Labels](https://docs.99digital.co.il/online-api/conversations/list-conversation-labels),\n  [Set Conversation Labels](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels),\n  or `labels.add` / `labels.remove` in\n  [Bulk Update Conversations](https://docs.99digital.co.il/online-api/conversations/bulk-update-conversations).\n- Contacts: [List Contact Labels](https://docs.99digital.co.il/online-api/contacts/list-contact-labels),\n  [Set Contact Labels](https://docs.99digital.co.il/online-api/contacts/set-contact-labels).\n\nIn those endpoints a label is referenced by its **title**.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/labels` |\n| **Authorization** | User token. Any agent or administrator of the account. Not available to agent-bot tokens. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/labels' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). Truncated to two of the account's labels.\n\n```json\n{\n  \"payload\": [\n    {\n      \"id\": 16,\n      \"title\": \"billing\",\n      \"description\": \"Payments and invoices\",\n      \"color\": \"#1f93ff\",\n      \"show_on_sidebar\": true\n    },\n    {\n      \"id\": 15,\n      \"title\": \"vip\",\n      \"description\": \"High-value customers\",\n      \"color\": \"#ff6b6b\",\n      \"show_on_sidebar\": true\n    }\n  ]\n}\n```"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"id\": 16,\n      \"title\": \"billing\",\n      \"description\": \"Payments and invoices\",\n      \"color\": \"#1f93ff\",\n      \"show_on_sidebar\": true\n    },\n    {\n      \"id\": 17,\n      \"title\": \"follow_up\",\n      \"description\": \"Needs a call back\",\n      \"color\": \"#1f93ff\",\n      \"show_on_sidebar\": false\n    },\n    {\n      \"id\": 15,\n      \"title\": \"vip\",\n      \"description\": \"High-value customers\",\n      \"color\": \"#ff6b6b\",\n      \"show_on_sidebar\": true\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Add Label",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/labels/add-labels)\n\nCreate a label definition in the account.\n\n> **Tip:** To set or list the labels of a conversation, see\n> [Set Conversation Labels](https://docs.99digital.co.il/online-api/conversations/set-conversation-labels)\n> and [List Conversation Labels](https://docs.99digital.co.il/online-api/conversations/list-conversation-labels).\n> For a contact, see [Set Contact Labels](https://docs.99digital.co.il/online-api/contacts/set-contact-labels)\n> and [List Contact Labels](https://docs.99digital.co.il/online-api/contacts/list-contact-labels).\n\nLabels are account-wide tags, each with a color, that you attach to\nconversations and contacts. Once created, a label is attached by its\n`title`.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/labels` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Labels → create**. Not available to agent-bot tokens. |\n\n**Body parameters (JSON)**\n\nThe fields go inside a `label` object. In a JSON request the wrapper is\noptional: top-level fields are wrapped for you.\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `label.title` | string | Yes | Unique title: letters (any language), digits, `-`, `_` — no spaces. Converted to lower case; unique regardless of case. |\n| `label.description` | string | No | Description. |\n| `label.color` | string | No | Hex color. Default `#1f93ff`. |\n| `label.show_on_sidebar` | boolean | No | Show in the sidebar. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/labels' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"label\": {\n      \"title\": \"VIP\",\n      \"description\": \"High-value customers\",\n      \"color\": \"#ff6b6b\",\n      \"show_on_sidebar\": true\n    }\n  }'\n```\n\n**Example response** (`200 OK`). The title was lower-cased.\n\n```json\n{\n  \"id\": 15,\n  \"title\": \"vip\",\n  \"description\": \"High-value customers\",\n  \"color\": \"#ff6b6b\",\n  \"show_on_sidebar\": true\n}\n```\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `422` | Title contains spaces or other invalid characters. | `{\"message\": \"Title is invalid\", \"attributes\": [\"title\"]}` |\n| `422` | Title already exists (case-insensitive). | `{\"message\": \"Title has already been taken\", \"attributes\": [\"title\"]}` |",
          "item": [
            {
              "name": "Label",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const label_id = pick([\"id\"]);",
                      "  if (label_id !== undefined && label_id !== null) {",
                      "    pm.collectionVariables.set(\"label_id\", String(label_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"label\": {\n    \"title\": \"VIP\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels"
                  ]
                },
                "description": "A label with a title only. It gets the default color.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/labels/add-labels)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 15,\n  \"title\": \"vip\",\n  \"description\": \"High-value customers\",\n  \"color\": \"#ff6b6b\",\n  \"show_on_sidebar\": true\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 · Invalid title",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Title is invalid\",\n  \"attributes\": [\n    \"title\"\n  ]\n}"
                },
                {
                  "name": "422 · Title taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Title has already been taken\",\n  \"attributes\": [\n    \"title\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "All fields",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const label_id = pick([\"id\"]);",
                      "  if (label_id !== undefined && label_id !== null) {",
                      "    pm.collectionVariables.set(\"label_id\", String(label_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"label\": {\n    \"title\": \"VIP\",\n    \"description\": \"High-value customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": true\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels"
                  ]
                },
                "description": "A title, a description, a color and a sidebar filter.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/labels/add-labels)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\",\n    \"description\": \"High-value customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 15,\n  \"title\": \"vip\",\n  \"description\": \"High-value customers\",\n  \"color\": \"#ff6b6b\",\n  \"show_on_sidebar\": true\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\",\n    \"description\": \"High-value customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\",\n    \"description\": \"High-value customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\",\n    \"description\": \"High-value customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\",\n    \"description\": \"High-value customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 · Invalid title",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\",\n    \"description\": \"High-value customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Title is invalid\",\n  \"attributes\": [\n    \"title\"\n  ]\n}"
                },
                {
                  "name": "422 · Title taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"title\": \"VIP\",\n    \"description\": \"High-value customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Title has already been taken\",\n  \"attributes\": [\n    \"title\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Get a Label",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "labels",
                "{{label_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/labels/get-a-label)\n\nRetrieve one label definition of the account.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/labels/{label_id}` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Labels → read**. Not available to agent-bot tokens. |\n\nUnlike [List Labels](https://docs.99digital.co.il/online-api/labels/list-labels), which any agent may\ncall, this endpoint needs the permission above.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `label_id` | integer | Yes | Label ID. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/labels/15' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{\n  \"id\": 15,\n  \"title\": \"vip\",\n  \"description\": \"High-value customers\",\n  \"color\": \"#ff6b6b\",\n  \"show_on_sidebar\": true\n}\n```\n\n**Error responses**: `404 {\"error\": \"Resource could not be found\"}`."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 15,\n  \"title\": \"vip\",\n  \"description\": \"High-value customers\",\n  \"color\": \"#ff6b6b\",\n  \"show_on_sidebar\": true\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Update a Label",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/labels/update-a-label)\n\nUpdate a label definition.\n\nUpdates the fields you send. If you change the `title`, the new title is\napplied to all conversations and contacts that had the old one (in the\nbackground).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `PATCH` (or `PUT`) |\n| **Path** | `/api/v1/accounts/{account_id}/labels/{label_id}` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Labels → update**. Not available to agent-bot tokens. |\n\n**Body parameters (JSON)**: the same fields as in\n[Add Label](https://docs.99digital.co.il/online-api/labels/add-labels), all optional, inside a `label`\nobject (in a JSON request the wrapper is optional). A new title follows the\nsame rules: letters, digits, `-` and `_` only, stored in lower case, unique\nin the account.\n\n**Example request**\n\n```bash\ncurl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/labels/15' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"label\": { \"description\": \"Top customers\", \"color\": \"#ff6b6b\", \"show_on_sidebar\": false } }'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{\n  \"id\": 15,\n  \"title\": \"vip\",\n  \"description\": \"Top customers\",\n  \"color\": \"#ff6b6b\",\n  \"show_on_sidebar\": false\n}\n```",
          "item": [
            {
              "name": "Change the color",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                },
                "description": "A new color only.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/labels/update-a-label)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 15,\n  \"title\": \"vip\",\n  \"description\": \"Top customers\",\n  \"color\": \"#ff6b6b\",\n  \"show_on_sidebar\": false\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Invalid title",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Title is invalid\",\n  \"attributes\": [\n    \"title\"\n  ]\n}"
                },
                {
                  "name": "422 · Title taken",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"color\": \"#ff6b6b\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Title has already been taken\",\n  \"attributes\": [\n    \"title\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "Several fields",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                },
                "description": "A new description and color, and hide it from the sidebar.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/labels/update-a-label)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 15,\n  \"title\": \"vip\",\n  \"description\": \"Top customers\",\n  \"color\": \"#ff6b6b\",\n  \"show_on_sidebar\": false\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Invalid title",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Title is invalid\",\n  \"attributes\": [\n    \"title\"\n  ]\n}"
                },
                {
                  "name": "422 · Title taken",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"label\": {\n    \"description\": \"Top customers\",\n    \"color\": \"#ff6b6b\",\n    \"show_on_sidebar\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "labels",
                        "{{label_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Title has already been taken\",\n  \"attributes\": [\n    \"title\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Delete a Label",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "labels",
                "{{label_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/labels/delete-a-label)\n\nDelete a label definition from the account.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `DELETE` |\n| **Path** | `/api/v1/accounts/{account_id}/labels/{label_id}` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Labels → delete**. Not available to agent-bot tokens. |\n\n**Example request**\n\n```bash\ncurl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/labels/15' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response**: `200 OK` with an empty body."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/labels/{{label_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "labels",
                    "{{label_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Messages",
      "item": [
        {
          "name": "List of Messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "messages"
              ],
              "query": [
                {
                  "key": "before",
                  "value": "40113",
                  "description": "Return up to 20 messages with an ID lower than this one. With `after`, return the messages between the two IDs (up to 1,000).",
                  "disabled": true
                },
                {
                  "key": "after",
                  "value": "",
                  "description": "Return up to 100 messages with an ID higher than this one. With `before`, this ID is included.",
                  "disabled": true
                },
                {
                  "key": "page",
                  "value": "",
                  "description": "Page-number mode instead of cursors: 25 messages per page, starting at `1`. Adds pagination counts to `meta`.",
                  "disabled": true
                },
                {
                  "key": "ticket_id",
                  "value": "",
                  "description": "Return only the messages of this [ticket](/online-api/tickets/list-tickets).",
                  "disabled": true
                },
                {
                  "key": "filter_internal_messages",
                  "value": "",
                  "description": "`true` leaves out private notes and activity messages.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/messages/list-of-messages)\n\nList of all messages in a conversation.\n\nReturns the messages of a conversation, oldest first. Without parameters you\nget the **latest 20** messages. To page through older history, use `before`\nwith the oldest ID you have.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — the caller must be able to see the conversation (see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n  New rules system: when the conversation was resolved before, messages from\n  before the last resolution are returned only if the role has **Inbox see\n  conversations history** for the inbox.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `conversation_id` | The numeric ID of the conversation (its display ID) | Yes |\n\n**Query Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `before` | Return up to 20 messages with an ID lower than this one. | No |\n| `after` | Return up to 100 messages with an ID higher than this one. | No |\n| `before` + `after` | Return the messages between the two IDs (`after` inclusive), up to 1000. | No |\n| `page` | Page-number mode instead of cursors (25 per page). Adds pagination counts to `meta`. | No |\n| `ticket_id` | Only messages of this [ticket](https://docs.99digital.co.il/online-api/tickets/list-tickets). | No |\n| `filter_internal_messages` | `true` excludes private notes and activity messages. | No |\n\n**Response:**\n\n```\n{\n  \"meta\": {\n    \"labels\": [\"vip\", \"billing\"],\n    \"additional_attributes\": {\n      \"source\": \"crm\"\n    },\n    \"contact\": {\n      \"additional_attributes\": {\n        \"city\": \"Tel Aviv\",\n        \"company_name\": \"Example Ltd\"\n      },\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      },\n      \"email\": \"dana.cohen@example.com\",\n      \"id\": 801,\n      \"identifier\": \"crm-801\",\n      \"name\": \"Dana Cohen\",\n      \"phone_number\": \"+972501234567\",\n      \"thumbnail\": \"\",\n      \"type\": \"contact\"\n    },\n    \"agent_last_seen_at\": \"2026-11-12T08:01:05.114Z\",\n    \"assignee_last_seen_at\": null\n  },\n  \"payload\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1501,\n      \"message_type\": 0,\n      \"content_type\": \"text\",\n      \"status\": \"sent\",\n      \"status_history\": {\n        \"sent\": 1794470417\n      },\n      \"content_attributes\": {},\n      \"created_at\": 1794470417,\n      \"private\": false,\n      \"source_id\": null,\n      \"sender\": {\n        \"additional_attributes\": {\n          \"city\": \"Tel Aviv\",\n          \"company_name\": \"Example Ltd\"\n        },\n        \"custom_attributes\": {\n          \"customer_tier\": \"gold\"\n        },\n        \"email\": \"dana.cohen@example.com\",\n        \"id\": 801,\n        \"identifier\": \"crm-801\",\n        \"name\": \"Dana Cohen\",\n        \"phone_number\": \"+972501234567\",\n        \"thumbnail\": \"\",\n        \"type\": \"contact\"\n      },\n      \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n      \"delay_hours\": null,\n      \"ticket_id\": 903\n    }\n  ]\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| meta | An object containing metadata about the conversation |\n| meta -> labels | A list of labels associated with the conversation |\n| meta -> contact | An object containing data about the contact related to the conversation |\n| meta -> contact -> id | Contact numeric ID |\n| meta -> contact -> name | The contact's name |\n| meta -> contact -> phone_number | The contact's phone number |\n| meta -> contact -> email | The contact's email address |\n| meta -> contact -> identifier | A unique identifier for the contact in an external system |\n| meta -> contact -> thumbnail | Avatar URL of the contact |\n| meta -> contact -> additional_attributes | An object containing additional attributes associated with the contact |\n| meta -> contact -> custom_attributes | An object containing the different custom attributes associated with the contact |\n| meta -> contact -> type | Contact type (`contact` / `user`) |\n| meta -> agent_last_seen_at | The last time at which an agent saw the conversation (ISO 8601 format), or `null` |\n| meta -> assignee_last_seen_at | The last time at which the assignee saw the conversation (ISO 8601 format), or `null` |\n| meta -> additional_attributes | An object containing additional attributes related to the conversation |\n| meta -> all_count | Page mode only: the number of messages that match |\n| meta -> total_pages | Page mode only: the number of pages |\n| meta -> current_page | Page mode only: this page's number |\n| meta -> limit_value | Page mode only: the page size (25) |\n| payload | The messages, oldest first |\n| payload -> id | Message numeric ID |\n| payload -> content | The message text content (up to 160,000 characters). Deleted messages contain \"This message was deleted\". |\n| payload -> inbox_id | Inbox numeric ID |\n| payload -> conversation_id | Conversation numeric ID (the display ID) |\n| payload -> message_type | The type of the message: `0` - incoming (from the contact), `1` - outgoing (agent / bot / API), `2` - activity (system note such as \"Conversation was resolved\"), `3` - template |\n| payload -> content_type | The type of the message content. Enum: `text`, `input_select`, `buttons`, `cards`, `form`, `article`, `input_text`, `input_textarea`, `input_email`, `input_csat`, `incoming_email`, `integrations`, `referral`, `contact_info`, `request_phone`. Default: `text` |\n| payload -> status | The status of the message. Enum: `sent`, `delivered`, `read`, `failed`, `deleted` |\n| payload -> status_history | Unix time of each status reached, e.g. `{\"sent\": 1794470412, \"delivered\": 1794470447}` |\n| payload -> content_attributes | An object containing content attributes for the content_type: `items` (options), `in_reply_to` + `reply_data` (quoted message), `deleted`, `reaction_icon`, `email` (email headers/HTML), `template_info`, `buttons_info`, `contact_info`, `external_error`, `translations`, ... |\n| payload -> created_at | The time at which message was created (Unix timestamp) |\n| payload -> private | A Boolean indicating whether the message is private or not (a private note is visible to agents only, never sent to the contact) |\n| payload -> source_id | Message source ID: the message ID on the external channel (e.g. the WhatsApp message ID), or `null` |\n| payload -> echo_id | Your own correlation ID, if you sent one |\n| payload -> attachments | An array of objects (attachment). Present only when the message has files. |\n| payload -> attachments -> id | File numeric ID |\n| payload -> attachments -> message_id | Message numeric ID |\n| payload -> attachments -> file_type | The type of file. Enum: `image`, `video`, `audio`, `file`, `location`, `contact`, `share`, `story_mention`, `fallback` |\n| payload -> attachments -> account_id | Account numeric ID |\n| payload -> attachments -> extension | The file extension, when known |\n| payload -> attachments -> filename | The file name |\n| payload -> attachments -> data_url | File URL |\n| payload -> attachments -> thumb_url | Thumbnail URL, for images |\n| payload -> attachments -> file_size | The file size (in bytes) |\n| payload -> sender | An object containing sender data (contact / user / agent_bot). Activity messages have no sender. |\n| payload -> sender -> id | Sender ID |\n| payload -> sender -> name | Sender name |\n| payload -> sender -> phone_number | Sender phone number |\n| payload -> sender -> email | Sender email address |\n| payload -> sender -> identifier | A unique identifier for the contact in an external system |\n| payload -> sender -> type | Sender type (contact / user / agent_bot) |\n| payload -> sender -> thumbnail | Avatar URL |\n| payload -> sender -> custom_attributes | An object containing custom attributes related to the sender |\n| payload -> sender -> additional_attributes | An object containing additional attributes related to the sender |\n| payload -> created_at_exact | The time at which message was created (ISO 8601 format, with milliseconds) |\n| payload -> ticket_id | The [ticket](https://docs.99digital.co.il/online-api/tickets/list-tickets) the message belongs to |\n| payload -> delay_hours | For scheduled messages: hours after `created_at` when it will be sent. Otherwise `null` |\n\n**Example: latest messages**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`): the latest 20 messages, oldest first, in the shape above\n(see the **Latest messages** response example below).\n\n**Example: older messages (cursor)**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages?before=40113' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`): the 20 messages before `40113`, oldest first, in the same\nshape.\n\n**Example: page mode without notes and activity messages**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages?page=1&filter_internal_messages=true' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\nResponse (`200 OK`). `meta` also contains the pagination counts:\n\n```json\n{\n  \"meta\": {\n    \"labels\": [\"vip\", \"billing\"],\n    \"all_count\": 6,\n    \"total_pages\": 1,\n    \"current_page\": 1,\n    \"limit_value\": 25\n  },\n  \"payload\": []\n}\n```\n\n(`meta` also includes the other fields shown above, and `payload` held the 6\nmessages. Both are trimmed here.)\n\n## Remarks\n\n- **Cursors are message IDs.** Message IDs grow over time, so `before`\n  walks back in history and `after` walks forward. The results are always\n  oldest first, whichever cursor you send.\n- **Polling.** This is a `GET` under `/conversations`: requesting the same\n  URL more than 10 times a minute from one IP address is answered with\n  `429` (see [Rate limits](https://docs.99digital.co.il/online-api/getting-started#rate-limits)). To\n  follow new messages, subscribe to the `message_created_*`\n  [webhook events](https://docs.99digital.co.il/online-api/webhooks/webhook-events) instead."
          },
          "response": [
            {
              "name": "200 · Latest messages",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "40113",
                      "description": "Return up to 20 messages with an ID lower than this one. With `after`, return the messages between the two IDs (up to 1,000).",
                      "disabled": true
                    },
                    {
                      "key": "after",
                      "value": "",
                      "description": "Return up to 100 messages with an ID higher than this one. With `before`, this ID is included.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "Page-number mode instead of cursors: 25 messages per page, starting at `1`. Adds pagination counts to `meta`.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "",
                      "description": "Return only the messages of this [ticket](/online-api/tickets/list-tickets).",
                      "disabled": true
                    },
                    {
                      "key": "filter_internal_messages",
                      "value": "",
                      "description": "`true` leaves out private notes and activity messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"labels\": [\n      \"vip\",\n      \"billing\"\n    ],\n    \"additional_attributes\": {\n      \"source\": \"crm\"\n    },\n    \"contact\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"type\": \"contact\"\n    },\n    \"agent_last_seen_at\": \"2026-11-12T08:01:05.114Z\",\n    \"assignee_last_seen_at\": null\n  },\n  \"payload\": [\n    {\n      \"id\": 40112,\n      \"content\": \"Your order A-1001 is ready for pickup.\",\n      \"inbox_id\": 31,\n      \"echo_id\": \"crm-msg-1001\",\n      \"conversation_id\": 1501,\n      \"message_type\": 1,\n      \"content_type\": \"text\",\n      \"status\": \"read\",\n      \"status_history\": {\n        \"sent\": 1794470412,\n        \"delivered\": 1794470447,\n        \"read\": 1794470447\n      },\n      \"content_attributes\": {},\n      \"created_at\": 1794470412,\n      \"private\": false,\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 51,\n        \"name\": \"Jane Agent\",\n        \"available_name\": \"Jane Agent\",\n        \"email\": \"jane.agent@example.com\",\n        \"avatar_url\": \"\",\n        \"type\": \"user\",\n        \"availability_status\": \"online\",\n        \"thumbnail\": \"\"\n      },\n      \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n      \"delay_hours\": null,\n      \"ticket_id\": 903\n    },\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1501,\n      \"message_type\": 0,\n      \"content_type\": \"text\",\n      \"status\": \"sent\",\n      \"status_history\": {\n        \"sent\": 1794470417\n      },\n      \"content_attributes\": {\n        \"reaction_icon\": \"👍\"\n      },\n      \"created_at\": 1794470417,\n      \"private\": false,\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"email\": \"dana.cohen@example.com\",\n        \"phone_number\": \"+972501234567\",\n        \"identifier\": \"crm-801\",\n        \"thumbnail\": \"\",\n        \"type\": \"contact\",\n        \"blocked\": false\n      },\n      \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n      \"delay_hours\": null,\n      \"ticket_id\": 903\n    }\n  ]\n}"
            },
            {
              "name": "200 · Page mode",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "40113",
                      "description": "Return up to 20 messages with an ID lower than this one. With `after`, return the messages between the two IDs (up to 1,000).",
                      "disabled": true
                    },
                    {
                      "key": "after",
                      "value": "",
                      "description": "Return up to 100 messages with an ID higher than this one. With `before`, this ID is included.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "Page-number mode instead of cursors: 25 messages per page, starting at `1`. Adds pagination counts to `meta`.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "",
                      "description": "Return only the messages of this [ticket](/online-api/tickets/list-tickets).",
                      "disabled": true
                    },
                    {
                      "key": "filter_internal_messages",
                      "value": "",
                      "description": "`true` leaves out private notes and activity messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"meta\": {\n    \"labels\": [\n      \"vip\",\n      \"billing\"\n    ],\n    \"additional_attributes\": {\n      \"source\": \"crm\"\n    },\n    \"contact\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"email\": \"dana.cohen@example.com\",\n      \"phone_number\": \"+972501234567\",\n      \"identifier\": \"crm-801\",\n      \"thumbnail\": \"\",\n      \"type\": \"contact\",\n      \"blocked\": false,\n      \"additional_attributes\": {\n        \"city\": \"Tel Aviv\",\n        \"company_name\": \"Example Ltd\"\n      },\n      \"custom_attributes\": {\n        \"customer_tier\": \"gold\"\n      }\n    },\n    \"agent_last_seen_at\": \"2026-11-12T08:01:05.114Z\",\n    \"assignee_last_seen_at\": null,\n    \"all_count\": 6,\n    \"total_pages\": 1,\n    \"current_page\": 1,\n    \"limit_value\": 25\n  },\n  \"payload\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\",\n      \"inbox_id\": 31,\n      \"conversation_id\": 1501,\n      \"message_type\": 0,\n      \"content_type\": \"text\",\n      \"status\": \"sent\",\n      \"status_history\": {\n        \"sent\": 1794470417\n      },\n      \"content_attributes\": {\n        \"reaction_icon\": \"👍\"\n      },\n      \"created_at\": 1794470417,\n      \"private\": false,\n      \"source_id\": null,\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"email\": \"dana.cohen@example.com\",\n        \"phone_number\": \"+972501234567\",\n        \"identifier\": \"crm-801\",\n        \"thumbnail\": \"\",\n        \"type\": \"contact\",\n        \"blocked\": false\n      },\n      \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n      \"delay_hours\": null,\n      \"ticket_id\": 903\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "40113",
                      "description": "Return up to 20 messages with an ID lower than this one. With `after`, return the messages between the two IDs (up to 1,000).",
                      "disabled": true
                    },
                    {
                      "key": "after",
                      "value": "",
                      "description": "Return up to 100 messages with an ID higher than this one. With `before`, this ID is included.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "Page-number mode instead of cursors: 25 messages per page, starting at `1`. Adds pagination counts to `meta`.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "",
                      "description": "Return only the messages of this [ticket](/online-api/tickets/list-tickets).",
                      "disabled": true
                    },
                    {
                      "key": "filter_internal_messages",
                      "value": "",
                      "description": "`true` leaves out private notes and activity messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "40113",
                      "description": "Return up to 20 messages with an ID lower than this one. With `after`, return the messages between the two IDs (up to 1,000).",
                      "disabled": true
                    },
                    {
                      "key": "after",
                      "value": "",
                      "description": "Return up to 100 messages with an ID higher than this one. With `before`, this ID is included.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "Page-number mode instead of cursors: 25 messages per page, starting at `1`. Adds pagination counts to `meta`.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "",
                      "description": "Return only the messages of this [ticket](/online-api/tickets/list-tickets).",
                      "disabled": true
                    },
                    {
                      "key": "filter_internal_messages",
                      "value": "",
                      "description": "`true` leaves out private notes and activity messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "40113",
                      "description": "Return up to 20 messages with an ID lower than this one. With `after`, return the messages between the two IDs (up to 1,000).",
                      "disabled": true
                    },
                    {
                      "key": "after",
                      "value": "",
                      "description": "Return up to 100 messages with an ID higher than this one. With `before`, this ID is included.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "Page-number mode instead of cursors: 25 messages per page, starting at `1`. Adds pagination counts to `meta`.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "",
                      "description": "Return only the messages of this [ticket](/online-api/tickets/list-tickets).",
                      "disabled": true
                    },
                    {
                      "key": "filter_internal_messages",
                      "value": "",
                      "description": "`true` leaves out private notes and activity messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "40113",
                      "description": "Return up to 20 messages with an ID lower than this one. With `after`, return the messages between the two IDs (up to 1,000).",
                      "disabled": true
                    },
                    {
                      "key": "after",
                      "value": "",
                      "description": "Return up to 100 messages with an ID higher than this one. With `before`, this ID is included.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "Page-number mode instead of cursors: 25 messages per page, starting at `1`. Adds pagination counts to `meta`.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "",
                      "description": "Return only the messages of this [ticket](/online-api/tickets/list-tickets).",
                      "disabled": true
                    },
                    {
                      "key": "filter_internal_messages",
                      "value": "",
                      "description": "`true` leaves out private notes and activity messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "40113",
                      "description": "Return up to 20 messages with an ID lower than this one. With `after`, return the messages between the two IDs (up to 1,000).",
                      "disabled": true
                    },
                    {
                      "key": "after",
                      "value": "",
                      "description": "Return up to 100 messages with an ID higher than this one. With `before`, this ID is included.",
                      "disabled": true
                    },
                    {
                      "key": "page",
                      "value": "",
                      "description": "Page-number mode instead of cursors: 25 messages per page, starting at `1`. Adds pagination counts to `meta`.",
                      "disabled": true
                    },
                    {
                      "key": "ticket_id",
                      "value": "",
                      "description": "Return only the messages of this [ticket](/online-api/tickets/list-tickets).",
                      "disabled": true
                    },
                    {
                      "key": "filter_internal_messages",
                      "value": "",
                      "description": "`true` leaves out private notes and activity messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Create a Message",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)\n\nThis endpoint allows you to create a new message in a conversation.\n\nIt sends a message in a conversation: a reply to the contact, a private note,\nan interactive message, a file, a location, a scheduled message, a WhatsApp\ntemplate, or (in API inboxes) an incoming message on behalf of the contact.\nOutgoing messages are delivered to the contact through the inbox's channel\n(WhatsApp, SMS, email, Facebook, API webhook, and so on). Every new message\nfires the `message_created` [webhook event](https://docs.99digital.co.il/online-api/webhooks/webhook-events),\ndelivered to the `message_created_agent`, `message_created_bot` or\n`message_created_customer` subscription, depending on who sent it.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages` |\n| Method | JSON via POST (or `multipart/form-data` when uploading files) |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — any agent who can see the conversation (see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n  New rules system, per inbox: a reply needs **Inbox reply**, a private note\n  **Inbox private notes**; with `attachments` also **Inbox attach files**;\n  with `delay_hours` also **Inbox delay message**.\n- Agent-bot token: allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `conversation_id` | The numeric ID of the conversation (its display ID) | Yes |\n\n**Request body:**\n\n| Parameter | type | Description | Required |\n| --- | --- | --- | --- |\n| `content` | string | The content of the message (up to 160,000 characters). Required unless you send attachments, a location or an interactive payload. | Conditional |\n| `message_type` | string | The type of the message. Enum: `outgoing` (default), `incoming`. `incoming` is allowed only in **API** (and Line) inboxes, to post a message from the contact. | No |\n| `private` | boolean | A Boolean indicating whether the message is private or not. `true` = private note (not sent to the contact). Default `false`. | No |\n| `content_type` | string | The type of the message content. Enum: `text` (default), `input_select`, `buttons`, `cards`, `form`, `article`, `input_email`, `contact_info`, `request_phone` (WhatsApp: ask the contact to share their phone number). | No |\n| `content_attributes` | object | Attributes based on the message content type (see the rows below). | No |\n| `content_attributes.items` | array | Options for `input_select` / `cards` / `form`: `[{\"title\": \"...\", \"value\": \"...\"}]`. | No |\n| `content_attributes.in_reply_to` | integer | ID of a message in this conversation to reply to (quoted reply). | No |\n| `content_attributes.buttons_info` / `buttons_info` | object | Buttons definition for `content_type: buttons`. | No |\n| `content_attributes.contact_info` / `contact_info` | object | Contact card for `content_type: contact_info`. | No |\n| `content_attributes.template_info` | object | **Online WhatsApp inboxes** (API inboxes connected to the 99digital WhatsApp server): the approved template to send. Use a template object from `GET /api/v1/accounts/{account_id}/online_wa/templates`, plus `parameters: [{\"key\": \"1\", \"value\": \"...\"}]` and, for URL buttons, `websiteVariable` / `websiteVariable2`. Required to message a contact outside the 24-hour window. Can also be sent top-level as `template_info`. | No |\n| `attachments[]` | file / string | Files to send. Send **files** with `multipart/form-data`, or **signed blob IDs** from `POST /api/v1/accounts/{account_id}/direct_uploads`, or **public URLs** (a string, or `{\"url\": \"...\", \"filename\": \"...\"}`) that the server downloads. | No |\n| `template_params` | object | Native WhatsApp Cloud channel templates: `{\"name\", \"category\", \"language\", \"namespace\", \"processed_params\": {\"1\": \"value\"}}`. | No |\n| `echo_id` | string | Your correlation ID, returned on the message and in webhooks. | No |\n| `delay_hours` | integer | Schedule the message to be sent this many hours from now. Until then it is stored with `delay_hours` set, and webhooks/channel delivery happen only at send time. | No |\n| `location` | object | Send a location: `{\"latitude\": 32.08, \"longitude\": 34.78, \"name\": \"...\", \"address\": \"...\", \"url\": \"...\"}`. | No |\n| `to_emails`, `cc_emails`, `bcc_emails` | string | Email inboxes: comma-separated addresses. | No |\n| `forwarded`, `forward_html_content`, `from_email` | | Email inboxes: forward a message (with original HTML), choose the sender alias. | No |\n| `campaign_id` | integer | Campaign the message belongs to. | No |\n| `sender_type` + `sender_id` | string + integer | `sender_type: \"AgentBot\"` and an agent-bot ID to send as that bot. | No |\n| `external_created_at` | integer | Original timestamp on the external platform. | No |\n| `skip_duplicates` | boolean | Do not create the message if one with the same content and time already exists. | No |\n| `wa_id` | string | Incoming WhatsApp v2 messages: the sender's current WhatsApp ID, saved on the contact inbox. | No |\n\n**Request body example:**\n\n```\n{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"content_type\": \"text\",\n  \"content_attributes\": {}\n}\n```\n\n**Response:**\n\n```\n{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"logo_user_url\": null,\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| id | The numeric ID of the message |\n| content | The message text content |\n| inbox_id | The numeric ID of the inbox |\n| conversation_id | The numeric ID of the conversation (the display ID) |\n| message_type | The type of the message: `0` - incoming, `1` - outgoing, `2` - activity, `3` - template. In the request it is a word (`outgoing`, `incoming`); in the response it is a number. |\n| content_type | The type of the message content. Enum: `text`, `input_select`, `buttons`, `cards`, `form`, `article`, `input_text`, `input_textarea`, `input_email`, `input_csat`, `incoming_email`, `integrations`, `referral`, `contact_info`, `request_phone`. Default: `text` |\n| status | The status of the message. Enum: `sent`, `delivered`, `read`, `failed`, `deleted` |\n| status_history | Unix time of each status reached, e.g. `{\"sent\": 1794470412}` |\n| content_attributes | An object containing content attributes for the content_type |\n| created_at | Time at which the message was created. Measured in seconds since the Unix epoch. |\n| private | A Boolean indicating whether the message is private or not |\n| source_id | Message source ID: the message ID on the external channel (e.g. the WhatsApp message ID), or `null` |\n| echo_id | Your own correlation ID, if you sent one |\n| created_at_exact | The time at which message was created (ISO 8601 format) |\n| sender | An object containing sender data (contact / user / agent_bot) |\n| attachments | The files of the message (present only when it has files): `id`, `message_id`, `file_type`, `filename`, `data_url`, `thumb_url`, `file_size`, `extension` |\n| delay_hours | For scheduled messages: hours after `created_at` when it will be sent. Otherwise `null` |\n| ticket_id | The [ticket](https://docs.99digital.co.il/online-api/tickets/list-tickets) the message belongs to |\n\n> **Note:** If the contact is **blocked**, incoming messages are not saved: the response\n> is `200 OK` with\n> `{\"warning\": {\"message\": \"Contact is blocked. Message was ignored!\", \"params\": ...}}`\n> (see the **Blocked contact** response).\n\n## What to send\n\nWhat the body contains decides the kind of message. Each kind has a ready\nexample under the request body:\n\n| To send | Send |\n| --- | --- |\n| A reply to the contact | `content` |\n| A private note, seen by agents only | `content` and `private: true` |\n| A message from the contact (API inboxes) | `content` and `message_type: incoming` |\n| An options menu | `content_type: input_select` and `content_attributes.items` |\n| A quoted reply | `content` and `content_attributes.in_reply_to` |\n| A scheduled message | `content` and `delay_hours` |\n| A location | `location` |\n| A WhatsApp template | `content` and `content_attributes.template_info` (see below) |\n| Files | `attachments`: public URLs or signed blob IDs in JSON, or files from disk with `multipart/form-data` (see Remarks) |\n\n## WhatsApp templates\n\nIn **Online WhatsApp inboxes** (API inboxes connected to the 99digital\nWhatsApp server), send an approved template in\n`content_attributes.template_info`, or in `template_info` at the top level.\nA template is required to message a contact outside WhatsApp's 24-hour\nwindow.\n\n1. Take the template object from\n   `GET /api/v1/accounts/{account_id}/online_wa/templates`.\n2. Add `parameters`, one `{\"key\": \"1\", \"value\": \"…\"}` per placeholder of\n   the template text, and, for URL buttons, `websiteVariable` /\n   `websiteVariable2`.\n3. Set `content` to the rendered text.\n\n`content` is the rendered text shown in the conversation. The WhatsApp server\nsends the template named in `template_info.name` with the given parameters.\nThe same `message` object can be sent in the one-shot\n[Add Conversation](https://docs.99digital.co.il/online-api/conversations/add-conversation) call to start a\nnew WhatsApp conversation.\n\nNative WhatsApp Cloud inboxes take `template_params` instead.\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `422` | `incoming` message in a non-API inbox. | `{\"error\": \"Incoming messages are only allowed in Api inboxes\"}` |\n| `422` | Outgoing message in an incoming-calls inbox. | `{\"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"}` |\n| `422` | Other validation errors. | `{\"error\": \"<message>\"}` |\n| `403` | Missing inbox permission (**Inbox reply**, **Inbox private notes**, **Inbox attach files** or **Inbox delay message**). | `{\"error\": \"You are not authorized to do this action\"}` |\n\nFile types and sizes are checked against the account's upload policy. A\nrejected file returns an error status (for example `415`) with\n`{\"error\": \"<reason>\"}`.\n\n## Remarks\n\n- **Scheduled messages** are stored at once, with `delay_hours` set.\n  Webhook events and delivery to the contact happen only at send time. To\n  cancel one, [delete it](https://docs.99digital.co.il/online-api/messages/delete-a-message) before\n  then.\n- **Uploading files from disk.** Send the request as `multipart/form-data`,\n  with each file in an `attachments[]` field and the other body fields as\n  form fields:\n\n  ```bash\n  curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages' \\\n    -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n    -F 'content=Here is the invoice image' \\\n    -F 'attachments[]=@invoice.png;type=image/png'\n  ```\n\n  The response is the new message, with its `attachments` (see the **File\n  attachment** response).",
          "item": [
            {
              "name": "Reply",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "A reply to the contact, with your own correlation ID.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"message_type\": \"outgoing\",\n  \"private\": false,\n  \"echo_id\": \"crm-msg-1001\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            },
            {
              "name": "Private note",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "A note for agents only. It is not sent to the contact.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Customer is a VIP, handle with care.\",\n  \"private\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            },
            {
              "name": "Incoming message",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "In an API inbox, post a message from the contact.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hi, where is my order?\",\n  \"message_type\": \"incoming\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            },
            {
              "name": "Options menu",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "A question with options the contact can choose from.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"How can we help?\",\n  \"content_type\": \"input_select\",\n  \"content_attributes\": {\n    \"items\": [\n      {\n        \"title\": \"Track my order\",\n        \"value\": \"track\"\n      },\n      {\n        \"title\": \"Talk to an agent\",\n        \"value\": \"agent\"\n      }\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            },
            {
              "name": "Quoted reply",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "A reply that quotes an earlier message of the conversation.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            },
            {
              "name": "Scheduled message",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "A message sent two hours from now.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"delay_hours\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            },
            {
              "name": "Location",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "A location, without text.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"location\": {\n    \"latitude\": 32.0853,\n    \"longitude\": 34.7818,\n    \"name\": \"Example Ltd\",\n    \"address\": \"1 Example St, Tel Aviv\",\n    \"url\": \"https://maps.example.com/?q=32.0853,34.7818\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            },
            {
              "name": "WhatsApp template",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "An approved template in an Online WhatsApp inbox, with two parameters.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\",\n  \"private\": false,\n  \"content_attributes\": {\n    \"template_info\": {\n      \"name\": \"order_ready\",\n      \"language\": \"en\",\n      \"category\": 1,\n      \"headerType\": 1,\n      \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\",\n      \"parameters\": [\n        {\n          \"key\": \"1\",\n          \"value\": \"Dana\"\n        },\n        {\n          \"key\": \"2\",\n          \"value\": \"A-1001\"\n        }\n      ]\n    }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            },
            {
              "name": "File by URL",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const message_id = pick([\"id\"]);",
                      "  if (message_id !== undefined && message_id !== null) {",
                      "    pm.collectionVariables.set(\"message_id\", String(message_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages"
                  ]
                },
                "description": "Files the server downloads from public URLs — one with a file name.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/create-a-message)"
              },
              "response": [
                {
                  "name": "200 · Reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470412\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Incoming message",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"additional_attributes\": {\n      \"city\": \"Tel Aviv\",\n      \"company_name\": \"Example Ltd\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"email\": \"dana.cohen@example.com\",\n    \"id\": 801,\n    \"identifier\": \"crm-801\",\n    \"name\": \"Dana Cohen\",\n    \"phone_number\": \"+972501234567\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Quoted reply",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40116,\n  \"content\": \"It will arrive tomorrow.\",\n  \"content_attributes\": {\n    \"in_reply_to\": 40113,\n    \"reply_data\": {\n      \"sender\": {\n        \"name\": \"Dana Cohen\"\n      },\n      \"content\": \"Hi, where is my order?\",\n      \"message_type\": 0,\n      \"file_type\": null,\n      \"thumb_url\": null,\n      \"source_id\": null\n    },\n    \"in_reply_to_external_id\": null\n  }\n}"
                },
                {
                  "name": "200 · File attachment",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40117,\n  \"content\": \"Here is the invoice image\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470430\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470430,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"type\": \"user\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 3201,\n      \"message_id\": 40117,\n      \"file_type\": \"image\",\n      \"account_id\": 12,\n      \"extension\": null,\n      \"filename\": \"invoice.png\",\n      \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n      \"file_size\": 48213\n    }\n  ],\n  \"created_at_exact\": \"2026-11-12T08:00:30.256Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "200 · Blocked contact",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"warning\": {\n    \"message\": \"Contact is blocked. Message was ignored!\"\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 Forbidden",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · Incoming in another inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Incoming messages are only allowed in Api inboxes\"\n}"
                },
                {
                  "name": "422 · Incoming-calls inbox",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"content\": \"Here is the invoice image\",\n  \"attachments\": [\n    {\n      \"url\": \"https://example.com/files/invoice-a1001.png\",\n      \"filename\": \"invoice.png\"\n    },\n    \"https://example.com/files/price-list.pdf\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Delete a Message",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "messages",
                "{{message_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/messages/delete-a-message)\n\nThis endpoint allows you to delete a message and its attachments from the conversation.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}` |\n| Method | JSON via DELETE |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained on the profile page.\n\n**Permissions:**\n\n- User token — any agent who can see the conversation (see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n  New rules system: **Inbox delete message** for the inbox.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `conversation_id` | The numeric ID of the conversation (its display ID) | Yes |\n| `message_id` | The numeric ID of the message | Yes |\n\n## What is deleted\n\nA normal message is kept with its text replaced by \"This message was deleted\",\n`content_attributes.deleted: true`, and its attachments removed. A\n**scheduled** message that has not been sent yet is removed completely, so it\nwill not be sent. On Facebook pages, TikTok and 99Hub Facebook comments the\nmessage is also deleted on the platform. On other channels (e.g. WhatsApp) the\ncontact keeps the message they received.\n\n**Example request**\n\n```bash\ncurl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40116' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). The sender is omitted here.\n\n```json\n{\n  \"id\": 40116,\n  \"content\": \"This message was deleted\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470424\n  },\n  \"content_attributes\": {\n    \"deleted\": true\n  },\n  \"created_at\": 1794470424,\n  \"private\": false,\n  \"source_id\": null,\n  \"created_at_exact\": \"2026-11-12T08:00:24.640Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}\n```\n\nFor a scheduled message the response is the message as it was before deletion\n(still with `delay_hours` set)."
          },
          "response": [
            {
              "name": "200 · Sent message",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 40116,\n  \"content\": \"This message was deleted\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470424\n  },\n  \"content_attributes\": {\n    \"deleted\": true\n  },\n  \"created_at\": 1794470424,\n  \"private\": false,\n  \"source_id\": null,\n  \"created_at_exact\": \"2026-11-12T08:00:24.640Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
            },
            {
              "name": "200 · Scheduled message",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 40118,\n  \"content\": \"Reminder: your appointment is tomorrow.\",\n  \"status\": \"sent\",\n  \"delay_hours\": 2,\n  \"created_at\": 1794470435\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Update Message Status",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"read\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/status",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "messages",
                "{{message_id}}",
                "status"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/messages/update-message-status)\n\nSets the delivery status of a message.\n\nChannel integrations (such as the WhatsApp API server) use it to report\ndelivery and read receipts. The status can only move **forward**:\n`sent` → `delivered` → `read` → `failed` → `deleted`. Each status reached is\nrecorded in `status_history`.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/status` |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token — any agent who can see the conversation (see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n| `message_id` | integer | Yes | Message ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `status` | string | Yes | `delivered`, `read`, `failed` or `deleted`. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40112/status' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"status\": \"read\" }'\n```\n\n**Example response** (`200 OK`): the full message object. The relevant\nfields:\n\n```json\n{\n  \"id\": 40112,\n  \"status\": \"read\",\n  \"status_history\": {\n    \"sent\": 1794470412,\n    \"delivered\": 1794470447,\n    \"read\": 1794470447\n  }\n}\n```\n\n**Error responses**: `422 {\"error\": \"New status must be greater than current status\"}`\n(for example `delivered` after `read`)."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"read\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "status"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 40112,\n  \"content\": \"Your order A-1001 is ready for pickup.\",\n  \"inbox_id\": 31,\n  \"echo_id\": \"crm-msg-1001\",\n  \"conversation_id\": 1501,\n  \"message_type\": 1,\n  \"content_type\": \"text\",\n  \"status\": \"read\",\n  \"status_history\": {\n    \"sent\": 1794470412,\n    \"delivered\": 1794470447,\n    \"read\": 1794470447\n  },\n  \"content_attributes\": {},\n  \"created_at\": 1794470412,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\",\n    \"available_name\": \"Jane Agent\",\n    \"email\": \"jane.agent@example.com\",\n    \"avatar_url\": \"\",\n    \"type\": \"user\",\n    \"availability_status\": \"online\",\n    \"thumbnail\": \"\"\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:12.417Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"read\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "status"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"read\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "status"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"read\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "status"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"read\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "status"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"read\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "status"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            },
            {
              "name": "422 Unprocessable Entity",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"read\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "status"
                  ]
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"New status must be greater than current status\"\n}"
            }
          ]
        },
        {
          "name": "Set Message Reaction",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/messages/set-message-reaction)\n\nStores an emoji reaction on a message.\n\nThe reaction is stored in `content_attributes.reaction_icon`. Send an empty\nstring to clear it.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `PATCH` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/reaction` |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token — any agent who can see the conversation (see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n| `message_id` | integer | Yes | Message ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `reaction_icon` | string | Yes | A single emoji, e.g. `👍`. Send an empty string to clear the reaction. |\n\n**Example request**\n\n```bash\ncurl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40113/reaction' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"reaction_icon\": \"👍\" }'\n```\n\n**Example response** (`200 OK`): the full message object, with:\n\n```json\n{\n  \"id\": 40113,\n  \"content_attributes\": {\n    \"reaction_icon\": \"👍\"\n  }\n}\n```",
          "item": [
            {
              "name": "Add a reaction",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"reaction_icon\": \"👍\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "reaction"
                  ]
                },
                "description": "React with a thumbs-up.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/set-message-reaction)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"👍\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {\n    \"reaction_icon\": \"👍\"\n  },\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"email\": \"dana.cohen@example.com\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"👍\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"👍\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"👍\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"👍\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"👍\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Clear the reaction",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"reaction_icon\": \"\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "reaction"
                  ]
                },
                "description": "Remove the message's reaction.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/messages/set-message-reaction)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"inbox_id\": 31,\n  \"conversation_id\": 1501,\n  \"message_type\": 0,\n  \"content_type\": \"text\",\n  \"status\": \"sent\",\n  \"status_history\": {\n    \"sent\": 1794470417\n  },\n  \"content_attributes\": {\n    \"reaction_icon\": \"👍\"\n  },\n  \"created_at\": 1794470417,\n  \"private\": false,\n  \"source_id\": null,\n  \"sender\": {\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"email\": \"dana.cohen@example.com\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"thumbnail\": \"\",\n    \"type\": \"contact\",\n    \"blocked\": false\n  },\n  \"created_at_exact\": \"2026-11-12T08:00:17.903Z\",\n  \"delay_hours\": null,\n  \"ticket_id\": 903\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reaction_icon\": \"\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/reaction",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "conversations",
                        "{{conversation_id}}",
                        "messages",
                        "{{message_id}}",
                        "reaction"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Translate a Message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"target_language\": \"he\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/translate",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "messages",
                "{{message_id}}",
                "translate"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/messages/translate-a-message)\n\nTranslates a message with the account's OpenAI integration.\n\nThe translation is stored in `content_attributes.translations`. If a\ntranslation to that language already exists, it returns `200` with an empty\nbody; the stored translation is then in the message's\n`content_attributes.translations`, for example in\n[List of Messages](https://docs.99digital.co.il/online-api/messages/list-of-messages).\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/translate` |\n| **Authorization** | User token. New rules: **Inbox ai assistance** for the inbox. |\n\n**Permissions:**\n\n- User token — any agent who can see the conversation (see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n  New rules system: also **Inbox ai assistance** for the conversation's\n  inbox.\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n| `message_id` | integer | Yes | Message ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `target_language` | string | Yes | Language code, e.g. `he`, `en`, `ar`, `ru`. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40113/translate' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"target_language\": \"he\" }'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{ \"content\": \"היי, איפה ההזמנה שלי?\" }\n```\n\n**Error responses**: `422 {\"error\": \"OpenAI integration is not enabled\"}`."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target_language\": \"he\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/translate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "translate"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"content\": \"היי, איפה ההזמנה שלי?\"\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target_language\": \"he\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/translate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "translate"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target_language\": \"he\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/translate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "translate"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target_language\": \"he\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/translate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "translate"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target_language\": \"he\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/translate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "translate"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target_language\": \"he\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/translate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "translate"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            },
            {
              "name": "422 Unprocessable Entity",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target_language\": \"he\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/translate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "translate"
                  ]
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"OpenAI integration is not enabled\"\n}"
            }
          ]
        },
        {
          "name": "List Conversation Files",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/files",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "messages",
                "files"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "10",
                  "description": "The number of files to return, from 1 to 200. The default is 200.",
                  "disabled": true
                },
                {
                  "key": "before",
                  "value": "",
                  "description": "Return files with an ID lower than this one — the lowest `id` of the previous page — to get the next page.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/messages/list-conversation-files)\n\nReturns the attachments of all messages in the conversation, newest first.\n\nThe list is paginated with a cursor: up to `limit` files per request (200 by\ndefault). For the next page, send the lowest `id` you received as `before`.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/files` |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token — any agent who can see the conversation (see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `limit` | integer | No | Page size, 1–200. Default 200. |\n| `before` | integer | No | Return attachments with an ID lower than this one (next page). |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/files?limit=10' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`)\n\n```json\n[\n  {\n    \"id\": 3201,\n    \"message_id\": 40117,\n    \"account_id\": 12,\n    \"file_type\": \"image\",\n    \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\"\n  }\n]\n```"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "files"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10",
                      "description": "The number of files to return, from 1 to 200. The default is 200.",
                      "disabled": true
                    },
                    {
                      "key": "before",
                      "value": "",
                      "description": "Return files with an ID lower than this one — the lowest `id` of the previous page — to get the next page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"id\": 3201,\n    \"message_id\": 40117,\n    \"account_id\": 12,\n    \"file_type\": \"image\",\n    \"data_url\": \"https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\",\n    \"thumb_url\": \"https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\"\n  }\n]"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "files"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10",
                      "description": "The number of files to return, from 1 to 200. The default is 200.",
                      "disabled": true
                    },
                    {
                      "key": "before",
                      "value": "",
                      "description": "Return files with an ID lower than this one — the lowest `id` of the previous page — to get the next page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "files"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10",
                      "description": "The number of files to return, from 1 to 200. The default is 200.",
                      "disabled": true
                    },
                    {
                      "key": "before",
                      "value": "",
                      "description": "Return files with an ID lower than this one — the lowest `id` of the previous page — to get the next page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "files"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10",
                      "description": "The number of files to return, from 1 to 200. The default is 200.",
                      "disabled": true
                    },
                    {
                      "key": "before",
                      "value": "",
                      "description": "Return files with an ID lower than this one — the lowest `id` of the previous page — to get the next page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "files"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10",
                      "description": "The number of files to return, from 1 to 200. The default is 200.",
                      "disabled": true
                    },
                    {
                      "key": "before",
                      "value": "",
                      "description": "Return files with an ID lower than this one — the lowest `id` of the previous page — to get the next page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "files"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10",
                      "description": "The number of files to return, from 1 to 200. The default is 200.",
                      "disabled": true
                    },
                    {
                      "key": "before",
                      "value": "",
                      "description": "Return files with an ID lower than this one — the lowest `id` of the previous page — to get the next page.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Get Forward Quotes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/forward_quotes",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "conversations",
                "{{conversation_id}}",
                "messages",
                "{{message_id}}",
                "forward_quotes"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "2",
                  "description": "Return only the last N messages.",
                  "disabled": true
                }
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/messages/get-forward-quotes)\n\nReturns the public incoming and outgoing messages before a given message, for building a quoted history when forwarding (mainly email).\n\nOnly the messages **before** the given message are returned, oldest first.\nPrivate notes and activity messages are left out. Very long histories are cut\ndown to the most recent messages; send `limit` to get only the last few.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/forward_quotes` |\n| **Authorization** | User token. |\n\n**Permissions:**\n\n- User token — any agent who can see the conversation (see\n  [Who can see a conversation](https://docs.99digital.co.il/online-api/conversations/conversation-basics#who-can-see-a-conversation)).\n- Agent-bot token: not allowed.\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `conversation_id` | integer | Yes | Conversation display ID. |\n| `message_id` | integer | Yes | Message ID. The messages before this one are returned. |\n\n**Query parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `limit` | integer | No | Return only the last N messages. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40117/forward_quotes?limit=2' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`)\n\n```json\n{\n  \"payload\": [\n    {\n      \"sender\": {\n        \"email\": null,\n        \"name\": \"Jane Agent\",\n        \"from_original\": \"Jane Agent <>\"\n      },\n      \"created_at\": 1794470423,\n      \"private\": false,\n      \"content\": \"How can we help?\",\n      \"html_content\": null,\n      \"forwarded\": null\n    },\n    {\n      \"sender\": {\n        \"email\": null,\n        \"name\": \"Jane Agent\",\n        \"from_original\": \"Jane Agent <>\"\n      },\n      \"created_at\": 1794470424,\n      \"private\": false,\n      \"content\": \"It will arrive tomorrow.\",\n      \"html_content\": null,\n      \"forwarded\": null\n    }\n  ]\n}\n```\n\n**Error responses**: `404 {\"error\": \"Message not found\"}`."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/forward_quotes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "forward_quotes"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "2",
                      "description": "Return only the last N messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": [\n    {\n      \"sender\": {\n        \"email\": null,\n        \"name\": \"Jane Agent\",\n        \"from_original\": \"Jane Agent <>\"\n      },\n      \"created_at\": 1794470423,\n      \"private\": false,\n      \"content\": \"How can we help?\",\n      \"html_content\": null,\n      \"forwarded\": null\n    },\n    {\n      \"sender\": {\n        \"email\": null,\n        \"name\": \"Jane Agent\",\n        \"from_original\": \"Jane Agent <>\"\n      },\n      \"created_at\": 1794470424,\n      \"private\": false,\n      \"content\": \"It will arrive tomorrow.\",\n      \"html_content\": null,\n      \"forwarded\": null\n    }\n  ]\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/forward_quotes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "forward_quotes"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "2",
                      "description": "Return only the last N messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/forward_quotes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "forward_quotes"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "2",
                      "description": "Return only the last N messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/forward_quotes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "forward_quotes"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "2",
                      "description": "Return only the last N messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/forward_quotes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "forward_quotes"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "2",
                      "description": "Return only the last N messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 · Message not found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/forward_quotes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "forward_quotes"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "2",
                      "description": "Return only the last N messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Message not found\"\n}"
            },
            {
              "name": "404 · Conversation not found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/conversations/{{conversation_id}}/messages/{{message_id}}/forward_quotes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "conversations",
                    "{{conversation_id}}",
                    "messages",
                    "{{message_id}}",
                    "forward_quotes"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "2",
                      "description": "Return only the last N messages.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Teams",
      "item": [
        {
          "name": "List of all Teams",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/teams",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "teams"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/list-of-all-teams)\n\nList of all teams available in the account.\n\nA team is a group of agents. You can\n[assign a conversation](https://docs.99digital.co.il/online-api/conversations/assign-conversation) to a\nteam, and with `allow_auto_assign` the conversation is then assigned to one\nof the team's available members automatically.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/teams` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token: any agent of the account.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Response:**\n\n```json\n[\n  {\n    \"id\": 7,\n    \"name\": \"support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true,\n    \"account_id\": 12,\n    \"members_count\": 2,\n    \"is_member\": true\n  },\n  {...},\n  {...}\n]\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | The numeric ID of the team |\n| `name` | The name of the team. Stored in lower case, and unique in the account. |\n| `description` | The description about the team |\n| `allow_auto_assign` | Indicates whether the auto assignment setting is enabled: a conversation assigned to the team is then assigned to one of its available members automatically |\n| `account_id` | The numeric ID of the account |\n| `members_count` | The number of members in the team |\n| `is_member` | Indicates whether the current user is a member of the team |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"id\": 7,\n    \"name\": \"support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true,\n    \"account_id\": 12,\n    \"members_count\": 2,\n    \"is_member\": true\n  },\n  {\n    \"id\": 8,\n    \"name\": \"sales\",\n    \"description\": \"\",\n    \"allow_auto_assign\": false,\n    \"account_id\": 12,\n    \"members_count\": 1,\n    \"is_member\": false\n  }\n]"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Create a Team",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/create-a-team)\n\nCreate a new team in an account.\n\nThe new team has no members. Add agents with\n[Add Team Members](https://docs.99digital.co.il/online-api/teams/members/add-team-members).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/teams` |\n| Method | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Teams → create**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Request body:**\n\nThe fields go inside a `team` object. In a JSON request the wrapper is\noptional: top-level fields, as in the example below, are wrapped for you.\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `name` | string | The name of the team. It is converted to lower case before saving, and must be unique in the account (regardless of case). | Yes |\n| `description` | string | The description of the team | No |\n| `allow_auto_assign` | boolean | If set to `true`, the system automatically assigns the conversation to an agent in the team when the conversation is assigned to the team. Default `true`. | No |\n\n**Request body example:**\n\n```json\n{\n  \"name\": \"Support\",\n  \"description\": \"Customer support\",\n  \"allow_auto_assign\": true\n}\n```\n\n**Response:**\n\nThe name is returned in lower case.\n\n```json\n{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"Customer support\",\n  \"allow_auto_assign\": true,\n  \"account_id\": 12,\n  \"members_count\": 0,\n  \"is_member\": false\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | The numeric ID of the team |\n| `name` | The name of the team. Stored in lower case, and unique in the account. |\n| `description` | The description about the team |\n| `allow_auto_assign` | Indicates whether the auto assignment setting is enabled: a conversation assigned to the team is then assigned to one of its available members automatically |\n| `account_id` | The numeric ID of the account |\n| `members_count` | The number of members in the team |\n| `is_member` | Indicates whether the current user is a member of the team |",
          "item": [
            {
              "name": "Team",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const team_id = pick([\"id\"]);",
                      "  if (team_id !== undefined && team_id !== null) {",
                      "    pm.collectionVariables.set(\"team_id\", String(team_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"team\": {\n    \"name\": \"Support\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams"
                  ]
                },
                "description": "A team with a name only.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/teams/create-a-team)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"Customer support\",\n  \"allow_auto_assign\": true,\n  \"account_id\": 12,\n  \"members_count\": 0,\n  \"is_member\": false\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\"\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Name has already been taken\",\n  \"attributes\": [\n    \"name\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "All fields",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const team_id = pick([\"id\"]);",
                      "  if (team_id !== undefined && team_id !== null) {",
                      "    pm.collectionVariables.set(\"team_id\", String(team_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"team\": {\n    \"name\": \"Support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams"
                  ]
                },
                "description": "A name, a description and automatic assignment.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/teams/create-a-team)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"Customer support\",\n  \"allow_auto_assign\": true,\n  \"account_id\": 12,\n  \"members_count\": 0,\n  \"is_member\": false\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"name\": \"Support\",\n    \"description\": \"Customer support\",\n    \"allow_auto_assign\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Name has already been taken\",\n  \"attributes\": [\n    \"name\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Get a Team",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "teams",
                "{{team_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/get-a-team)\n\nRetrieve details about a team in an account.\n\nTo get the team's agents, use\n[List Team Members](https://docs.99digital.co.il/online-api/teams/members/list-team-members).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token: any agent of the account.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `team_id` | The numeric ID of the team | Yes |\n\n**Response:**\n\n```json\n{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"Customer support\",\n  \"allow_auto_assign\": true,\n  \"account_id\": 12,\n  \"members_count\": 2,\n  \"is_member\": true\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | The numeric ID of the team |\n| `name` | The name of the team. Stored in lower case, and unique in the account. |\n| `description` | The description about the team |\n| `allow_auto_assign` | Indicates whether the auto assignment setting is enabled: a conversation assigned to the team is then assigned to one of its available members automatically |\n| `account_id` | The numeric ID of the account |\n| `members_count` | The number of members in the team |\n| `is_member` | Indicates whether the current user is a member of the team |\n\n**Error responses:** `404 {\"error\": \"Resource could not be found\"}` when the\nteam does not exist in the account."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"Customer support\",\n  \"allow_auto_assign\": true,\n  \"account_id\": 12,\n  \"members_count\": 2,\n  \"is_member\": true\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Update a Team",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/update-a-team)\n\nUpdate team details.\n\nOnly the fields you send are changed. To change the members, use\n[Replace Team Members](https://docs.99digital.co.il/online-api/teams/members/replace-team-members).\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}` |\n| Method | JSON via PATCH (`PUT` works the same way) |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Teams → update**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `team_id` | The numeric ID of the team | Yes |\n\n**Request body:**\n\nThe fields go inside a `team` object. In a JSON request the wrapper is\noptional: top-level fields, as in the example below, are wrapped for you.\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `name` | string | The name of the team. It is converted to lower case before saving, and must be unique in the account (regardless of case). | No |\n| `description` | string | The description of the team | No |\n| `allow_auto_assign` | boolean | If set to `true`, the system automatically assigns the conversation to an agent in the team when the conversation is assigned to the team | No |\n\n**Request body example:**\n\n```json\n{\n  \"allow_auto_assign\": false\n}\n```\n\n**Response:**\n\n```json\n{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"Customer support\",\n  \"allow_auto_assign\": false,\n  \"account_id\": 12,\n  \"members_count\": 2,\n  \"is_member\": true\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `id` | The numeric ID of the team |\n| `name` | The name of the team. Stored in lower case, and unique in the account. |\n| `description` | The description about the team |\n| `allow_auto_assign` | Indicates whether the auto assignment setting is enabled: a conversation assigned to the team is then assigned to one of its available members automatically |\n| `account_id` | The numeric ID of the account |\n| `members_count` | The number of members in the team |\n| `is_member` | Indicates whether the current user is a member of the team |",
          "item": [
            {
              "name": "Turn off auto-assignment",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"team\": {\n    \"allow_auto_assign\": false\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                },
                "description": "Stop assigning the team's conversations automatically.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/teams/update-a-team)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"Customer support and returns\",\n  \"allow_auto_assign\": false,\n  \"account_id\": 12,\n  \"members_count\": 2,\n  \"is_member\": true\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Name has already been taken\",\n  \"attributes\": [\n    \"name\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "Description and auto-assignment",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"team\": {\n    \"description\": \"Customer support and returns\",\n    \"allow_auto_assign\": false\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                },
                "description": "Change two fields at once.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/teams/update-a-team)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"description\": \"Customer support and returns\",\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"id\": 7,\n  \"name\": \"support\",\n  \"description\": \"Customer support and returns\",\n  \"allow_auto_assign\": false,\n  \"account_id\": 12,\n  \"members_count\": 2,\n  \"is_member\": true\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"description\": \"Customer support and returns\",\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"description\": \"Customer support and returns\",\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"description\": \"Customer support and returns\",\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"description\": \"Customer support and returns\",\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"description\": \"Customer support and returns\",\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"team\": {\n    \"description\": \"Customer support and returns\",\n    \"allow_auto_assign\": false\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Name has already been taken\",\n  \"attributes\": [\n    \"name\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Delete a Team",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "teams",
                "{{team_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/delete-a-team)\n\nDelete a team from an account.\n\nConversations assigned to the team are kept, and their team is cleared.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}` |\n| Method | JSON via DELETE |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Teams → delete**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `team_id` | The numeric ID of the team | Yes |\n\n**Response:** `200 OK` with an empty body."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Members",
          "item": [
            {
              "name": "List Team Members",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}",
                    "team_members"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/members/list-team-members)\n\nReturns the team's members as agent objects.\n\nEach member is a full agent object; see the response schema below.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `GET` |\n| **Path** | `/api/v1/accounts/{account_id}/teams/{team_id}/team_members` |\n| **Authorization** | User token. Any agent of the account. Not available to agent-bot tokens. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `team_id` | integer | Yes | Team ID. |\n\n**Example request**\n\n```bash\ncurl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/teams/7/team_members' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'\n```\n\n**Example response** (`200 OK`). One member is shown.\n\n```json\n[\n  {\n    \"id\": 52,\n    \"account_id\": 12,\n    \"availability_status\": \"offline\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"dana.levi@example.com\",\n    \"available_name\": \"Dana Levi\",\n    \"custom_attributes\": { \"department\": \"sales\" },\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": false,\n    \"assignable_to_inbox\": [31, 32],\n    \"new_role\": \"Shift Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": null,\n    \"phone1\": \"+972507654321\",\n    \"email1\": null,\n    \"create_time\": 1794470400\n  }\n]\n```"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"jane.agent@example.com\",\n    \"available_name\": \"Jane Agent\",\n    \"custom_attributes\": {},\n    \"name\": \"Jane Agent\",\n    \"role\": \"General Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": true,\n    \"assignable_to_inbox\": [\n      31,\n      32,\n      33\n    ],\n    \"new_role\": \"General Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972541234567\",\n    \"email1\": null,\n    \"create_time\": 1790000000\n  },\n  {\n    \"id\": 53,\n    \"account_id\": 12,\n    \"availability_status\": \"busy\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"omer.katz@example.com\",\n    \"available_name\": \"Omer Katz\",\n    \"custom_attributes\": {},\n    \"name\": \"Omer Katz\",\n    \"role\": \"Agent\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": false,\n    \"assignable_to_inbox\": [\n      31\n    ],\n    \"new_role\": \"Agent\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": null,\n    \"phone1\": null,\n    \"email1\": null,\n    \"create_time\": 1794470700\n  }\n]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                }
              ]
            },
            {
              "name": "Add Team Members",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}",
                    "team_members"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/members/add-team-members)\n\nAdds agents to the team.\n\nAgents who are already members are ignored. Returns only the **newly\nadded** agents.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `POST` |\n| **Path** | `/api/v1/accounts/{account_id}/teams/{team_id}/team_members` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Teams → create**. Not available to agent-bot tokens. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `team_id` | integer | Yes | Team ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `user_ids` | integer[] | Yes | Agent (user) IDs to add. Every ID must belong to the account. |\n\n**Example request**\n\n```bash\ncurl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/teams/7/team_members' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"user_ids\": [52] }'\n```\n\n**Example response** (`200 OK`): an array with the added agent objects, in\nthe same shape as\n[List Team Members](https://docs.99digital.co.il/online-api/teams/members/list-team-members).\n\n**Error responses**\n\n| Status | When | Body |\n| --- | --- | --- |\n| `422` | One of the IDs is not a user of this account. | `{\"error\": \"Invalid User IDs\"}` |"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 52,\n    \"account_id\": 12,\n    \"availability_status\": \"offline\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"dana.levi@example.com\",\n    \"available_name\": \"Dana Levi\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    },\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": false,\n    \"assignable_to_inbox\": [\n      31,\n      32\n    ],\n    \"new_role\": \"Shift Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": null,\n    \"phone1\": \"+972507654321\",\n    \"email1\": null,\n    \"create_time\": 1794470400\n  }\n]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid User IDs\"\n}"
                }
              ]
            },
            {
              "name": "Replace Team Members",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"user_ids\": [\n    51,\n    52\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}",
                    "team_members"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/members/replace-team-members)\n\nSets the team's member list to exactly the agents you send.\n\nThe list becomes exactly `user_ids`: missing agents are added, and members not in the list are removed. Returns the full member list\nafter the change.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `PATCH` |\n| **Path** | `/api/v1/accounts/{account_id}/teams/{team_id}/team_members` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Teams → update**. Not available to agent-bot tokens. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `team_id` | integer | Yes | Team ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `user_ids` | integer[] | Yes | The complete list of member IDs. |\n\n**Example request**: the team had members `51` and `53`; after this call it\nhas `51` and `52`.\n\n```bash\ncurl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/teams/7/team_members' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"user_ids\": [51, 52] }'\n```\n\n**Example response** (`200 OK`): an array of agent objects for all current\nmembers (here the agents with `\"id\": 51` and `\"id\": 52`).\n\n**Error responses**: `422 {\"error\": \"Invalid User IDs\"}`."
              },
              "response": [
                {
                  "name": "200 · Members after the change",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    51,\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "[\n  {\n    \"id\": 51,\n    \"account_id\": 12,\n    \"availability_status\": \"online\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"jane.agent@example.com\",\n    \"available_name\": \"Jane Agent\",\n    \"custom_attributes\": {},\n    \"name\": \"Jane Agent\",\n    \"role\": \"General Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": true,\n    \"assignable_to_inbox\": [\n      31,\n      32,\n      33\n    ],\n    \"new_role\": \"General Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": \"sms\",\n    \"phone1\": \"+972541234567\",\n    \"email1\": null,\n    \"create_time\": 1790000000\n  },\n  {\n    \"id\": 52,\n    \"account_id\": 12,\n    \"availability_status\": \"offline\",\n    \"auto_offline\": true,\n    \"confirmed\": true,\n    \"email\": \"dana.levi@example.com\",\n    \"available_name\": \"Dana Levi\",\n    \"custom_attributes\": {\n      \"department\": \"sales\"\n    },\n    \"name\": \"Dana Levi\",\n    \"role\": \"Shift Manager\",\n    \"operation_bot\": false,\n    \"see_all_conversations\": false,\n    \"assignable_to_inbox\": [\n      31,\n      32\n    ],\n    \"new_role\": \"Shift Manager\",\n    \"thumbnail\": \"\",\n    \"capacity_cap\": null,\n    \"two_factor_type\": null,\n    \"phone1\": \"+972507654321\",\n    \"email1\": null,\n    \"create_time\": 1794470400\n  }\n]"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    51,\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    51,\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    51,\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    51,\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    51,\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    51,\n    52\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid User IDs\"\n}"
                }
              ]
            },
            {
              "name": "Remove Team Members",
              "request": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"user_ids\": [\n    53\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "teams",
                    "{{team_id}}",
                    "team_members"
                  ]
                },
                "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/teams/members/remove-team-members)\n\nRemoves agents from the team.\n\nIDs of agents who are not members are ignored.\nThe IDs go in the JSON body of the `DELETE` request.\n\n| Setting | Value |\n| --- | --- |\n| **Method** | `DELETE` |\n| **Path** | `/api/v1/accounts/{account_id}/teams/{team_id}/team_members` |\n| **Authorization** | User token. Legacy: `administrator`. New rules: **Teams → delete**. Not available to agent-bot tokens. |\n\n**Path parameters**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `account_id` | integer | Yes | Account ID. |\n| `team_id` | integer | Yes | Team ID. |\n\n**Body parameters (JSON)**\n\n| Name | Type | Required | Description |\n| --- | --- | --- | --- |\n| `user_ids` | integer[] | Yes | Agent IDs to remove. IDs that are not members are ignored. |\n\n**Example request**\n\n```bash\ncurl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/teams/7/team_members' \\\n  -H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \"user_ids\": [53] }'\n```\n\n**Example response**: `200 OK` with an empty body.\n\n**Error responses**: `422 {\"error\": \"Invalid User IDs\"}`."
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    53\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "header": [],
                  "body": ""
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    53\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    53\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    53\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    53\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    53\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 Unprocessable Entity",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"user_ids\": [\n    53\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/teams/{{team_id}}/team_members",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "teams",
                        "{{team_id}}",
                        "team_members"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid User IDs\"\n}"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "List Webhooks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "webhooks"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/list-webhooks)\n\nList all webhooks in the account.\n\nA webhook sends an HTTP `POST` with a JSON body to its URL whenever one of\nits subscribed events happens in the account, optionally only for some\ninboxes. [Webhook Events](https://docs.99digital.co.il/online-api/webhooks/webhook-events) describes\nthe events and their payloads.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks` |\n| Method | JSON via GET |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Webhooks → read**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Response:**\n\n```json\n{\n  \"payload\": {\n    \"webhooks\": [\n      {\n        \"id\": 6,\n        \"url\": \"https://example.com/hooks/online-7f3k9\",\n        \"name\": \"CRM sync\",\n        \"account_id\": 12,\n        \"subscriptions\": [\n          \"conversation_created\",\n          \"conversation_status_changed\",\n          \"conversation_updated\",\n          \"message_created_customer\",\n          \"webwidget_triggered\",\n          \"message_updated\",\n          \"contact_created\"\n        ],\n        \"inbox_ids\": [31],\n        \"updated_at\": 1794470400\n      }\n    ]\n  }\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `payload -> webhooks` | Array of objects (webhook) |\n| `payload -> webhooks -> id` | The numeric ID of the webhook |\n| `payload -> webhooks -> url` | The URL to which the events will be sent |\n| `payload -> webhooks -> name` | The display name of the webhook |\n| `payload -> webhooks -> account_id` | The numeric ID of the account |\n| `payload -> webhooks -> subscriptions` | Array of strings (subscribed events) |\n| `payload -> webhooks -> inbox_ids` | Only events that belong to these inboxes are sent. Empty means all inboxes. |\n| `payload -> webhooks -> updated_at` | The last update, as a Unix timestamp |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payload\": {\n    \"webhooks\": [\n      {\n        \"id\": 6,\n        \"url\": \"https://example.com/hooks/online-7f3k9\",\n        \"name\": \"CRM sync\",\n        \"account_id\": 12,\n        \"subscriptions\": [\n          \"conversation_created\",\n          \"message_created_customer\",\n          \"ticket_resolved\"\n        ],\n        \"inbox_ids\": [\n          31\n        ],\n        \"updated_at\": 1794470400\n      }\n    ]\n  }\n}"
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            }
          ]
        },
        {
          "name": "Add Webhook",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/add-webhook)\n\nAdd a new webhook subscription to the account.\n\nFrom now on, Online sends an HTTP `POST` with a JSON body to `url` whenever\none of the `subscriptions` happens. Send `inbox_ids` to get the events of\nsome inboxes only. [Webhook Events](https://docs.99digital.co.il/online-api/webhooks/webhook-events)\ndescribes every event, its payload and how it is delivered.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks` |\n| Method | JSON via POST |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Webhooks → create**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n\n**Request body:**\n\nThe fields go inside a `webhook` object. In a JSON request the wrapper is\noptional: top-level fields, as in the example below, are wrapped for you.\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `url` | string | The URL where the events should be sent. An `http://` or `https://` URL, unique in the account. | Yes |\n| `subscriptions` | array of strings | The events to which you want to be subscribed — at least one. Enum: `conversation_created`, `conversation_status_changed`, `conversation_updated`, `message_created_customer`, `message_created_agent`, `message_created_bot`, `message_updated`, `csat_survey_submitted`, `ticket_resolved`, `webwidget_triggered`, `form_link_generated`, `form_submitted`, `contact_created`, `contact_updated`, `contact_deleted`, `block_list.contact_blocked`, `block_list.contact_unblocked`, `inbox_created`, `inbox_updated`, `agent_status_changed`, `signing_link_updated` | Yes |\n| `name` | string | Display name. | No |\n| `inbox_ids` | array of integers | Limit inbox-related events to these inboxes. Omit or `[]` for all inboxes. Account-wide events (contacts, block list, inboxes, agents, signing links) are always sent. | No |\n\n**Request body example:**\n\n```json\n{\n  \"url\": \"https://example.com/hooks/online-7f3k9\",\n  \"subscriptions\": [\n    \"conversation_created\",\n    \"conversation_status_changed\",\n    \"conversation_updated\",\n    \"message_created_customer\",\n    \"message_created_agent\",\n    \"message_created_bot\",\n    \"message_updated\",\n    \"webwidget_triggered\",\n    \"contact_created\",\n    \"contact_updated\"\n  ]\n}\n```\n\n**Response:**\n\n```json\n{\n  \"payload\": {\n    \"webhook\": {\n      \"id\": 6,\n      \"url\": \"https://example.com/hooks/online-7f3k9\",\n      \"name\": \"\",\n      \"account_id\": 12,\n      \"subscriptions\": [\n        \"conversation_created\",\n        \"conversation_status_changed\",\n        \"conversation_updated\",\n        \"message_created_customer\",\n        \"message_created_agent\",\n        \"message_created_bot\",\n        \"message_updated\",\n        \"webwidget_triggered\",\n        \"contact_created\",\n        \"contact_updated\"\n      ],\n      \"inbox_ids\": [],\n      \"updated_at\": 1794470400\n    }\n  }\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `payload -> webhook` | Object containing the webhook details |\n| `payload -> webhook -> id` | The numeric ID of the webhook |\n| `payload -> webhook -> url` | The URL to which the events will be sent |\n| `payload -> webhook -> name` | The display name of the webhook |\n| `payload -> webhook -> account_id` | The numeric ID of the account |\n| `payload -> webhook -> subscriptions` | Array of strings (subscribed events) |\n| `payload -> webhook -> inbox_ids` | Only events that belong to these inboxes are sent. Empty means all inboxes. |\n| `payload -> webhook -> updated_at` | The last update, as a Unix timestamp |\n\n## Remarks\n\n- The three `message_created_*` subscriptions all deliver a payload with\n  `\"event\": \"message_created\"`. Subscribe to each source you need.\n  `message_created` itself is **not** a valid subscription, and\n  `message_created_` (with a trailing underscore) is accepted but matches no\n  event.\n- Online does not sign its requests and does not retry them, and waits up\n  to 5 seconds for an answer. Use a hard-to-guess URL (for example with a\n  secret token in the path), answer quickly with a `2xx`, and process the\n  event afterwards.",
          "item": [
            {
              "name": "Webhook",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const webhook_id = pick([\"payload\",\"webhook\",\"id\"]);",
                      "  if (webhook_id !== undefined && webhook_id !== null) {",
                      "    pm.collectionVariables.set(\"webhook_id\", String(webhook_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks"
                  ]
                },
                "description": "Get every message the contacts send, in every inbox.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/add-webhook)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"webhook\": {\n      \"id\": 6,\n      \"url\": \"https://example.com/hooks/online-7f3k9\",\n      \"name\": \"CRM sync\",\n      \"account_id\": 12,\n      \"subscriptions\": [\n        \"conversation_created\",\n        \"conversation_status_changed\",\n        \"message_created_customer\",\n        \"message_created_agent\"\n      ],\n      \"inbox_ids\": [\n        31\n      ],\n      \"updated_at\": 1794470400\n    }\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 · URL taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url has already been taken\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid URL",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url is invalid\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid subscriptions",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"message_created_customer\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Subscriptions Invalid events\",\n  \"attributes\": [\n    \"subscriptions\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "One inbox",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code >= 200 && pm.response.code < 300) {",
                      "  let body;",
                      "  try { body = pm.response.json(); } catch (error) { body = undefined; }",
                      "  const pick = (keys) => keys.reduce((node, key) => (node == null ? undefined : node[key]), body);",
                      "  const webhook_id = pick([\"payload\",\"webhook\",\"id\"]);",
                      "  if (webhook_id !== undefined && webhook_id !== null) {",
                      "    pm.collectionVariables.set(\"webhook_id\", String(webhook_id));",
                      "  }",
                      "}"
                    ]
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks"
                  ]
                },
                "description": "Conversation and message events of one inbox, with a name.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/add-webhook)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"webhook\": {\n      \"id\": 6,\n      \"url\": \"https://example.com/hooks/online-7f3k9\",\n      \"name\": \"CRM sync\",\n      \"account_id\": 12,\n      \"subscriptions\": [\n        \"conversation_created\",\n        \"conversation_status_changed\",\n        \"message_created_customer\",\n        \"message_created_agent\"\n      ],\n      \"inbox_ids\": [\n        31\n      ],\n      \"updated_at\": 1794470400\n    }\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "422 · URL taken",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url has already been taken\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid URL",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url is invalid\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid subscriptions",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"url\": \"https://example.com/hooks/online-7f3k9\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"conversation_status_changed\",\n      \"message_created_customer\",\n      \"message_created_agent\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Subscriptions Invalid events\",\n  \"attributes\": [\n    \"subscriptions\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Update Webhook",
          "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/update-webhook)\n\nUpdate a webhook in the account.\n\nOnly the fields you send are changed. `subscriptions` and `inbox_ids`\n**replace** the current lists, so send each list in full.\n[Webhook Events](https://docs.99digital.co.il/online-api/webhooks/webhook-events) describes every\nevent and its payload.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks/{webhook_id}` |\n| Method | JSON via PATCH (`PUT` works the same way) |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Webhooks → update**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `webhook_id` | The numeric ID of the webhook | Yes |\n\n**Request body:**\n\nThe fields go inside a `webhook` object. In a JSON request the wrapper is\noptional: top-level fields, as in the example below, are wrapped for you.\n\n| Parameter | Type | Description | Required |\n| --- | --- | --- | --- |\n| `url` | string | The URL where the events should be sent. An `http://` or `https://` URL, unique in the account. | No |\n| `subscriptions` | array of strings | The events to which you want to be subscribed — at least one. Replaces the current list. Enum: `conversation_created`, `conversation_status_changed`, `conversation_updated`, `message_created_customer`, `message_created_agent`, `message_created_bot`, `message_updated`, `csat_survey_submitted`, `ticket_resolved`, `webwidget_triggered`, `form_link_generated`, `form_submitted`, `contact_created`, `contact_updated`, `contact_deleted`, `block_list.contact_blocked`, `block_list.contact_unblocked`, `inbox_created`, `inbox_updated`, `agent_status_changed`, `signing_link_updated` | No |\n| `name` | string | Display name. | No |\n| `inbox_ids` | array of integers | Limit inbox-related events to these inboxes; replaces the current list. Send `[]` for all inboxes. Account-wide events (contacts, block list, inboxes, agents, signing links) are always sent. | No |\n\n**Request body example:**\n\n```json\n{\n  \"subscriptions\": [\"conversation_created\", \"message_created_customer\"]\n}\n```\n\n**Response:**\n\n```json\n{\n  \"payload\": {\n    \"webhook\": {\n      \"id\": 6,\n      \"url\": \"https://example.com/hooks/online-7f3k9\",\n      \"name\": \"CRM sync\",\n      \"account_id\": 12,\n      \"subscriptions\": [\n        \"conversation_created\",\n        \"message_created_customer\"\n      ],\n      \"inbox_ids\": [31],\n      \"updated_at\": 1794474000\n    }\n  }\n}\n```\n\n**Response-Explain:**\n\n| Parameter | Description |\n| --- | --- |\n| `payload -> webhook` | Object containing the webhook details |\n| `payload -> webhook -> id` | The numeric ID of the webhook |\n| `payload -> webhook -> url` | The URL to which the events will be sent |\n| `payload -> webhook -> name` | The display name of the webhook |\n| `payload -> webhook -> account_id` | The numeric ID of the account |\n| `payload -> webhook -> subscriptions` | Array of strings (subscribed events) |\n| `payload -> webhook -> inbox_ids` | Only events that belong to these inboxes are sent. Empty means all inboxes. |\n| `payload -> webhook -> updated_at` | The last update, as a Unix timestamp |\n\n## Remarks\n\n- The three `message_created_*` subscriptions all deliver a payload with\n  `\"event\": \"message_created\"`. Subscribe to each source you need.\n  `message_created` itself is **not** a valid subscription, and\n  `message_created_` (with a trailing underscore) is accepted but matches no\n  event.",
          "item": [
            {
              "name": "Change the events",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                },
                "description": "Replace the list of subscriptions.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/update-webhook)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"webhook\": {\n      \"id\": 6,\n      \"url\": \"https://example.com/hooks/online-7f3k9\",\n      \"name\": \"CRM sync\",\n      \"account_id\": 12,\n      \"subscriptions\": [\n        \"conversation_created\",\n        \"message_created_customer\",\n        \"ticket_resolved\"\n      ],\n      \"inbox_ids\": [\n        31\n      ],\n      \"updated_at\": 1794474000\n    }\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · URL taken",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url has already been taken\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid URL",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url is invalid\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid subscriptions",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Subscriptions Invalid events\",\n  \"attributes\": [\n    \"subscriptions\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "All inboxes",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                },
                "description": "Remove the inbox filter, so every inbox's events are sent.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/update-webhook)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"webhook\": {\n      \"id\": 6,\n      \"url\": \"https://example.com/hooks/online-7f3k9\",\n      \"name\": \"CRM sync\",\n      \"account_id\": 12,\n      \"subscriptions\": [\n        \"conversation_created\",\n        \"message_created_customer\",\n        \"ticket_resolved\"\n      ],\n      \"inbox_ids\": [\n        31\n      ],\n      \"updated_at\": 1794474000\n    }\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · URL taken",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url has already been taken\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid URL",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url is invalid\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid subscriptions",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"inbox_ids\": []\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Subscriptions Invalid events\",\n  \"attributes\": [\n    \"subscriptions\"\n  ]\n}"
                }
              ]
            },
            {
              "name": "Name, events and inboxes",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                },
                "description": "Change three fields at once.\n\n[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/update-webhook)"
              },
              "response": [
                {
                  "name": "200 OK",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"payload\": {\n    \"webhook\": {\n      \"id\": 6,\n      \"url\": \"https://example.com/hooks/online-7f3k9\",\n      \"name\": \"CRM sync\",\n      \"account_id\": 12,\n      \"subscriptions\": [\n        \"conversation_created\",\n        \"message_created_customer\",\n        \"ticket_resolved\"\n      ],\n      \"inbox_ids\": [\n        31\n      ],\n      \"updated_at\": 1794474000\n    }\n  }\n}"
                },
                {
                  "name": "401 · Invalid token",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
                },
                {
                  "name": "401 · Another account",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
                },
                {
                  "name": "403 · No permission",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
                },
                {
                  "name": "403 · Agent bot",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
                },
                {
                  "name": "404 Not Found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"error\": \"Resource could not be found\"\n}"
                },
                {
                  "name": "422 · URL taken",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url has already been taken\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid URL",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Url is invalid\",\n  \"attributes\": [\n    \"url\"\n  ]\n}"
                },
                {
                  "name": "422 · Invalid subscriptions",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"webhook\": {\n    \"name\": \"CRM sync\",\n    \"subscriptions\": [\n      \"conversation_created\",\n      \"message_created_customer\",\n      \"ticket_resolved\"\n    ],\n    \"inbox_ids\": [\n      31\n    ]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "accounts",
                        "{{account_id}}",
                        "webhooks",
                        "{{webhook_id}}"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "body": "{\n  \"message\": \"Subscriptions Invalid events\",\n  \"attributes\": [\n    \"subscriptions\"\n  ]\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Delete Webhook",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "accounts",
                "{{account_id}}",
                "webhooks",
                "{{webhook_id}}"
              ]
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/delete-webhook)\n\nDelete a webhook from the account.\n\nOnline stops sending events to the webhook's URL.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | `https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks/{webhook_id}` |\n| Method | JSON via DELETE |\n\n**Authorization:**\n\n| Header Parameter | Description |\n| --- | --- |\n| `api_access_token` | User API key |\n\nThe user API key provides access to endpoints based on the user's permission\nlevel, and can be obtained by visiting the profile page.\n\n**Permissions:**\n\n- User token — legacy roles: `administrator`. New rules system:\n  **Webhooks → delete**.\n- Agent-bot token: not allowed.\n\n**Path Parameters:**\n\n| Parameter | Description | Required |\n| --- | --- | --- |\n| `account_id` | The numeric ID of the account | Yes |\n| `webhook_id` | The numeric ID of the webhook | Yes |\n\n**Response:** `200 OK` with an empty body. A second delete returns\n`404 {\"error\": \"Resource could not be found\"}`."
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            },
            {
              "name": "401 · Invalid token",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Invalid Access Token\"\n}"
            },
            {
              "name": "401 · Another account",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to access this account\"\n}"
            },
            {
              "name": "403 · No permission",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"You are not authorized to do this action\"\n}"
            },
            {
              "name": "403 · Agent bot",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Access to this endpoint is not authorized for bots\"\n}"
            },
            {
              "name": "404 Not Found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/accounts/{{account_id}}/webhooks/{{webhook_id}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "accounts",
                    "{{account_id}}",
                    "webhooks",
                    "{{webhook_id}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"Resource could not be found\"\n}"
            }
          ]
        },
        {
          "name": "Message Events",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"message_created\",\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"content_type\": \"text\",\n  \"content_attributes\": {},\n  \"additional_attributes\": {},\n  \"message_type\": \"incoming\",\n  \"private\": false,\n  \"source_id\": null,\n  \"created_at\": \"2026-11-12T08:05:00.000Z\",\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"inbox\": {\n    \"id\": 31,\n    \"name\": \"Website API\"\n  },\n  \"sender\": {\n    \"type\": \"contact\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"email\": \"dana.cohen@example.com\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"avatar\": \"\",\n    \"thumbnail\": \"\",\n    \"account\": {\n      \"id\": 12,\n      \"name\": \"Example Account\"\n    }\n  },\n  \"conversation\": {\n    \"id\": 1501,\n    \"inbox_id\": 31,\n    \"channel\": \"Channel::Api\",\n    \"status\": \"open\",\n    \"priority\": null,\n    \"labels\": [\n      \"vip\"\n    ],\n    \"custom_attributes\": {},\n    \"additional_attributes\": {},\n    \"contact_inbox\": {\n      \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n    },\n    \"messages\": [\n      {\n        \"id\": 40113,\n        \"content\": \"Hi, where is my order?\",\n        \"message_type\": 0\n      }\n    ],\n    \"meta\": {\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"type\": \"contact\"\n      },\n      \"assignee\": null,\n      \"team\": null,\n      \"hmac_verified\": false\n    },\n    \"unread_count\": 1,\n    \"snoozed_until\": null,\n    \"waiting_since\": 1794470700,\n    \"last_activity_at\": 1794470700,\n    \"agent_last_seen_at\": 0,\n    \"contact_last_seen_at\": 0,\n    \"assignee_last_seen_at\": 0,\n    \"timestamp\": 1794470700,\n    \"created_at\": 1794470400\n  },\n  \"allow_unverified_ssl\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{webhook_url}}",
              "host": [
                "{{webhook_url}}"
              ]
            },
            "auth": {
              "type": "noauth"
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/message-events)\n\nOnline sends a message event to your webhook when a message is created or changed, or when the contact answers a CSAT survey.\n\n| Subscription | Sent when | `event` in the payload |\n| --- | --- | --- |\n| `message_created_customer` | The contact sent a message (`message_type` `incoming`). | `message_created` |\n| `message_created_agent` | An agent or an API user sent a message. | `message_created` |\n| `message_created_bot` | An agent bot sent a message. | `message_created` |\n| `message_updated` | A message changed — status, content, deletion, … | `message_updated` |\n| `csat_survey_submitted` | The contact answered a CSAT survey. | `csat_survey_submitted` |\n\nThe three `message_created_*` subscriptions all deliver a payload with\n`\"event\": \"message_created\"`: subscribe to each source you need.\n`message_created` itself is **not** a valid subscription. The event is sent\nonly if its inbox is in the webhook's `inbox_ids`, or `inbox_ids` is empty.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | Your webhook URL — create the webhook with [Add Webhook](https://docs.99digital.co.il/online-api/webhooks/add-webhook) and choose its events in `subscriptions` |\n| Method | JSON via POST |\n\n**Example** — `message_created`, a customer message (the conversation's last message is shortened):\n\n```json\n{\n  \"event\": \"message_created\",\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"content_type\": \"text\",\n  \"content_attributes\": {},\n  \"additional_attributes\": {},\n  \"message_type\": \"incoming\",\n  \"private\": false,\n  \"source_id\": null,\n  \"created_at\": \"2026-11-12T08:05:00.000Z\",\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"inbox\": {\n    \"id\": 31,\n    \"name\": \"Website API\"\n  },\n  \"sender\": {\n    \"type\": \"contact\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"email\": \"dana.cohen@example.com\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"avatar\": \"\",\n    \"thumbnail\": \"\",\n    \"account\": {\n      \"id\": 12,\n      \"name\": \"Example Account\"\n    }\n  },\n  \"conversation\": {\n    \"id\": 1501,\n    \"inbox_id\": 31,\n    \"channel\": \"Channel::Api\",\n    \"status\": \"open\",\n    \"priority\": null,\n    \"labels\": [\n      \"vip\"\n    ],\n    \"custom_attributes\": {},\n    \"additional_attributes\": {},\n    \"contact_inbox\": {\n      \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n    },\n    \"messages\": [\n      {\n        \"id\": 40113,\n        \"content\": \"Hi, where is my order?\",\n        \"message_type\": 0\n      }\n    ],\n    \"meta\": {\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"type\": \"contact\"\n      },\n      \"assignee\": null,\n      \"team\": null,\n      \"hmac_verified\": false\n    },\n    \"unread_count\": 1,\n    \"snoozed_until\": null,\n    \"waiting_since\": 1794470700,\n    \"last_activity_at\": 1794470700,\n    \"agent_last_seen_at\": 0,\n    \"contact_last_seen_at\": 0,\n    \"assignee_last_seen_at\": 0,\n    \"timestamp\": 1794470700,\n    \"created_at\": 1794470400\n  },\n  \"allow_unverified_ssl\": false\n}\n```\n\n### Payload explained\n\n| Parameter | Description / Example |\n| --- | --- |\n| `event` | What happened. See the values below. |\n| `id` | The message ID. |\n| `content` | The text. |\n| `content_type` | The kind of content — `text` unless the message is interactive. The values are those of the message object (see [List of Messages](https://docs.99digital.co.il/online-api/messages/list-of-messages)). |\n| `content_attributes` | Data for the content type, as in the message object. |\n| `additional_attributes` | Extra data of the message. |\n| `message_type` | Who the message is from, as a word. See the values below. |\n| `private` | `true` for a private note: seen by agents only, never sent to the contact. |\n| `source_id` | The message's ID on the external channel, or `null`. |\n| `created_at` | When the message was created (ISO 8601, with milliseconds). |\n| `account` | The account. |\n| `inbox` | The inbox. |\n| `sender` | Who sent the message. The fields listed are a contact's (`type` `contact`). |\n| `conversation` | The conversation the message belongs to. |\n| `allow_unverified_ssl` | Added by Online to every payload. |\n\n#### `event`\n\n| Value | Explanation |\n| --- | --- |\n| message_created | A message was created. Sent for the sources you subscribed to: `message_created_customer`, `message_created_agent`, `message_created_bot`. |\n| message_updated | A message changed — status, content, deletion, … |\n| csat_survey_submitted | The contact answered a CSAT survey. |\n\n#### `message_type`\n\n| Value | Explanation |\n| --- | --- |\n| incoming | From the contact. |\n| outgoing | From an agent, a bot or the API. |\n| activity | A system note, such as \"Conversation was resolved\". |\n| template | A template message. |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"message_created\",\n  \"id\": 40113,\n  \"content\": \"Hi, where is my order?\",\n  \"content_type\": \"text\",\n  \"content_attributes\": {},\n  \"additional_attributes\": {},\n  \"message_type\": \"incoming\",\n  \"private\": false,\n  \"source_id\": null,\n  \"created_at\": \"2026-11-12T08:05:00.000Z\",\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"inbox\": {\n    \"id\": 31,\n    \"name\": \"Website API\"\n  },\n  \"sender\": {\n    \"type\": \"contact\",\n    \"id\": 801,\n    \"name\": \"Dana Cohen\",\n    \"email\": \"dana.cohen@example.com\",\n    \"phone_number\": \"+972501234567\",\n    \"identifier\": \"crm-801\",\n    \"additional_attributes\": {\n      \"company_name\": \"Example Ltd\",\n      \"city\": \"Tel Aviv\"\n    },\n    \"custom_attributes\": {\n      \"customer_tier\": \"gold\"\n    },\n    \"avatar\": \"\",\n    \"thumbnail\": \"\",\n    \"account\": {\n      \"id\": 12,\n      \"name\": \"Example Account\"\n    }\n  },\n  \"conversation\": {\n    \"id\": 1501,\n    \"inbox_id\": 31,\n    \"channel\": \"Channel::Api\",\n    \"status\": \"open\",\n    \"priority\": null,\n    \"labels\": [\n      \"vip\"\n    ],\n    \"custom_attributes\": {},\n    \"additional_attributes\": {},\n    \"contact_inbox\": {\n      \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n    },\n    \"messages\": [\n      {\n        \"id\": 40113,\n        \"content\": \"Hi, where is my order?\",\n        \"message_type\": 0\n      }\n    ],\n    \"meta\": {\n      \"sender\": {\n        \"id\": 801,\n        \"name\": \"Dana Cohen\",\n        \"type\": \"contact\"\n      },\n      \"assignee\": null,\n      \"team\": null,\n      \"hmac_verified\": false\n    },\n    \"unread_count\": 1,\n    \"snoozed_until\": null,\n    \"waiting_since\": 1794470700,\n    \"last_activity_at\": 1794470700,\n    \"agent_last_seen_at\": 0,\n    \"contact_last_seen_at\": 0,\n    \"assignee_last_seen_at\": 0,\n    \"timestamp\": 1794470700,\n    \"created_at\": 1794470400\n  },\n  \"allow_unverified_ssl\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{webhook_url}}",
                  "host": [
                    "{{webhook_url}}"
                  ]
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Conversation Events",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"conversation_status_changed\",\n  \"id\": 1501,\n  \"inbox_id\": 31,\n  \"channel\": \"Channel::Api\",\n  \"status\": \"resolved\",\n  \"priority\": null,\n  \"labels\": [\n    \"vip\"\n  ],\n  \"custom_attributes\": {},\n  \"additional_attributes\": {},\n  \"contact_inbox\": {\n    \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n  },\n  \"messages\": [\n    {\n      \"id\": 40114,\n      \"content\": \"Your order A-1001 is ready for pickup.\",\n      \"message_type\": 1\n    }\n  ],\n  \"meta\": {\n    \"sender\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"type\": \"contact\"\n    },\n    \"assignee\": null,\n    \"team\": null,\n    \"hmac_verified\": false\n  },\n  \"unread_count\": 0,\n  \"snoozed_until\": null,\n  \"waiting_since\": 0,\n  \"last_activity_at\": 1794474000,\n  \"agent_last_seen_at\": 1794473900,\n  \"contact_last_seen_at\": 0,\n  \"assignee_last_seen_at\": 0,\n  \"timestamp\": 1794474000,\n  \"created_at\": 1794470400,\n  \"changed_attributes\": [\n    {\n      \"status\": {\n        \"previous_value\": \"open\",\n        \"current_value\": \"resolved\"\n      }\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{webhook_url}}",
              "host": [
                "{{webhook_url}}"
              ]
            },
            "auth": {
              "type": "noauth"
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/conversation-events)\n\nOnline sends a conversation event to your webhook when a conversation is created, its status changes, or it changes in any other way.\n\n| Subscription | Sent when |\n| --- | --- |\n| `conversation_created` | A conversation is created. |\n| `conversation_status_changed` | A conversation's status changes (Bot, Manual, snoozed or resolved). |\n| `conversation_updated` | A conversation changes — assignee, team, labels, custom attributes, priority, … Includes `changed_attributes`, and also `sender`. |\n\nThe payload is the conversation's fields, at the top level.\n`changed_attributes` lists the changes, for example\n`[{\"status\": {\"previous_value\": \"open\", \"current_value\": \"resolved\"}}]`.\nThe event is sent only if its inbox is in the webhook's `inbox_ids`, or\n`inbox_ids` is empty.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | Your webhook URL — create the webhook with [Add Webhook](https://docs.99digital.co.il/online-api/webhooks/add-webhook) and choose its events in `subscriptions` |\n| Method | JSON via POST |\n\n**Example** — `conversation_status_changed` (the last message is shortened):\n\n```json\n{\n  \"event\": \"conversation_status_changed\",\n  \"id\": 1501,\n  \"inbox_id\": 31,\n  \"channel\": \"Channel::Api\",\n  \"status\": \"resolved\",\n  \"priority\": null,\n  \"labels\": [\n    \"vip\"\n  ],\n  \"custom_attributes\": {},\n  \"additional_attributes\": {},\n  \"contact_inbox\": {\n    \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n  },\n  \"messages\": [\n    {\n      \"id\": 40114,\n      \"content\": \"Your order A-1001 is ready for pickup.\",\n      \"message_type\": 1\n    }\n  ],\n  \"meta\": {\n    \"sender\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"type\": \"contact\"\n    },\n    \"assignee\": null,\n    \"team\": null,\n    \"hmac_verified\": false\n  },\n  \"unread_count\": 0,\n  \"snoozed_until\": null,\n  \"waiting_since\": 0,\n  \"last_activity_at\": 1794474000,\n  \"agent_last_seen_at\": 1794473900,\n  \"contact_last_seen_at\": 0,\n  \"assignee_last_seen_at\": 0,\n  \"timestamp\": 1794474000,\n  \"created_at\": 1794470400,\n  \"changed_attributes\": [\n    {\n      \"status\": {\n        \"previous_value\": \"open\",\n        \"current_value\": \"resolved\"\n      }\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}\n```\n\n### Payload explained\n\n| Parameter | Description / Example |\n| --- | --- |\n| `event` | What happened. See the values below. |\n| `id` | The conversation's display ID. |\n| `inbox_id` | The inbox ID. |\n| `channel` | The inbox's channel type, for example `Channel::Api`. |\n| `status` | The status. The dashboard calls `open` **Bot** and `pending` **Manual**. See the values below. |\n| `priority` | The priority, or `null`. |\n| `labels` | The titles of the conversation's labels. |\n| `custom_attributes` | The conversation's custom attributes. |\n| `additional_attributes` | Channel or system data of the conversation. |\n| `contact_inbox` | The contact's link to the inbox. |\n| `messages` | The conversation's last message. |\n| `meta` | The conversation's people. |\n| `unread_count` | Incoming messages the agents have not read. |\n| `snoozed_until` | When a snoozed conversation reopens, or `null`. |\n| `waiting_since` | Since when the contact has been waiting for a reply (Unix time, seconds), or `0`. |\n| `last_activity_at` | The last activity (Unix time, seconds). |\n| `agent_last_seen_at` | When an agent last read the conversation (Unix time, seconds), or `0`. |\n| `contact_last_seen_at` | When the contact last read the conversation (Unix time, seconds), or `0`. |\n| `assignee_last_seen_at` | When the assignee last read the conversation (Unix time, seconds), or `0`. |\n| `timestamp` | The same as `last_activity_at`. |\n| `created_at` | When the conversation was created (Unix time, seconds). |\n| `changed_attributes` | What changed: one object per attribute, keyed by its name, with its `previous_value` and `current_value`. |\n| `sender` | Included with `conversation_updated`. |\n| `allow_unverified_ssl` | Added by Online to every payload. |\n\n#### `event`\n\n| Value | Explanation |\n| --- | --- |\n| conversation_created | A conversation was created. |\n| conversation_status_changed | The conversation's status changed. |\n| conversation_updated | The conversation changed — assignee, team, labels, custom attributes, priority, … |\n\n#### `status`\n\n| Value | Explanation |\n| --- | --- |\n| open | Bot — handled by the bot or automation. |\n| pending | Manual — handled by a human agent. |\n| snoozed | Hidden until it is reopened. |\n| resolved | Closed. |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"conversation_status_changed\",\n  \"id\": 1501,\n  \"inbox_id\": 31,\n  \"channel\": \"Channel::Api\",\n  \"status\": \"resolved\",\n  \"priority\": null,\n  \"labels\": [\n    \"vip\"\n  ],\n  \"custom_attributes\": {},\n  \"additional_attributes\": {},\n  \"contact_inbox\": {\n    \"source_id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\"\n  },\n  \"messages\": [\n    {\n      \"id\": 40114,\n      \"content\": \"Your order A-1001 is ready for pickup.\",\n      \"message_type\": 1\n    }\n  ],\n  \"meta\": {\n    \"sender\": {\n      \"id\": 801,\n      \"name\": \"Dana Cohen\",\n      \"type\": \"contact\"\n    },\n    \"assignee\": null,\n    \"team\": null,\n    \"hmac_verified\": false\n  },\n  \"unread_count\": 0,\n  \"snoozed_until\": null,\n  \"waiting_since\": 0,\n  \"last_activity_at\": 1794474000,\n  \"agent_last_seen_at\": 1794473900,\n  \"contact_last_seen_at\": 0,\n  \"assignee_last_seen_at\": 0,\n  \"timestamp\": 1794474000,\n  \"created_at\": 1794470400,\n  \"changed_attributes\": [\n    {\n      \"status\": {\n        \"previous_value\": \"open\",\n        \"current_value\": \"resolved\"\n      }\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{webhook_url}}",
                  "host": [
                    "{{webhook_url}}"
                  ]
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Contact Events",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"contact_updated\",\n  \"type\": \"contact\",\n  \"id\": 801,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  },\n  \"avatar\": \"\",\n  \"thumbnail\": \"\",\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"changed_attributes\": [\n    {\n      \"name\": {\n        \"previous_value\": \"Dana\",\n        \"current_value\": \"Dana Cohen\"\n      }\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{webhook_url}}",
              "host": [
                "{{webhook_url}}"
              ]
            },
            "auth": {
              "type": "noauth"
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/contact-events)\n\nOnline sends a contact event to your webhook when a contact is created, changed or deleted.\n\n| Subscription | Sent when |\n| --- | --- |\n| `contact_created` | A contact was created. |\n| `contact_updated` | A contact changed. Includes `changed_attributes`. |\n| `contact_deleted` | A contact was deleted. |\n\nThe payload is the contact. Contact events are account-wide: they are sent\nfor every inbox, whatever the webhook's `inbox_ids`.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | Your webhook URL — create the webhook with [Add Webhook](https://docs.99digital.co.il/online-api/webhooks/add-webhook) and choose its events in `subscriptions` |\n| Method | JSON via POST |\n\n**Example** — `contact_updated`:\n\n```json\n{\n  \"event\": \"contact_updated\",\n  \"type\": \"contact\",\n  \"id\": 801,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  },\n  \"avatar\": \"\",\n  \"thumbnail\": \"\",\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"changed_attributes\": [\n    {\n      \"name\": {\n        \"previous_value\": \"Dana\",\n        \"current_value\": \"Dana Cohen\"\n      }\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}\n```\n\n### Payload explained\n\n| Parameter | Description / Example |\n| --- | --- |\n| `event` | What happened. See the values below. |\n| `type` | Always `contact`. |\n| `id` | The contact ID. |\n| `name` | The name. |\n| `email` | The email. |\n| `phone_number` | The phone number in E.164 format. |\n| `identifier` | Your own external ID for the contact. |\n| `additional_attributes` | Standard extra fields, such as `company_name` and `city`. |\n| `custom_attributes` | The contact's custom attributes. |\n| `avatar` | The avatar URL, or an empty string. |\n| `thumbnail` | The avatar thumbnail URL, or an empty string. |\n| `account` | The account. |\n| `changed_attributes` | `contact_updated` only. What changed: one object per attribute, keyed by its name, with its `previous_value` and `current_value`. |\n| `allow_unverified_ssl` | Added by Online to every payload. |\n\n#### `event`\n\n| Value | Explanation |\n| --- | --- |\n| contact_created | A contact was created. |\n| contact_updated | A contact changed. |\n| contact_deleted | A contact was deleted. |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"contact_updated\",\n  \"type\": \"contact\",\n  \"id\": 801,\n  \"name\": \"Dana Cohen\",\n  \"email\": \"dana.cohen@example.com\",\n  \"phone_number\": \"+972501234567\",\n  \"identifier\": \"crm-801\",\n  \"additional_attributes\": {\n    \"company_name\": \"Example Ltd\",\n    \"city\": \"Tel Aviv\"\n  },\n  \"custom_attributes\": {\n    \"customer_tier\": \"gold\"\n  },\n  \"avatar\": \"\",\n  \"thumbnail\": \"\",\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"changed_attributes\": [\n    {\n      \"name\": {\n        \"previous_value\": \"Dana\",\n        \"current_value\": \"Dana Cohen\"\n      }\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{webhook_url}}",
                  "host": [
                    "{{webhook_url}}"
                  ]
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Block-List Events",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"block_list.contact_blocked\",\n  \"account_id\": 12,\n  \"timestamp\": 1794471000,\n  \"contact\": {\n    \"id\": 801,\n    \"phone_number\": \"+972501234567\",\n    \"normalized_phone\": \"972501234567\"\n  },\n  \"source\": \"api\",\n  \"allow_unverified_ssl\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{webhook_url}}",
              "host": [
                "{{webhook_url}}"
              ]
            },
            "auth": {
              "type": "noauth"
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/block-list-events)\n\nOnline sends a block-list event to your webhook when a contact is [blocked](https://docs.99digital.co.il/online-api/contacts/block-contact) or [unblocked](https://docs.99digital.co.il/online-api/contacts/unblock-contact).\n\n| Subscription | Sent when |\n| --- | --- |\n| `block_list.contact_blocked` | A contact was blocked. |\n| `block_list.contact_unblocked` | A contact was unblocked. |\n\nBlock-list events are account-wide: they are sent for every inbox, whatever\nthe webhook's `inbox_ids`.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | Your webhook URL — create the webhook with [Add Webhook](https://docs.99digital.co.il/online-api/webhooks/add-webhook) and choose its events in `subscriptions` |\n| Method | JSON via POST |\n\n**Example** — `block_list.contact_blocked`:\n\n```json\n{\n  \"event\": \"block_list.contact_blocked\",\n  \"account_id\": 12,\n  \"timestamp\": 1794471000,\n  \"contact\": {\n    \"id\": 801,\n    \"phone_number\": \"+972501234567\",\n    \"normalized_phone\": \"972501234567\"\n  },\n  \"source\": \"api\",\n  \"allow_unverified_ssl\": false\n}\n```\n\n### Payload explained\n\n| Parameter | Description / Example |\n| --- | --- |\n| `event` | What happened. See the values below. |\n| `account_id` | The account ID. |\n| `timestamp` | When it happened (Unix time, seconds). |\n| `contact` | The contact. |\n| `source` | How the contact was blocked or unblocked. See the values below. |\n| `allow_unverified_ssl` | Added by Online to every payload. |\n\n#### `event`\n\n| Value | Explanation |\n| --- | --- |\n| block_list.contact_blocked | A contact was blocked. |\n| block_list.contact_unblocked | A contact was unblocked. |\n\n#### `source`\n\n| Value | Explanation |\n| --- | --- |\n| api | With an access token, through the API. |\n| manual | Not through the API — for example by an agent in the dashboard. |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"block_list.contact_blocked\",\n  \"account_id\": 12,\n  \"timestamp\": 1794471000,\n  \"contact\": {\n    \"id\": 801,\n    \"phone_number\": \"+972501234567\",\n    \"normalized_phone\": \"972501234567\"\n  },\n  \"source\": \"api\",\n  \"allow_unverified_ssl\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{webhook_url}}",
                  "host": [
                    "{{webhook_url}}"
                  ]
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Ticket Resolved",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"ticket_resolved\",\n  \"ticket\": {\n    \"id\": 902,\n    \"status\": \"closed\",\n    \"conversation_id\": 1501,\n    \"inbox_id\": 31,\n    \"opened_at\": 1794470400,\n    \"resolved_at\": 1794474000,\n    \"channel\": \"Channel::Api\",\n    \"priority\": null,\n    \"labels\": [\n      \"vip\"\n    ],\n    \"custom_attributes\": {},\n    \"additional_attributes\": {},\n    \"ticket_custom_attributes\": {\n      \"case_type\": \"delivery\"\n    },\n    \"metrics\": {\n      \"duration_seconds\": 3600\n    }\n  },\n  \"conversation\": {\n    \"id\": 1501\n  },\n  \"messages\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\"\n    }\n  ],\n  \"contact\": {\n    \"id\": 801,\n    \"name\": \"Dana Cohen\"\n  },\n  \"assignee\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\"\n  },\n  \"allow_unverified_ssl\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{webhook_url}}",
              "host": [
                "{{webhook_url}}"
              ]
            },
            "auth": {
              "type": "noauth"
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/ticket-resolved)\n\nOnline sends `ticket_resolved` to your webhook when a [ticket](https://docs.99digital.co.il/online-api/tickets/list-tickets) was closed (the conversation was resolved).\n\n| Subscription | Sent when |\n| --- | --- |\n| `ticket_resolved` | A ticket was closed (the conversation was resolved). |\n\nThe payload is the closed ticket, with its conversation, messages, contact and\nassignee. The event is sent only if its inbox is in the webhook's\n`inbox_ids`, or `inbox_ids` is empty.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | Your webhook URL — create the webhook with [Add Webhook](https://docs.99digital.co.il/online-api/webhooks/add-webhook) and choose its events in `subscriptions` |\n| Method | JSON via POST |\n\n**Example** (`conversation`, `messages`, `contact` and `assignee` are shortened):\n\n```json\n{\n  \"event\": \"ticket_resolved\",\n  \"ticket\": {\n    \"id\": 902,\n    \"status\": \"closed\",\n    \"conversation_id\": 1501,\n    \"inbox_id\": 31,\n    \"opened_at\": 1794470400,\n    \"resolved_at\": 1794474000,\n    \"channel\": \"Channel::Api\",\n    \"priority\": null,\n    \"labels\": [\n      \"vip\"\n    ],\n    \"custom_attributes\": {},\n    \"additional_attributes\": {},\n    \"ticket_custom_attributes\": {\n      \"case_type\": \"delivery\"\n    },\n    \"metrics\": {\n      \"duration_seconds\": 3600\n    }\n  },\n  \"conversation\": {\n    \"id\": 1501\n  },\n  \"messages\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\"\n    }\n  ],\n  \"contact\": {\n    \"id\": 801,\n    \"name\": \"Dana Cohen\"\n  },\n  \"assignee\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\"\n  },\n  \"allow_unverified_ssl\": false\n}\n```\n\n### Payload explained\n\n| Parameter | Description / Example |\n| --- | --- |\n| `event` | A ticket was closed (the conversation was resolved). |\n| `ticket` | The ticket. See [List Tickets](https://docs.99digital.co.il/online-api/tickets/list-tickets). |\n| `conversation` | The conversation. |\n| `messages` | The messages. |\n| `contact` | The contact. |\n| `assignee` | The assigned agent, or `null`. |\n| `allow_unverified_ssl` | Added by Online to every payload. |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"ticket_resolved\",\n  \"ticket\": {\n    \"id\": 902,\n    \"status\": \"closed\",\n    \"conversation_id\": 1501,\n    \"inbox_id\": 31,\n    \"opened_at\": 1794470400,\n    \"resolved_at\": 1794474000,\n    \"channel\": \"Channel::Api\",\n    \"priority\": null,\n    \"labels\": [\n      \"vip\"\n    ],\n    \"custom_attributes\": {},\n    \"additional_attributes\": {},\n    \"ticket_custom_attributes\": {\n      \"case_type\": \"delivery\"\n    },\n    \"metrics\": {\n      \"duration_seconds\": 3600\n    }\n  },\n  \"conversation\": {\n    \"id\": 1501\n  },\n  \"messages\": [\n    {\n      \"id\": 40113,\n      \"content\": \"Hi, where is my order?\"\n    }\n  ],\n  \"contact\": {\n    \"id\": 801,\n    \"name\": \"Dana Cohen\"\n  },\n  \"assignee\": {\n    \"id\": 51,\n    \"name\": \"Jane Agent\"\n  },\n  \"allow_unverified_ssl\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{webhook_url}}",
                  "host": [
                    "{{webhook_url}}"
                  ]
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Agent Status Changed",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"agent_status_changed\",\n  \"occurred_at\": 1794471000,\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"agent\": {\n    \"id\": 53,\n    \"name\": \"Omer Katz\"\n  },\n  \"status_change\": {\n    \"previous_status\": \"online\",\n    \"new_status\": \"busy\"\n  },\n  \"allow_unverified_ssl\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{webhook_url}}",
              "host": [
                "{{webhook_url}}"
              ]
            },
            "auth": {
              "type": "noauth"
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/agent-status-changed)\n\nOnline sends `agent_status_changed` to your webhook when an agent's availability changed (online, busy or offline).\n\n| Subscription | Sent when |\n| --- | --- |\n| `agent_status_changed` | An agent's availability changed (online, busy or offline). |\n\nThis event is account-wide: it is sent for every inbox, whatever the\nwebhook's `inbox_ids`.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | Your webhook URL — create the webhook with [Add Webhook](https://docs.99digital.co.il/online-api/webhooks/add-webhook) and choose its events in `subscriptions` |\n| Method | JSON via POST |\n\n**Example** (`agent` is shortened):\n\n```json\n{\n  \"event\": \"agent_status_changed\",\n  \"occurred_at\": 1794471000,\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"agent\": {\n    \"id\": 53,\n    \"name\": \"Omer Katz\"\n  },\n  \"status_change\": {\n    \"previous_status\": \"online\",\n    \"new_status\": \"busy\"\n  },\n  \"allow_unverified_ssl\": false\n}\n```\n\n### Payload explained\n\n| Parameter | Description / Example |\n| --- | --- |\n| `event` | An agent's availability changed. |\n| `occurred_at` | When it happened. |\n| `account` | The account. |\n| `agent` | The agent. |\n| `status_change` | The availability before and after the change. |\n| `allow_unverified_ssl` | Added by Online to every payload. |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"agent_status_changed\",\n  \"occurred_at\": 1794471000,\n  \"account\": {\n    \"id\": 12,\n    \"name\": \"Example Account\"\n  },\n  \"agent\": {\n    \"id\": 53,\n    \"name\": \"Omer Katz\"\n  },\n  \"status_change\": {\n    \"previous_status\": \"online\",\n    \"new_status\": \"busy\"\n  },\n  \"allow_unverified_ssl\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{webhook_url}}",
                  "host": [
                    "{{webhook_url}}"
                  ]
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Form Events",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"form_submitted\",\n  \"form\": {\n    \"id\": \"45\",\n    \"name\": \"Event registration\"\n  },\n  \"contact\": {\n    \"id\": 801,\n    \"name\": \"Dana Cohen\"\n  },\n  \"conversation\": {\n    \"id\": 1501\n  },\n  \"answers\": [\n    {\n      \"field_id\": \"email\",\n      \"value\": \"dana.cohen@example.com\",\n      \"type\": \"email\"\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{webhook_url}}",
              "host": [
                "{{webhook_url}}"
              ]
            },
            "auth": {
              "type": "noauth"
            },
            "description": "[Open in the documentation](https://docs.99digital.co.il/online-api/webhooks/form-events)\n\nOnline sends a form event to your webhook when a [form link](https://docs.99digital.co.il/online-api/forms/generate-form-link) is generated, and when a contact submits a form.\n\n| Subscription | Sent when |\n| --- | --- |\n| `form_link_generated` | A form link was generated. |\n| `form_submitted` | A contact submitted a form. |\n\nThe payload is the form submission: its form, link, contact and conversation,\nplus the answers for `form_submitted`. When the link or the submission\nbelongs to a conversation, the event is sent only if its inbox is in the\nwebhook's `inbox_ids`, or `inbox_ids` is empty.\n\n**Settings:**\n\n| Setting | Value |\n| --- | --- |\n| URL | Your webhook URL — create the webhook with [Add Webhook](https://docs.99digital.co.il/online-api/webhooks/add-webhook) and choose its events in `subscriptions` |\n| Method | JSON via POST |\n\n**Example** — `form_submitted` (shortened: `link` is left out, and the other objects show a few fields):\n\n```json\n{\n  \"event\": \"form_submitted\",\n  \"form\": {\n    \"id\": \"45\",\n    \"name\": \"Event registration\"\n  },\n  \"contact\": {\n    \"id\": 801,\n    \"name\": \"Dana Cohen\"\n  },\n  \"conversation\": {\n    \"id\": 1501\n  },\n  \"answers\": [\n    {\n      \"field_id\": \"email\",\n      \"value\": \"dana.cohen@example.com\",\n      \"type\": \"email\"\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}\n```\n\n### Payload explained\n\n| Parameter | Description / Example |\n| --- | --- |\n| `event` | What happened. See the values below. |\n| `form` | The form. |\n| `link` | The form link. |\n| `contact` | The contact. |\n| `conversation` | The conversation, when the link belongs to one. |\n| `answers` | `form_submitted` only: the contact's answers. |\n| `allow_unverified_ssl` | Added by Online to every payload. |\n\n#### `event`\n\n| Value | Explanation |\n| --- | --- |\n| form_link_generated | A form link was generated with [Generate Form Link](https://docs.99digital.co.il/online-api/forms/generate-form-link). |\n| form_submitted | A contact submitted a form. |"
          },
          "response": [
            {
              "name": "200 OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"form_submitted\",\n  \"form\": {\n    \"id\": \"45\",\n    \"name\": \"Event registration\"\n  },\n  \"contact\": {\n    \"id\": 801,\n    \"name\": \"Dana Cohen\"\n  },\n  \"conversation\": {\n    \"id\": 1501\n  },\n  \"answers\": [\n    {\n      \"field_id\": \"email\",\n      \"value\": \"dana.cohen@example.com\",\n      \"type\": \"email\"\n    }\n  ],\n  \"allow_unverified_ssl\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{webhook_url}}",
                  "host": [
                    "{{webhook_url}}"
                  ]
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "header": [],
              "body": ""
            }
          ]
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "https://online.99digital.co.il/api/v1",
      "description": "The Online API base URL. Change the domain only if your account runs on its own Online domain.",
      "type": "string"
    },
    {
      "key": "api_access_token",
      "value": "",
      "description": "Your access token: Online dashboard → Profile settings → Access Token. Keep it secret.",
      "type": "string"
    },
    {
      "key": "account_id",
      "value": "",
      "description": "Your account ID: the number after /app/accounts/ in your dashboard URL.",
      "type": "string"
    },
    {
      "key": "agent_id",
      "value": "",
      "description": "The numeric ID of the agent (the agent's user ID).",
      "type": "string"
    },
    {
      "key": "contact_id",
      "value": "",
      "description": "The numeric ID of the contact.",
      "type": "string"
    },
    {
      "key": "note_id",
      "value": "",
      "description": "The note's ID, as returned by [List Contact Notes](/online-api/contacts/notes/list-contact-notes).",
      "type": "string"
    },
    {
      "key": "file_id",
      "value": "",
      "description": "The file's ID, as returned by [List Contact Files](/online-api/contacts/files/list-contact-files).",
      "type": "string"
    },
    {
      "key": "conversation_id",
      "value": "",
      "description": "The numeric ID of the conversation: its display ID, which is the `id` in conversation responses and the number in the dashboard URL.",
      "type": "string"
    },
    {
      "key": "event_id",
      "value": "",
      "description": "The event's ID, as returned by [List Conversation Events](/online-api/conversations/list-conversation-events).",
      "type": "string"
    },
    {
      "key": "ticket_id",
      "value": "",
      "description": "The numeric ID of the ticket. The ticket must belong to the conversation.",
      "type": "string"
    },
    {
      "key": "form_id",
      "value": "",
      "description": "The form's `publicId`, as returned by [List Forms](/online-api/forms/list-forms).",
      "type": "string"
    },
    {
      "key": "submission_id",
      "value": "",
      "description": "The submission's ID (a UUID), as returned by [List Form Submissions](/online-api/forms/list-form-submissions).",
      "type": "string"
    },
    {
      "key": "label_id",
      "value": "",
      "description": "The numeric ID of the label.",
      "type": "string"
    },
    {
      "key": "message_id",
      "value": "",
      "description": "The numeric ID of the message.",
      "type": "string"
    },
    {
      "key": "team_id",
      "value": "",
      "description": "The numeric ID of the team.",
      "type": "string"
    },
    {
      "key": "webhook_id",
      "value": "",
      "description": "The numeric ID of the webhook.",
      "type": "string"
    },
    {
      "key": "webhook_url",
      "value": "https://example.com/your-webhook",
      "description": "Your webhook endpoint, for the samples in Webhooks → Webhook Events.",
      "type": "string"
    }
  ]
}
