v29

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

Resolve Task

Resolves a pending task in a chat. Blocks until the model response is complete and returns the resulting message.

post/chats/{chatId}/messages/resolve

Path parameters

chatIdstring required

The unique identifier of the chat.

Request body

Response

A single message in a chat.

idstring required

Unique message identifier.

chatIdstring required

ID of the chat this message belongs to.

role'user' | 'assistant' required

Who produced this message.

createdAtstring date-time required

ISO timestamp when the message was created.

updatedAtstring date-time required

ISO timestamp when the message was last updated.

contentstring required

The trailing prose of the message — the agent’s closing summary, or the user’s message text. Empty string when there is no closing prose.

finishReason'stop' | 'length' | 'content-filter' | 'tool-calls' | 'error' | 'other' nullable required

The reason why message generation finished, including standard completion reasons and error states.

restorableboolean required

True when this is an assistant message that produced restorable code and is not the currently active code.

authorIdstring nullable required

ID of the user who authored a user message; null for assistant messages.