---
title: "Upsert Extended Thought Internal"
method: POST
path: "/v1/sessions/internal/{session_id}/extended-thought"
tags: ["sessions"]
---

# Upsert Extended Thought Internal

`POST /v1/sessions/internal/{session_id}/extended-thought`

The agent persists its in-flight extended-thought buffer (or its cleared
state) so a reconnecting agent resumes mid-delivery instead of dropping the
remaining beats. One row per session, upserted. `buffer` null = nothing in
flight. Durability only — the in-memory buffer is the live working copy.

## Path parameters

- `session_id` string, required

## Request body

- ExtendedThoughtPayload
  - `buffer` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/roxels/apis/interviewer.md) · [All operations](https://skmtc.dev/roxels/apis/interviewer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roxels/interviewer/revisions/4ef48ed226e1/schema)
