POST
/
v1
/
messages
/
async
/
{message_id}
/
cancel
{
"message": "Stream cancelled successfully",
"message_id": "msg_async_12345"
}

Path Parameters

message_id
string
required

Message ID of the asynchronous chat stream to cancel.

Body

application/json · object

Empty request body for stream cancellation. No additional parameters are required to cancel a stream.

The body is of type object.

Response

Stream cancelled successfully

Response model for cancelled asynchronous chat streams

message
string
required

Confirmation message for successful stream cancellation

message_id
string
required

Unique identifier of the cancelled stream