API reference / Devices, signing & primitives / Submit batch job
Submit batch job
Up to 500 tasks, run async, billed per task.
- Upstream
gateway · async batch queue (up to 500 tasks)- Access
- Every plan
- Runs on
- Primitive
- Billing
- Failed calls are free
Authorization
x-api-keyheader · stringrequired
Your API key. Create one in API keys.
Body
Send JSON with content-type: application/json.
tasksobject[]required
Up to 500 tasks, each a path and its query. For example [{"path":"/v1/video","query":{"aweme_id":"7705852133855161377"}}].
webhook_urlstring
Called when the job finishes. For example https://example.com/hooks/tikultra.
Response
A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining.
Errors
Errors return a JSON body with a stable code and cost 0 credits. See Errors and retries.