Queue a published workflow run with a scoped browser API key
Queue a published workflow run with a scoped browser API key
Queue a published workflow run with a scoped browser API key
BrowserWorkflowApiKeyX-API-Key<token>Project- and environment-scoped browser workflow API key.
projectId*stringuuidenvironmentId*stringuuidworkflowId*stringuuidIdempotency-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.
8 <= length <= 200application/json- body
workflow_version_id*stringuuidvariables?{}priority?integer0 <= value <= 90proxy_type?ProxyNetworkTypeRequested proxy class. Premium is only used when explicitly selected and requires a configured plan price and available premium connection.
"datacenter""residential""premium"max_credits_per_request?integerOptional hard credit ceiling for this run. It includes workflow execution, CAPTCHA, and measured proxy traffic. Execution stops with budget_exhausted when a complete result cannot fit within the remaining budget.
1 <= valuesession_state?One-run browser storage state. It is encrypted at rest, never returned, and deleted when the run reaches a terminal status.
Queued durable workflow run Error body uses the documented PublicError DTO.
application/json- response
id*stringuuidproject_id*stringuuidenvironment_id*stringuuidworkflow_id*stringuuidworkflow_version_id*stringuuidproxy_type*|Proxy class selected when the run was created; null for legacy runs that predate class selection.
max_credits_per_request*|Request-wide credit ceiling fixed at admission; null for legacy runs without a configured cap.
1 <= valuerequested_by?integer|nullstatus*string"queued""running""succeeded""failed""cancelled""expired"execution_kind*string"workflow""cdp"variables*result*|nullaction_trace*array<>items <= 100result_metadata*quality_state*string"pending""validated""unavailable"error_code*|Terminal workflow error, including budget_exhausted and PROXY_CLASS_UNAVAILABLE when applicable.
error_message*string|nullattempt_count*integermax_attempts*integerpriority*integercreated_at*stringdate-timestarted_at*|date-timefinished_at*|date-timeexpires_at*stringdate-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/runs' \ -H 'Content-Type: application/json' \ -d '{ "workflow_version_id": "9c9b9538-e27b-4d40-a8ae-a50aa2ea701b", "variables": { "url": "https://example.com" }, "proxy_type": "premium", "max_credits_per_request": 100}' \ --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"}