Skip to main content
POST
Adds a message to a conversation and returns at once, while the agent works on it. The agent sees the whole conversation, and citation numbers continue from the earlier turns. Reply this way to a needs_input turn too. Read the conversation with wait to get the answer. The conversation must not be running: send the next message once the previous one has finished, or stop it first.

Path parameters

string
required
The conversation’s id.

Headers

string
Makes a retry safe: a second request with the same key returns the turn the first one created, with 200 instead of 202, and starts nothing. If that message was stopped, its status is stopped. See Start a conversation.

Request body

string
required
The follow-up message.

Response

202 Accepted when the run started; 200 OK for a retry with an Idempotency-Key already used. Same fields as Start a conversation, with turn_index the new message’s turn.

Errors

Plus 401, 413 and the rate limit’s 429, see Errors.