Skip to main content
Which call you use depends on whether the work has started.

Stop a session that has started

Response
The agent stops and the session ends with status cancelled. Stopping is safe to repeat: once the session has stopped, further calls return status: "noop". A session paused at awaiting_human can be stopped the same way. A stopped session can still take a follow-up message.

Withdraw a waiting turn

A turn sent while the agent’s phone is busy waits for the phone (queued: true). To withdraw it before it starts:

Withdraw a waiting message

A follow-up message sent while its session is still working waits behind it, and its response has queued: true and an invocationId. A waiting turn’s response carries an invocationId too. To withdraw either before it starts:
The call is safe to repeat: withdrawing an entry that was already withdrawn returns alreadyCancelled: true. An unknown invocationId returns 404.