> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vivix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# error

Emitted when client or server processing fails. Most errors are recoverable and do not close the session.

## Event fields

<ResponseField name="error" type="object" required>
  Error details.
</ResponseField>

<ResponseField name="error.message" type="string" required>
  Human-readable error message.
</ResponseField>

<ResponseField name="error.type" type="string" required>
  The type of error, such as `invalid_request_error` or `server_error`.
</ResponseField>

<ResponseField name="error.code" type="string">
  Machine-readable error code, when available.
</ResponseField>

<ResponseField name="error.event_id" type="string">
  Client event id that caused the error, when applicable.
</ResponseField>

<ResponseField name="error.param" type="string">
  Request parameter related to the error, when applicable.
</ResponseField>

<ResponseField name="event_id" type="string" required>
  Server-generated unique event id.
</ResponseField>

<ResponseField name="type" type="string" required>
  Event type. Must be `error`.
</ResponseField>

<ResponseExample>
  ```json error theme={null}
  {
    "event_id": "evt_error_001",
    "type": "error",
    "error": {
      "message": "The 'type' field is missing.",
      "type": "invalid_request_error",
      "code": "invalid_event",
      "event_id": "evt_session_update_001"
    }
  }
  ```
</ResponseExample>
