Skip to main content
POST
/
v1
/
messages
/
async
/
{message_id}
/
cancel
Cancel Async Chat Stream
curl --request POST \
  --url https://{base_url}/gpt/v1/messages/async/{message_id}/cancel \
  --header 'Content-Type: application/json' \
  --data '{}'
{
"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

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