Skip to main content
GET
Get a procedure version's source
Returns one procedure version’s bundled source files exactly as stored, in stored order, each with its UTF-8 byte count (bytes). Pass procedureId and, optionally, version; without it the highest active version you may read is used. Source is a separate, sensitive permission. The credential’s scopes must reach procedures:write, and its grants must hold procedures:write at the version’s home org unit — the permission that lets a person author procedures. procedures:read and workflows:read never return source. The built-in apps never receive procedures:write. Source is not scanned for secrets: anything an author placed in a bundled file is returned as written. A version whose source totals more than 900 KiB answers 413 payload_too_large. Omitting procedureId is 400 bad_request; a missing procedure and one whose source you may not read are the same 404 resource_missing. See Procedure catalog.

Authorizations

Authorization
string
header
required

An External App: the JWT it obtains from POST /oauth/token with OAuth2 client_credentials. Pass as Authorization: Bearer <jwt>. An app's static companion key also authenticates as the app, but is deprecated and is not protected by Idempotency-Key.

Path Parameters

procedureId
string
required
Minimum string length: 1

Query Parameters

version
string
Minimum string length: 1

Response

The version's source

data
object
required

One procedure version's bundled source files, exactly as stored and in stored order, each with its UTF-8 byte count. Returned only to a caller holding procedures:write at the version's home, with scopes that reach it. Source is not scanned for secrets.

meta
object
required