Skip to main content
POST
/
v1
/
chats
/
{id}
/
messages
Error
A valid request URL is required to generate request examples
{
  "message_id": "message_d8aad64dib2c7m3ae7jh",
  "created_at": "2026-05-26T10:15:30Z"
}

Documentation Index

Fetch the complete documentation index at: https://dev.chief.bot/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Personal Access Token, sent verbatim as pat_<32 chars>. PATs are minted from the Chief settings UI.

Headers

X-Project-Id
string
required

Project identifier scoping the request. Required on every project-scoped public endpoint. Missing or malformed values respond with HTTP 400 and code publicapi.tenancy.project.missing.

Pattern: ^project_[a-z0-9]{20}$

Path Parameters

id
string
required

Chat identifier.

Pattern: ^chat_[a-z0-9]{20}$

Body

application/json

Body for POST /v1/chats/{id}/messages — append a turn to an existing chat. The chat id comes from the path.

prompt
string
required

The user's message for this turn.

intelligence
enum<string>

Mode preset that controls model class and tool selection. Defaults to auto when omitted.

Available options:
auto,
fast,
expert,
research
provider
enum<string>

Biases model selection within the chosen intelligence mode toward a specific vendor.

Available options:
automatic,
anthropic,
openai,
google
skills
string[]

Skill names to pre-load before the LLM runs.

public_data
boolean

When false, disables the public-web-search tool for this turn. Omitting or sending true leaves the mode default in place.

scope
object

Optional. Narrows the knowledge the assistant may consult on this turn.

Response

Turn accepted; workflow running.

message_id
string
required

The new turn's id. Poll GET /v1/chats/{id}/messages/{message_id} to follow lifecycle.

Pattern: ^message_[a-z0-9]{20}$
created_at
string<date-time>
required