cURL
curl --request POST \ --url https://script.so/api/v1/workflows/{workflowId}/batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "items": [ { "company": "Acme Corp", "email": "john@acme.com" }, { "company": "Globex", "email": "jane@globex.com" }, { "company": "Initech", "email": "bob@initech.com" } ], "concurrency": 3 } '
{ "batch_id": "batch_xyz789", "workflow_id": "wf_xyz789", "status": "pending", "total": 3, "completed": 3, "failed": 0, "executions": [ { "execution_id": "<string>", "inputs": {}, "status": "<string>", "duration_ms": 123 } ], "started_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z" }
Execute a workflow multiple times with different inputs
API key authentication. Get your key from Settings → API Keys.
Use sk_live_ prefix for production, sk_test_ for development.
sk_live_
sk_test_
Workflow ID
"wf_xyz789"
Array of input objects
Max parallel executions
Batch started
"batch_xyz789"
pending
running
completed
failed
3
0
Show child attributes