Skip to main content
POST
Stop conversation turn

Headers

x-api-key
string | null

Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.

Path Parameters

conversation_id
string
required

The Conversation ID

Body

application/json
turn_id
string | null

The turn to stop. If you omit it, the endpoint stops the latest turn of the conversation. Send it so that a late stop cannot stop a newer turn.

Maximum string length: 20
Pattern: ^[1-9][0-9]*$

Response

Successful Response

turn_id
string
required
status
enum<string>
required
Available options:
in_progress,
completed,
requires_action,
failed,
timed_out,
interrupted
output
TextOutputItem · object[]
error
AgentOutputError · object | null
required_actions
ClientToolCallRequiredAction · object[]

The actions the agent waits on. Answer each client_tool_call with a client_tool_result item in input to continue.

stream_cursor
string | null

Resume token for this turn's event stream. Present while the turn is in progress; pass it as Last-Event-ID to stream the turn's events.