---
title: "Close a role session with a summary"
method: POST
path: "/v1/session/{id}/release"
tags: ["Role contracts"]
---

# Close a role session with a summary

`POST /v1/session/{id}/release`

## Request

- Base URL: `https://api.chainmemory.ai`
- URL: `https://api.chainmemory.ai/v1/session/{id}/release`
- Auth: API key in header `x-api-key`

## Path parameters

- `id` integer, required

## Request body

- object
  - `summary` string: What was done, what is pending, what comes next. Max 4000 chars

## Response `200`

Released

## Other responses

- `404`: session not found
- `409`: session already released

---

[API](https://skmtc.dev/chainmemory/apis/chainmemory-api.md) · [All operations](https://skmtc.dev/chainmemory/apis/chainmemory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chainmemory/apis/chainmemory-api/revisions/5331e0f0b6af?raw)
