v29

latestOpenAPI 3.1.2raw.githubusercontent.com2026-08-014117755.2 KB
Chats

Create Chat (Async)

Creates a new chat with a user message and processes it in the background. Returns immediately with the chat ID and message ID. Poll for the assistant message by ID until finishReason is non-null.

post/chats/async

Request body

messagestring required

The prompt or instruction to send to the model.

systemPromptstring

System-level context for the chat, such as frameworks or development environment details.

mcpServerIdsstring[]

MCP server IDs to enable. When omitted, uses default enabled servers.

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted'

Visibility setting for the new chat.

titlestring

Title for the new chat.

metadataobject

Arbitrary key-value data to attach to the chat.

Response

Response for status 202

chatIdstring required

Unique chat identifier.

messageIdstring required

ID of the assistant message that will receive the response. Poll this message by ID and check its finishReason field to detect completion.