---
title: "Chat"
method: POST
path: "/copilot/session/{session_id}"
tags: ["Copilot"]
deprecated: true
---

# Chat

`POST /copilot/session/{session_id}`

> **Deprecated.**

Gets all violations.
- table_id: search parameter

## Path parameters

- `session_id` string, required

## Headers

- `x-tenant` string

## Request body

- ChatInput
  - `human_message` string, nullable
  - `feedback` string, nullable
  - `approval` boolean, nullable
  - `timestamp` string, nullable
  - `id` integer, nullable
  - `selected` object, nullable
  - `next_response_streaming` boolean, nullable

## Response `200`

Successful Response

- ChatSessionOutput
  - `chat_output` ChatOutput, required
    - `output_type` 'tool' | 'agent' | 'block', required
    - `output` union, required
      - ToolOutput
        - `tool_output` string, required
        - `output_format` string, required
        - `additional_output` object, nullable
      - AgentOutput
        - `text` string, nullable
        - `reasoning` string, nullable
        - `plan` string, nullable
        - `criticism` string, nullable
        - `speak` string, nullable
        - `full_text` string, nullable
        - `message_to_user` string, nullable
        - `feedback` string, nullable
        - `suggested_action` AgentAction
          - `name` string, required
          - `args` object, required
          - `user_requires_approval` boolean, nullable
          - `streaming` boolean
      - BlockOutput
        - `message` string, required
    - `is_finished` boolean, required
    - `timestamp` string, nullable
    - `id` integer, nullable
    - `pii` PIIInformation
      - `message` string, required
      - `pii_detected` boolean, required
    - `next_response_streaming` boolean, nullable
  - `tasks` object, required
  - `next_message` string, nullable

## Other responses

- `400` — Not supported for public user
- `403` — Not supported for public user
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/103580dad816/schema)
