---
title: "Create Session"
method: POST
path: "/agent/sessions"
---

# Create Session

`POST /agent/sessions`

Create a new chat session for a project.

## Query parameters

- `project_id` string, required

## Request body

- CreateSessionRequest — Body for creating a chat session.
  - `title` string, nullable

## Response `200`

Successful Response

- AgentSession — A persisted chat session, scoped to a user/organization/project.
  - `id` string, required
  - `user_id` string, required
  - `organization_id` string, nullable
  - `project_id` string, nullable
  - `title` string, required
  - `sdk_session_id` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ionworks/apis/fastapi.md) · [All operations](https://skmtc.dev/ionworks/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ionworks/fastapi/revisions/7337a3cbdaf2/schema)
