메인 콘텐츠로 건너뛰기
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

One task of a batch: the fields of a single task request, plus an optional customId. webhook is set once on the batch.

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 within 30 days of the first batch's createdAt returns that batch; after that it returns 409 RESOURCE_ALREADY_EXISTS.

Maximum string length: 256

응답

A batch with this idempotencyKey was created in the last 30 days; it is returned unchanged.

success
boolean
필수
batch
object
필수