---
title: "Chat Car Sync"
method: POST
path: "/api/chat/car/{car_id}/sync"
tags: ["chat"]
---

# Chat Car Sync

`POST /api/chat/car/{car_id}/sync`

## Request

- Base URL: `https://pegarex.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://pegarex.com.br/api/chat/car/{car_id}/sync`
- Auth: HTTP bearer

Non-streaming variant: returns the full answer in one JSON response.

## Path parameters

- `car_id` integer, required

## Request body

- ChatRequest
  - `message` string, required
  - `history` ChatTurn[]
    - `role` string, required
    - `text` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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