---
title: "Chat"
method: POST
path: "/api/platform/v1/chat"
tags: ["conversations"]
---

# Chat

`POST /api/platform/v1/chat`

## Request

- Base URL: `https://docs.amdahl.ai`
- URL: `https://docs.amdahl.ai/api/platform/v1/chat`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Ask the workspace anything: opens or continues a named Chat and enqueues one Master agent turn. Use when starting an investigation over company data and connected sources. Always returns handles immediately (chat_id, run_id, stream/read/resume URLs) - subscribe to stream_url or poll read_url with wait_ms for the answer; never blocks.

## Request body

- object
  - `input` string, required: The ask, in plain language. Becomes the Master turn user message.
  - `chat_id` string, uuid: Continue an existing Chat. Omit to open a new one.
  - `name` string: Name for a NEW Chat. Omitted: auto-titled from the input.
  - `agent` string: Optional agent pin: an Amdahl library slug/uuid or workspace agent id/slug the Master turn runs as (Master privileges; the agent prompt is the specialization).
  - `config` object: The only knobs. No model, temperature, or stream fields exist.
    - `depth` 'quick' | 'standard' | 'deep'
    - `actions_allowed` string[]: Outbound actions this run may invoke. Absent = ALL cataloged actions (default ON); pass a list to narrow, [] to disable.
    - `on_question` 'pause' | 'auto' | 'none': ask_a_human behavior: pause (interactive), auto (default), none (headless).
    - `external_search` boolean: Allow market fan-outs (external_search.execute stays in the kit). Default false; deep depth forces true.
    - `include_divergence` boolean: Fuse the divergence map on external_search.execute (else mode:evidence). Default false; deep depth forces true.

## Response `200`

OK

- object
  - `data` unknown

## Other responses

- `400`: Invalid input - failed schema validation
- `401`: Authentication required
- `403`: Forbidden - missing scope or role
- `500`: Internal server error

---

[API](https://skmtc.dev/amdahl/apis/amdahl-platform-api.md) · [All operations](https://skmtc.dev/amdahl/apis/amdahl-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/amdahl/apis/amdahl-platform-api/revisions/d4eee33e2472?raw)
