> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-parschat.parstechai.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-parschat.parstechai.com/_mcp/server.

# chat

POST 

A conversation changed state. `status` is the new state and `previous_status` is what it was before.

Each status means something different for your side, so branch on it rather than storing the string. `operator_attention` is the one to raise an alert on: it means a human is needed.

`closed` carries two extra fields, `context_reset` and `message_count`. **`context_reset` is not a deletion flag** — nothing is deleted, the prior history simply stops being replayed to the AI as context. A partner who treated it as a deletion instruction would discard a transcript we still hold.

Reference: https://docs-parschat.parstechai.com/api-reference/webhook-events/chat-webhook

## Request

### Payload

- `schema_version` (string, optional) — Semver for the payload shape. Fields are added without a major bump; nothing is removed or repurposed without one.
- `event` (string, optional) — Which event this is.
- `delivery_id` (string, optional) — Unique per delivery attempt. Log it, and use it to detect a redelivery.
- `occurred_at` (datetime, optional) — When the event happened.
- `robot_id` (string, optional) — The robot it belongs to.
- `external_id` (string, optional) — Your own id for that robot, echoed on every event so you never need a lookup table.
- `channel_id` (string, optional) — The channel it arrived on.
- `data` (WebhooksChatWebhookPayloadContentApplicationJsonSchemaData, optional)

## Types

### WebhooksChatWebhookPayloadContentApplicationJsonSchemaData

- `conversation_id` (string, optional) — The conversation.
- `status` (enum, optional) — The new state.
  - Allowed values: `answered`, `operator_attention`, `not_answered`, `closed`, `pending`
- `previous_status` (enum, optional) — What it was before. `null` on the first transition.
  - Allowed values: `answered`, `operator_attention`, `not_answered`, `closed`, `pending`
- `context_reset` (boolean, optional) — Only on `closed`. The next conversation with this customer starts without the earlier history as AI context. Not a deletion.
- `message_count` (integer, optional) — Only on `closed`. How many messages the conversation held.
- `changed_at` (datetime, optional) — When the change happened.