Skip to main content
Cancel a queued async request.
curl --request DELETE \
  --url https://model-{model_id}.api.baseten.co/async_request/{request_id} \
  --header 'Authorization: <api-key>'
{
  "request_id": "<string>",
  "canceled": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key with the Api-Key prefix, e.g. Authorization: Api-Key abcd1234.abcd1234.

Path Parameters

request_id
string
required

The ID of the async request.

Response

Result of an async request cancellation.

request_id
string
required

The ID of the async request.

canceled
boolean
required

Whether the request was canceled.

message
string
required

Additional details about whether the request was canceled.