---
title: "Start Bot Chat"
method: POST
path: "/bots/chats"
tags: ["Bots"]
---

# Start Bot Chat

`POST /bots/chats`

## Request

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

Open a chat. One bot, no `title` and no members: the caller's direct chat with the bot, reused when it exists. A `title`, several `bot_ids` or any `member_ids` make a new group chat. A `message` starts the first turn, billed to the workspace's compute units like a turn in the app. In a group it goes to the bots it names as `@Name`, or to the lead when it names none.

## Request body

- object
  - `bot_id` string, uuid: A bot from `GET /bots`.
  - `bot_ids` string[]: Several bots, for a group chat. The first leads: it answers a message that names no bot. Pass this, `bot_id`, or both.
  - `member_ids` string[]: People in the workspace to bring into the chat, by user id. Every bot in the chat has to be shared with the workspace, or owned by the one person it is not shared with.
  - `message` string: The first message. Without one, a new chat opens with the bot saying hi.
  - `title` string: Opens a new chat with this name. Without a title, one bot and no members, the request opens the caller's one direct chat with the bot, which is reused when it already exists.
  - `attachments` object[]
    - `url` string, required: An `http(s)` URL, such as an asset URL from `/assets`, or a Krea Files URI `file:<uuid>`.
    - `name` string
    - `content_type` string
  - `idempotency_key` string: A key of your choosing that names this request. Repeating the request with the same key, for example after a timeout, sends nothing again: it answers with the same chat, message and cursor as the first. A start without a message sends nothing either way, and its cursor always follows your newest message.

## Response `201`

The chat, and where to read from.

- object
  - `chat_id` string, required
  - `title` string, required
  - `message_id` integer, nullable, required: The message just sent. Null when a chat was opened without one.
  - `cursor` string, required: Pass to `GET /bots/chats/{chat_id}/messages`.
  - `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
  - `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/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)
