Skip to main content
POST
/
chat-messages
/
{task_id}
/
stop
Stop Advanced Chat Message Generation
curl --request POST \
  --url http://{api_base_url}/chat-messages/{task_id}/stop \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": "<string>"
}
'
{
  "result": "success"
}

Authorizations

Authorization
string
header
required

API Key authentication.

Path Parameters

task_id
string
required

Task ID from the streaming chunk.

Body

application/json
user
string
required

User identifier, consistent with the send message call. Note: The Service API does not share conversations created by the WebApp. Conversations created through the API are isolated from those created in the WebApp interface.

Response

200 - application/json

Operation successful.

result
string
Example:

"success"