---
title: "Start New Node Session"
method: POST
path: "/api/agent-chat/nodes/{node_id}/sessions/new"
tags: ["AgentChat"]
---

# Start New Node Session

`POST /api/agent-chat/nodes/{node_id}/sessions/new`

Archive the current active session for this node and start fresh.

Idempotent in the sense that if no active session exists, this just
means the next message will create one (no work needed). Returns the
archived row id (if any) so the frontend can confirm.

## Path parameters

- `node_id` string, required

## Request body

- NewSessionRequest
  - `workflow_id` string, nullable
  - `title` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/versions/b6c76b02a94a/schema)
