---
title: "Chat"
method: POST
path: "/api/assistant/chat"
tags: ["Assistant"]
---

# Chat

`POST /api/assistant/chat`

Send a message and receive a streaming response.

Body:
{
    "message": "como publico nos portais?",
    "context": {
        "currentRoute": "/vehicle/123/data",
        "visibleButtons": ["Publicar Anúncio", "Editar"],
        "page_data": {
            "vehicle_id": 123,
            "matricula": "AA-00-BB",
            "marca": "BMW",
            "modelo": "320d",
            "estado": "Stock"
        }
    }
}

Returns SSE stream:
    data: {"type": "token", "text": "Para"}
    ...
    data: [DONE]

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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