Skip to Content
Xeonr Developer Docs

Get Resource Metadata KV

POST
/uplim.api.v1.InternalPipelineRunsService/GetResourceMetadataKV

Returns every live KV entry on an upload or folder plus the resource itself as JSON (uploads include a presigned source URL, mime and size so ${{ resource }} resolves as a blob input). resource_json is empty when the resource isn't found. InvalidArgument when neither upload_id nor folder_id is set.

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

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"
folderId?string
Lengthlength <= 64

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.InternalPipelineRunsService/GetResourceMetadataKV" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "entries": [
    "map[key:common:mime value:map[stringValue:video/mp4] valueType:METADATA_VALUE_TYPE_STRING]",
    "map[key:common:duration_sec value:map[stringValue:93.4] valueType:METADATA_VALUE_TYPE_STRING]"
  ],
  "resourceJson": "{\"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\"}"
}