Fetch the latest version of a flow
const url = 'https://example.com/v1/flows/example';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 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”FlowId — dotted namespace (acme.ingest-invoice).
Responses
Section titled “Responses”Flow.
object
FlowId — dotted namespace (e.g. ingest.contract-pdf).
Semver.
object
Handler reference for leaf nodes.
object
object
Source node id or $start sentinel.
Destination node id or $end sentinel.
Optional predicate expression evaluated at edge dispatch time (see @kindgi/flow).
object
Optional per-edge runtime policy (retry, timeoutMs, …).
object
object
Example
{ "nodes": [ { "kind": "tool" } ]}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" }}No flow with that id under this tenant.
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" }}