Portkey · Capability
Portkey API — Batch
Portkey API — Batch. 5 operations. Lead operation: Creates and executes a batch from an uploaded file of requests. Self-contained Naftiko capability covering one Portkey business surface.
What You Can Do
POST
Createbatch
— Creates and executes a batch from an uploaded file of requests
/v1/batches
GET
Listbatches
— List your organization's batches.
/v1/batches
GET
Retrievebatch
— Retrieves a batch.
/v1/batches/{batch-id}
POST
Cancelbatch
— Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.
/v1/batches/{batch-id}/cancel
GET
Getbatchoutput
— Returns batch output as stream.
/v1/batches/{batch-id}/output
MCP Tools
creates-and-executes-batch-uploaded
Creates and executes a batch from an uploaded file of requests
list-your-organization-s-batches
List your organization's batches.
read-only
idempotent
retrieves-batch
Retrieves a batch.
read-only
idempotent
cancels-progress-batch-batch-will
Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.
returns-batch-output-stream
Returns batch output as stream.
read-only
idempotent