メインコンテンツへスキップ
POST
Create a batch

承認

Authorization
string
header
必須

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

ボディ

application/json
items
object[]
必須
Required array length: 1 - 10000 elements
webhook
object

Each item's task posts its result here, and the batch posts one batch.completed event when it finishes.

metadata
object

Up to 8 KB of JSON, returned with the batch.

idempotencyKey
string

Sending the same key again returns the first batch.

Maximum string length: 256

レスポンス

A batch with this idempotencyKey already exists; it is returned unchanged.

success
boolean
必須
batch
object
必須