Admit a batch manifest and queue its items
Admit a batch manifest and queue its items
POST
Admit a batch manifest and queue its items
BrowserWorkflowApiKeyheader
X-API-Key<token>Project- and environment-scoped browser workflow API key.
projectId*stringFormat
uuidenvironmentId*stringFormat
uuidworkflowId*stringFormat
uuidIdempotency-Key?stringOptional. Generate a unique value before a write and retain it for an exact-body retry; replay is free and a different body returns 409 IDEMPOTENCY_CONFLICT.
Length
8 <= length <= 200application/json- body
workflow_version_id*stringFormat
uuidproxy_type?ProxyNetworkTypeRequested proxy class inherited by every batch item. Premium is used only when explicitly selected.
Value in
"datacenter""residential""premium"max_credits_per_request?integerOptional hard credit ceiling applied independently to each run created from this batch.
Range
1 <= valueitems*array<>Items
1 <= items <= 100000priority?integerRange
0 <= value <= 9Default
0configured_concurrency?integerRange
1 <= value <= 32Default
4Admitted workflow batch Error body uses the documented PublicError DTO.
application/json- response
id*stringFormat
uuidparent_batch_id*|Format
uuidproject_id*stringFormat
uuidenvironment_id*stringFormat
uuidworkflow_id*stringFormat
uuidworkflow_version_id*stringFormat
uuidrequested_by?integer|nullstatus*stringconfigured_concurrency*integerpriority*integerestimate_units*integeractual_cost_units*integeraccepted_count*integerrejected_count*integercompleted_count*integerfailed_count*integercreated_at*stringFormat
date-timestarted_at*|Format
date-timefinished_at*|Format
date-timecurl -X POST 'https://api.runharvester.com/api/v1/browser/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/batches' \ -H 'Content-Type: application/json' \ -d '{ "workflow_version_id": "9c9b9538-e27b-4d40-a8ae-a50aa2ea701b", "proxy_type": "premium", "max_credits_per_request": 100, "items": [ { "variables": { "url": "https://example.com" } } ]}' \ --header "X-API-Key: ${RUNHARVESTER_BROWSER_API_KEY:?Set your Browser Workflow API key}" \ --header "Idempotency-Key: ${RUNHARVESTER_IDEMPOTENCY_KEY:?Set a unique key for this submission; reuse it for retries}"{ "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248", "status": "pending"}