Skip to main content
POST
Stop a turn

Behavior

Served only when turn control is on for your environment; until then the route answers 404 not_found. You know it is on when conversation detail carries the turn key or the conversation frame carries "turn_control": true. The body takes end_user and an optional sealed_through: the seq of the last frame your screen showed. The stored reply is exactly what was shown up to that frame. Absent means everything the turn produced so far. Stop answers 200 with the turn, stopping until it is at rest and then stopped, with sealed: true, sealed_through and sealed_seq. A Stop for a turn_id not admitted yet answers 202 and the turn is refused when its admission arrives. It is safe to repeat: a repeat answers the first stop. It works on an archived conversation. It never undoes a step that ran, never cuts a write, and cancels only the runs the turn itself created. How to show Stop, read a stopped turn, and handle late results is on Stop a turn.

Authorizations

Authorization
string
header
required

The org's platform API key.

Path Parameters

instanceSlug
string
required

The conversation instance's slug.

conversationID
string
required

The conversation's id (a UUID).

turnID
string
required

The turn's id (a UUID).

Body

application/json
end_user
string
required

The end user the conversation belongs to.

sealed_through
integer<int64>

The seal's N: the last seq the stopping screen drew. Absent means everything appended so far.

Response

OK

turn
object
required
Last modified on November 30, 2026