GET /api/v1/decision-flows/versions
Every time a decision flow is published, a versioned snapshot of its configuration is recorded. This endpoint lets you list all published versions for a flow or retrieve the full configuration for a specific version. Use it to audit configuration changes over time, compare versions, or inspect exactly what was live at a given point.
Authentication
Requires a valid tenant and one of the following roles: admin or editor.
| Header | Required | Description |
|---|
X-Tenant-Id | Yes | Tenant identifier |
Authorization | Yes | Bearer token or API key |
List All Published Versions
Returns a summary list of all published versions for a decision flow. The full configSnapshot is omitted to keep the response lightweight — use the single-version endpoint below to fetch the full config.
Query Parameters
| Parameter | Type | Required | Description |
|---|
id | string | Yes | The decision flow ID |
Example Request
Example Response
Response Fields
| Field | Type | Description |
|---|
flowId | string | The decision flow ID |
versions | array | List of version summaries, ordered by publish time |
versions[].version | integer | Sequential version number |
versions[].publishedAt | string | ISO 8601 timestamp of when the version was published |
versions[].notes | string | Human-readable notes provided at publish time |
versions[].summary.nodeCount | integer | Number of nodes in the flow configuration (V2 format) |
versions[].summary.scoringMethod | string or null | Scoring method used in the flow (e.g., propensity, scorecard, priority_weighted), or null if not set |
Get a Specific Version
Returns the full configuration snapshot for a single published version, including the complete flow definition (nodes, edges, stages, scoring config).
Query Parameters
| Parameter | Type | Required | Description |
|---|
id | string | Yes | The decision flow ID |
version | integer | Yes | The version number to retrieve |
Example Request
Example Response
Response Fields
| Field | Type | Description |
|---|
flowId | string | The decision flow ID |
version | integer | Version number |
publishedAt | string | ISO 8601 timestamp of when this version was published |
notes | string | Notes provided at publish time |
configSnapshot | object | The complete flow configuration as it existed at publish time. Includes nodes, edges, and stages depending on the flow format version |
Error Responses
| Status | Cause |
|---|
400 | Missing id query parameter, or version is not a valid integer |
401 | Missing or invalid authentication credentials |
403 | Insufficient role (requires admin or editor) |
404 | Decision flow not found, or the specified version does not exist |
500 | Internal server error |
Use the version list to build a visual timeline of flow changes in your CI/CD dashboard. The summary object gives you a quick diff indicator (node count changed, scoring method changed) without downloading the full config.
See also: Decision Flows | Decision Flow Rollback | Change History