---
title: "Stop Conversation"
method: POST
path: "/v1/agents/{agent_id}/conversations/{conversation_id}/stop"
tags: ["API v1", "Agents", "Agent Conversations"]
---

# Stop Conversation

`POST /v1/agents/{agent_id}/conversations/{conversation_id}/stop`

## Request

- Base URL: `https://api.xpander.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xpander.ai/v1/agents/{agent_id}/conversations/{conversation_id}/stop`
- Auth: API key in header `x-api-key`

Stop the running task. Keeps the queue unless clear_queue=true.

## Path parameters

- `agent_id` string, required
- `conversation_id` string, required

## Request body

- GatewayStopRequest: Body of the chat-backend `stop` endpoint.
  - `clear_queue` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xpander/apis/xpander-ai-api-service.md) - [All operations](https://skmtc.dev/xpander/apis/xpander-ai-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/xpander/apis/xpander-ai-api-service/revisions/4389ec0875d0?raw)
