List a flow's pinned versions
const url = 'https://example.com/v1/flows/example/pinned-versions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/flows/example/pinned-versions \ --header 'Authorization: Bearer <token>'Every scope with a version pinned, and the change that set it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”FlowId — dotted namespace (acme.ingest-invoice).
Responses
Section titled “Responses”The pins.
object
object
The change that set it.
Who pinned or unpinned: a user, or a service token.
object
Example
{ "data": [ { "scope": { "kind": "tenant" }, "setBy": { "kind": "user" } } ]}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The database was too busy to answer in time (database-busy); Retry-After (whole seconds) says when to try again.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}See also
GET /v1/flows/{flowId}: Fetch the latest version of a flowGET /v1/flows/{flowId}/versions: List versions of a flowGET /v1/flows/{flowId}/versions/{version}: Fetch a specific flow versionPOST /v1/flows/{flowId}/versions/{version}/unregister: Unregister a specific flow version- Error code
database-busy - Every error code