Skip to Content
Xeonr Developer Docs

Get Render Worker Context

POST
/uplim.api.v1.InternalPipelineRunsService/GetRenderWorkerContext

Returns the worker-bridge context the headless renderer needs for this step: the run's resource upload as proto-JSON (with its stored filename re-injected and a browser-fetchable content_url) and the renderer scope JSON. config_json, auth_token and api_base_url are currently always empty. FailedPrecondition when the run has no resource upload; Aborted (and the step is marked CANCELLED) when the upload was deleted mid-run.

Access: internal only — step-scoped. Requires the per-step JWT in X-Upl-Step-Token (HS256 over PIPELINE_INTERNAL_TOKEN, unexpired) whose run_id/step_id claims match the request; Unauthenticated otherwise. The shared X-Upl-Internal-Token is accepted instead only while PIPELINE_ALLOW_LEGACY_STEP_TOKEN_FALLBACK is enabled.

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

runId?string
Formatuuid
stepId?string
Lengthlength <= 255
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.InternalPipelineRunsService/GetRenderWorkerContext" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "uploadJson": "{\"uploadId\":\"9b7e4d2a-3c1f-4e8b-a6d5-2f0c8e1b7a39\",\"filename\":\"launch-teaser.mp4\",\"contentUrl\":\"https://b.upl.im/9b7e4d2a-3c1f-4e8b-a6d5-2f0c8e1b7a39/launch-teaser.mp4\",\"contentTypeUrn\":\"acme:video\",\"sizeBytes\":\"48211968\"}",
  "configJson": "",
  "authToken": "",
  "apiBaseUrl": "",
  "scopeJson": "{\"type\":\"upload\",\"uploadId\":\"9b7e4d2a-3c1f-4e8b-a6d5-2f0c8e1b7a39\",\"bucketId\":\"42\"}"
}