Skip to main content
POST
Cancel a batch
No more inputs start: they become not_started. Inputs that are running are stopped. Rows already collected are kept, and the runs that ran stay charged. The answer is the batch as it is now. cancel_requested is true while running inputs stop. A batch that already ended is left as it is. Needs skills:invoke. MCP tool: cancel_batch.

Authorizations

Authorization
string
header
required

API key with the vd_sk_ prefix, as Authorization: Bearer vd_sk_.... Create keys in Settings → API Keys.

Headers

Idempotency-Key
string

Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.

Required string length: 1 - 255

Path Parameters

batch_id
string
required

Response

Successful Response

batch_id
string
required
status
enum<string>
required

queued, running, then completed (every input ended), cancelled, out_of_credits (the rest were not started) or failed.

Available options:
queued,
running,
completed,
cancelled,
out_of_credits,
failed
skill_id
string
required
skill_slug
string
required
total
integer
required

Inputs in the list.

done
integer
required

Inputs that ended, whichever way.

rows
integer
required

Rows collected so far, across every input.

counts
BatchCounts · object
required

Inputs by status.

credits_used
number
required

Credits charged so far by the list's runs.

estimated_credits
number
required

The estimate when it started.

credits_per_input
number
required

The per-input price the estimate used.

concurrency
integer
required

How many inputs run at once.

poll_url
string
required
rows_url
string
required
csv_url
string
required
status_url
string
required
read-only

Where to read it — the same URL as poll_url (kept as an alias): every long job's answer names its URL status_url.

label
string
default:""
max_results_per_input
integer | null
stop_reason
string | null

Why it stopped early, in plain words.

cancel_requested
boolean
default:false
created_at
string<date-time> | null
started_at
string<date-time> | null
ended_at
string<date-time> | null
idempotent_replay
boolean
default:false

An Idempotency-Key matched a batch you already started; this is that batch.