---
title: "Close an existing chat conversation"
method: PUT
path: "/{version}/{account_id}/{project_id}/chat/close"
---

# Close an existing chat conversation

`PUT /{version}/{account_id}/{project_id}/chat/close`

Closes an active chat conversation and marks it as complete.

## Path parameters

- `version` string, required
- `account_id` string, required
- `project_id` string, required

## Headers

- `X-API-KEY` string, required
- `X-TOKEN` string, required

## Request body

- CloseChatRequest
  - `conversation_id` string, required — ID of the conversation to close

## Response `200`

OK

- CloseChatResponse
  - `success` boolean, required — Whether the conversation was successfully closed

## Other responses

- `400` — Validation error.
- `401` — Missing or invalid API key.
- `403` — Missing or invalid API key.
- `404` — Resource not found.
- `500` — Internal Server Error.

---

[API](https://skmtc.net/poly/apis/polyai-agents-api.md) · [All operations](https://skmtc.net/poly/apis/polyai-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poly/polyai-agents-api/versions/76f3c606e395/schema)
