Provision a one-time managed CDP relay for an isolated workflow run
Provision a one-time managed CDP relay for an isolated workflow run
POST
Provision a one-time managed CDP relay for an isolated workflow run
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
uuidvariables?Default
{}priority?integerRange
0 <= value <= 9Default
0ttl_ms?integerRange
30000 <= value <= 900000Default
300000One-time credential-free WebSocket endpoint, one-time credential, run ID and expiry. Error body uses the documented PublicError DTO.
application/json- response
session_id*stringFormat
uuidrun_id*stringFormat
uuidstatus*stringexpires_at*stringFormat
date-timewebsocket_url*stringCredential-free WebSocket endpoint. Never append credentials to this URL.
Match
^wss?://Format
uriwebsocket_token*stringOne-time WebSocket credential. Browser clients send it as the second Sec-WebSocket-Protocol value with runharvester-cdp-v1; non-browser clients send Authorization: Bearer. Never put it in the URL.
Match
^[A-Za-z0-9_-]+$Length
16 <= length <= 512curl -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/cdp-sessions' \ -H 'Content-Type: application/json' \ -d '{ "workflow_version_id": "60bab57e-9f59-448d-bef4-a6fd602db8a4"}' \ --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}"{ "session_id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248", "run_id": "7a20bd58-ed33-4a5b-b63f-b52bb1a62248", "status": "running", "expires_at": "2099-01-01T00:00:00.000Z", "websocket_url": "wss://api.runharvester.com/api/v1/browser/cdp/sessions/9a20bd58-ed33-4a5b-b63f-b52bb1a62248/connect", "websocket_token": "<one-time-token>"}