Skip to content

List workflow versions

GET/workflows/{id}/versions

Returns the full version history for a workflow, ordered newest first. Each version is an immutable snapshot of the workflow definition at the time it was saved. Use this for audit trails and rollback planning.

Request

Path parameters

NameTypeRequiredDescription
idintegerYes

Integer ID of the workflow whose versions to list.

Example: 8

Responses

200 Ordered list of workflow versions

Content type application/json, object.

FieldTypeRequiredDescription
dataarray of object · WorkflowVersionV1No
data[].idintegerNo

Auto-incremented primary key.

data[].workflow_idintegerNo

Parent workflow ID.

Example: 8

data[].versionintegerNo

Monotonically increasing version number.

Example: 3

data[].definitionobjectNo

Full workflow definition snapshot including trigger, conditions, actions, throttle_per_minute, and error_policy.

data[].statusstringNo

'published' means this version was active at some point; 'draft' means it was saved but never activated.

One of: "draft", "published" · Example: "published"

data[].notesstring, nullableNo

Auto-generated or operator notes describing the change.

Example: "Updated from workflow console"

data[].published_atstring (date-time), nullableNo

Timestamp when this version was published (activated).

data[].created_byinteger, nullableNo

Tenant user ID who saved this version.

data[].created_atstring (date-time)No

Version creation timestamp.

Example

{
  "data": [
    {
      "id": 22,
      "workflow_id": 8,
      "version": 3,
      "status": "published",
      "notes": "Updated from workflow console",
      "published_at": "2026-03-15T14:22:00Z",
      "created_by": 2,
      "created_at": "2026-03-15T14:22:00Z"
    }
  ]
}

404 Workflow not found

Example request

curl -X GET "https://{tenant}.faciotech.net/api/v1/workflows/{id}/versions" \
  -H "Accept: application/json"
Loading