---
title: "Create chat history section"
method: POST
path: "/api/v0/agent/session-sections"
tags: ["Agent"]
---

# Create chat history section

`POST /api/v0/agent/session-sections`

## Request

- Base URL: `https://api.outerport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outerport.com/api/v0/agent/session-sections`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/outerport/apis/outerport-api/docs/api/v0/agent/session-sections/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a chat history section for the user.

## Request body

- AgentSessionSectionWriteRequest: Request body for creating or renaming a chat history section.
  - `name` string, required: The section's name; surrounding whitespace is removed.

## Response `200`

Successful Response

- AgentSessionSectionGetResponse: A named section of the user's chat history.
  - `id` string, uuid, required: The ID of the section.
  - `name` string, required: The name of the section.
  - `created_at` string, date-time, required: When the section was created.
  - `updated_at` string, date-time, required: When the section was last renamed.

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-11** `f9dcfeb78d3d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outerport/apis/outerport-api/changes/api/v0/agent/session-sections/post.md)

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) - [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outerport/apis/outerport-api/revisions/08b5bf6f7f18?raw)
