---
title: "Stop Bot Chat"
method: POST
path: "/bots/chats/{chat_id}/stop"
tags: ["Bots"]
---

# Stop Bot Chat

`POST /bots/chats/{chat_id}/stop`

## Request

- Base URL: `https://api.krea.ai`
- URL: `https://api.krea.ai/bots/chats/{chat_id}/stop`
- Auth: HTTP bearer

Stop the bots working in a chat, or one of them with `bot_id`, and their helpers. Open to a workspace that fell below the plan Bots needs, so running work can always be stopped.

## Path parameters

- `chat_id` string, uuid, required

## Request body

- object
  - `bot_id` string, uuid: Stop only this bot. Without it, every bot working in the chat stops.
  - `cursor` string: The `cursor` of the previous response, so only what happened since is returned. Without one, the read starts after your own newest message.

## Response `200`

The state of the chat after stopping.

- object
  - `chat_id` string, required
  - `title` string, required
  - `status` 'working' | 'needs_input' | 'done' | 'failed' | 'stopped', required: `working` while a bot is mid-turn, `needs_input` when a bot waits on `question`, then `done`, `failed` or `stopped`.
  - `finished` boolean, required: True once status is done, failed or stopped.
  - `bots` object[], required
    - `id` string, required
    - `name` string, required
    - `role` string, required: What it does, in a few words.
    - `description` string, required
    - `color` string, required: Its body color as a hex string.
    - `owner` object, required
      - `id` string, required
      - `name` string, required
    - `is_owner` boolean, required
    - `shared` boolean, required: Shared with everyone in the workspace.
    - `status` 'idle' | 'working', required
  - `working` object[], required
    - `bot_id` string, required
    - `run_id` string, required
    - `started_at` string
    - `headline` string
    - `eta_minutes` number
  - `progress` string[], required: New steps of the working bots' turns.
  - `messages` object[], required: New visible messages since `cursor`, oldest first.
    - `id` integer, required: Its position in the chat. Later messages are higher.
    - `created_at` string, required
    - `author` object, required
      - `kind` 'person' | 'bot' | 'system', required
      - `id` string
      - `name` string
    - `via` string: Where a message not written in Krea came from, such as `API`.
    - `text` string, required
    - `attachments` object[], required
      - `url` string, required: Absolute. Krea files come as a signed link.
      - `uri` string
      - `name` string
      - `mime_type` string
      - `width` number
      - `height` number
  - `text` string, required: The bots' new message text, joined.
  - `media` object[], required: Images, video and audio the bots posted since `cursor`.
    - `url` string, required: Absolute. Krea files come as a signed link.
    - `uri` string
    - `name` string
    - `mime_type` string
    - `width` number
    - `height` number
  - `files` object[], required
    - `url` string, required: Absolute. Krea files come as a signed link.
    - `uri` string
    - `name` string
    - `mime_type` string
    - `width` number
    - `height` number
  - `question` object
    - `id` string, required
    - `bot_id` string, required
    - `kind` 'question' | 'approval' | 'permission' | 'cost_confirm' | 'file_upload' | 'image_select' | 'moodboard_select' | 'connect_integration', required
    - `text` string, required
    - `options` string[], required: Answers to offer. Empty for free text.
    - `answerable` boolean, required: False for requests only the chat in Krea can answer. Open the chat's `url`.
  - `error` object: Present when status is failed. `out_of_compute`, `bot_usage_limit` and `chat_usage_limit` are billing holds, not faults.
    - `code` 'out_of_compute' | 'bot_usage_limit' | 'chat_usage_limit' | 'refused' | 'busy' | 'timeout' | 'provider' | 'server' | 'context' | 'claude_billing' | 'unknown', required
    - `message` string, required
  - `out_of_compute_bot_ids` string[], required: Bots held in this chat because the workspace ran out of compute units. Add units, then call `retry` or send a message.
  - `timed_out` boolean, required: True when `wait` ran out while a bot was still working, or more is unread than one response carries. Read again with `cursor`.
  - `cursor` string, required
  - `url` string, required

## Other responses

- `400`: Invalid JSON body, or a request the chat refuses.
- `401`: Authentication required.
- `403`: Bots is not included in the workspace plan, not open to this account, or the caller may not make this change to the chat.
- `404`: Bot, chat, question or attachment not found or not accessible.
- `409`: The chat changed under the request.
- `422`: Invalid input.
- `429`: Too many requests.

## Changes

- **2026-12-03** `ae8c061af7e5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/krea/apis/krea-api/changes/bots/chats/:chat_id/stop/post.md)

---

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