---
title: "POST /agentcc/sessions/{id}/close/"
method: POST
path: "/agentcc/sessions/{id}/close/"
tags: ["agentcc"]
---

# POST /agentcc/sessions/{id}/close/

`POST /agentcc/sessions/{id}/close/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/agentcc/sessions/{id}/close/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Close a session.

## Request body

- AgentccSession
  - `id` string, uuid
  - `organization` string, uuid
  - `session_id` string, required
  - `name` string
  - `status` 'active' | 'closed'
  - `metadata` object
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `201`

Created

- AgentccSession
  - `id` string, uuid
  - `organization` string, uuid
  - `session_id` string, required
  - `name` string
  - `status` 'active' | 'closed'
  - `metadata` object
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
