4e064cf81dae
latestOpenAPI 3.1.02026-08-131831,331960.0 KBopenAiBatch
Cancel a batch
Cancel an in-progress OpenAI-compatible batch. Already completed requests are not affected.
post/api/v1/batches/{batch_id}/cancel
Path parameters
batch_idstring required
Batch ID.
Query parameters
provider_idstring required
Provider route with customer-owned credentials, for example openai or parasail.
Headers
Authorizationstring required
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
X-Data-Respan-Paramsstring
Base64-encoded JSON object of Respan request parameters. Legacy X-Data-Keywordsai-Params is still accepted.
Request body
object required
Response
Batch cancellation initiated.