---
title: "POST /api/metabot/agent-streaming"
method: POST
path: "/api/metabot/agent-streaming"
tags: ["/api/metabot"]
---

# POST /api/metabot/agent-streaming

`POST /api/metabot/agent-streaming`

Send a chat message to the LLM via the AI Proxy.

## Request body

- object
  - `context` MetabaseMetabotContextContext, required — unresolved $ref
  - `conversation_id` string, required — value must be a valid UUID.
  - `debug` boolean, nullable
  - `history` MetabaseMetabotSchemaMessage[], required
    - `content` string, nullable
    - `role` 'system' | 'user' | 'assistant' | 'tool', required
    - `tool_call_id` string, nullable
    - `tool_calls` object[], nullable
      - `arguments` string, required
      - `id` string, required
      - `name` string, required
  - `message` string, required
  - `metabot_id` string
  - `profile_id` string
  - `state` object, required
    - `chart-configs` object
    - `charts` object
    - `queries` object

## Response `2XX`

Successful response

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) · [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/e879e0319b12/schema)
