Skip to content
API referenceDelete a message batch

Delete a message batch

DELETE/v1/messages/batches/{batchId}

Delete a message batch.

Compatible with Anthropic's Delete Message Batch API: deletes an ended batch and its results at Anthropic and returns Anthropic's answer. With a virtual key, the batch is billed first if it has not been yet; a batch that cannot be billed is not deleted. Only a batch the key created is found; any other id is a 404.

Errors are in Anthropic's shape: 400 for a non-Anthropic or PLATFORM key or x-config; 401 for a missing or invalid credential; 403 for a disabled or expired key; 404 for an unknown batch.

Compatible with the Anthropic Message Batches API. The request and response bodies are the provider's own format, passed through by the gateway: see the Anthropic Message Batches API reference for every field. The credentials and headers below are what VectorAxis adds.

Authorization

  • AuthorizationBearer <slug>.<secret>

    A virtual key's API key (vk-....<secret>), as Authorization: Bearer. What the OpenAI SDK sends from its api_key. Used by the inference endpoints.

  • orx-virtual-keyheader

    A virtual key's API key in the x-virtual-key header, for clients that keep Authorization for something else.

  • orx-api-keyheader

    Direct credentials: the provider's own API key in x-api-key, with the provider named in x-provider (for example openai). On /v1/messages a virtual key is accepted in x-api-key too, which is what the Claude SDK sends.

Path parameters

  • batchIdstringrequired

    the batch id (msgbatch_...)

Headers

  • x-providerstring

    With direct credentials: the provider x-api-key belongs to, for example openai or anthropic (case and dashes are normalised). Not used with a virtual key.

  • anthropic-betastring

    Anthropic beta features, comma-separated (for example context-management-2025-06-27). Forwarded to Anthropic and Claude on Vertex only; at most 32 names of lower-case letters, digits and dashes.

Responses

200application/json
NVIDIA Inception Program member

VectorAxis is built by GK Labs, a member of NVIDIA Inception.