---
title: "Create a Chat"
method: POST
path: "/agents/{agentId}/chat"
tags: ["Agents Streams"]
---

# Create a Chat

`POST /agents/{agentId}/chat`

Create a new chat with the agent. Each chat has separated history

## Path parameters

- `agentId` string, required

## Request body

- CreateChatRequest
  - `persist` boolean — If true, the chat will be saved and won't be deleted automatically

## Response `200`

OK

- unknown

## Other responses

- `401` — AuthorizationError

---

[API](https://skmtc.net/d-id/apis/realtime-endpoints.md) · [All operations](https://skmtc.net/d-id/apis/realtime-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-id/realtime-endpoints/revisions/2f2425e1b6b6/schema)
