Stop Chat Message Generation
Available for: Chatflow, Chatbot, Agent apps.
Stops a chat message generation task. Only supported in streaming mode.
Authorizations
Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).
Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).
Path Parameters
Task ID, from the streaming events of Send Chat Message.
Body
End-user identifier, defined by your app and unique within it. Must match the user sent with the original message; if it differs, the stop silently does nothing and still returns success. See End User Identity.
Response
Operation successful.
Operation result. Always success.