Skip to main content
POST
Stop a Reply

Overview

Stops a running reply at its next safe point. Whatever the assistant had already said is kept and marked as stopped. A streaming reply ends with done carrying stopped: true. Calling it again, or after the reply finished, returns the same result. Operation name: run.cancel. Member keys can call it.

Authorization

string
required
Your Composer API key

Headers

string
required
Must be set to application/json

Body

string
required
The reply’s id: the first run event of a streaming chat, or run_id from Chat.
Example
string
required
The conversation the reply belongs to.
Example
Example Request

Response

string
The reply that was stopped.
boolean
Always true.
Example Success Response

Example cURL

cURL

Error Codes