Skip to Content
Xeonr Developer Docs

Get Active Pipeline For Resource

POST
/uplim.api.v1.InternalPipelineRunsService/GetActivePipelineForResource

Resolves the integration from the content-type URN's slug prefix and returns its PUBLISHED pipeline for the URN and resource kind, plus the snapshot for the current version and the resolved integration id. Returns an empty response (no error) when the slug matches no integration, no pipeline exists, it isn't published, or its snapshot is missing. A URN without a <slug>: prefix is rejected with InvalidArgument.

Access: internal only — the pipeline coordinator, authenticated by the shared X-Upl-Internal-Token header matching PIPELINE_INTERNAL_TOKEN (FailedPrecondition when unset, Unauthenticated on mismatch). No user authentication.

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

contentTypeUrn?string

Fully-qualified content type URN (":" for integration-owned, "default:" for system defaults). The server derives integration_id from the slug prefix — callers in upl-im-pipeline don't carry integration_id through the workflow.

Length1 <= length
resourceKind?string
Value in"PIPELINE_RESOURCE_KIND_UNSPECIFIED" | "PIPELINE_RESOURCE_KIND_UPLOAD" | "PIPELINE_RESOURCE_KIND_FOLDER" | "PIPELINE_RESOURCE_KIND_VIRTUAL_FILE" | "PIPELINE_RESOURCE_KIND_INTEGRATION_FOLDER"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.InternalPipelineRunsService/GetActivePipelineForResource" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "pipeline": "map[contentTypeUrn:acme:video createdAt:2026-10-01T12:00:00Z id:3f8e2b17-6a4d-4c91-9e05-7b2d1a8c4f60 integrationId:5d2c8a41-7e3b-4f96-b0a8-1c9e6f3d2a75 policy:map[maxRetriesPerStep:2 pipelineTimeoutSec:900 stepTimeoutSec:300] publishedAt:2026-10-20T16:45:00Z resourceKind:PIPELINE_RESOURCE_KIND_UPLOAD status:PIPELINE_STATUS_PUBLISHED steps:[map[kind:PIPELINE_STEP_KIND_PROBE probe:map[outputs:[map[kv:map[expectedValueType:METADATA_VALUE_TYPE_STRING key:common:duration_sec] required:true slot:duration_sec]] sourceRef:${{ resource }}] stepId:probe] map[ffmpeg:map[configJson:{\"frame_at_percent\":10} mode:thumbnail outputs:[map[blob:map[maxSizeBytes:5242880 mimeHint:image/webp name:common:thumbnail_light] required:true slot:image]] sourceRef:${{ resource }}] kind:PIPELINE_STEP_KIND_FFMPEG stepId:thumbnail]] updatedAt:2026-10-20T16:45:00Z version:3]",
  "snapshot": "map[createdAt:2026-10-20T16:45:00Z id:c71a5e93-2b8f-4d06-a4e1-9f3c6b2d8e17 pipelineId:3f8e2b17-6a4d-4c91-9e05-7b2d1a8c4f60 pipelineVersion:3]",
  "resolvedIntegrationId": "5d2c8a41-7e3b-4f96-b0a8-1c9e6f3d2a75"
}