Skip to main content
DELETE
Clear queue
X-Latency-Ms reports how many milliseconds the API server spent handling this HTTP request. It excludes network transit and does not measure the completion time of an asynchronous task. Running tasks keep running, finished tasks stay readable, and monitor runs are left alone. Each cancelled task ends as FAILED with TASK_CANCELLED and its webhook is sent. A queued task holds no credits and takes no place under your concurrency limit, so nothing is charged. A parent account’s key also cancels its sub-accounts’ queued tasks; a sub-account’s key cancels only its own. One call works for up to 20 seconds; if queued is above 0, call it again.

Authorizations

Authorization
string
header
required

Your API key, sent as Authorization: Bearer <key>.

Response

The queued tasks this call cancelled, and those still waiting.

success
boolean
required
cleared
integer
required

Queued tasks this call cancelled.

queued
integer
required

Queued tasks left when the call ran out of time. 0 when the queue is empty.