Chat Messages
Stop Chat Message Generation
Available for: Chatflow, Agent, Chatbot, Legacy Agent apps.
Stops a chat message generation task. Only supported in streaming mode, or after a blocking call returns with a Chatflow run paused.
post/chat-messages/{task_id}/stop
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/chat-messages/{task_id}/stop
- AuthHTTP bearer
Path parameters
task_idstring required
Task ID, from the streaming events of Send Chat Message, or from the blocking response of a Chatflow run that paused.
Request body
Response
Operation successful.
Changes
No recorded changes to this operation across all 17 revisions of this API.