---
title: "Create interactive chat session"
method: POST
path: "/agent/v1/chat"
tags: ["Agents"]
---

# Create interactive chat session

`POST /agent/v1/chat`

Creates a persistent chat session backed by a Daytona or Vercel runtime. Session state is retained and can be resumed or recovered across requests.

## Request body

- object
  - `title` string — Optional human-readable session title
  - `model` string, nullable — Optional model override for the chat runtime session
  - `idleTimeoutMs` integer, nullable — Idle timeout before session is eligible for snapshot/termination. Defaults to 15 minutes.
  - `vaultIds` string[], nullable — Restrict the chat session to specific vault IDs

## Response `200`

Chat session created

- object
  - `id` string
  - `status` string
  - `idleTimeoutMs` integer
  - `createdAt` string, date-time

## Other responses

- `401` — Invalid API key
- `403` — No agent access or non-API-key auth

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
