---
title: "POST /assistant/chat/{chat_uuid}/messages/"
method: POST
path: "/assistant/chat/{chat_uuid}/messages/"
tags: ["AI Assistant"]
---

# POST /assistant/chat/{chat_uuid}/messages/

`POST /assistant/chat/{chat_uuid}/messages/`

Send a message to the specified AI assistant chat and stream back the response.

## Path parameters

- `chat_uuid` string, uuid, required

## Request body

- AssistantMessageRequest
  - `content` string, required — The content of the message.
  - `ui_context` UIContext, required
    - `workspace` UIContextWorkspace, required
      - `id` integer, required — The ID of the workspace.
      - `name` string, required — The name of the workspace.
    - `database` UIContextApplication
      - `id` string, required — The unique ID of the application.
      - `name` string, required — The name of the application.
    - `table` UIContextTable
      - `id` integer, required — The ID of the table.
      - `name` string, required — The name of the table.
    - `view` UIContextView
      - `id` integer, required — The ID of the view.
      - `name` string, required — The name of the view.
      - `type` string, required — The type of the view.
    - `application` UIContextApplication
      - `id` string, required — The unique ID of the application.
      - `name` string, required — The name of the application.
    - `page` UIContextPage
      - `id` string, required — The unique ID of the page.
      - `name` string, required — The name of the page.
    - `automation` UIContextApplication
      - `id` string, required — The unique ID of the application.
      - `name` string, required — The name of the application.
    - `workflow` UIContextWorkflow
      - `id` string, required — The unique ID of the workflow.
      - `name` string, required — The name of the workflow.
    - `dashboard` UIContextApplication
      - `id` string, required — The unique ID of the application.
      - `name` string, required — The name of the application.
    - `timezone` string — The timezone of the user, e.g. 'Europe/Amsterdam'.

## Response `200`

A text/event-stream of the assistant’s partial responses

- string

## Other responses

- `400`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/0c490e5b0c7f/schema)
