> ## Documentation Index
> Fetch the complete documentation index at: https://docs.engini.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List workflow revisions

> Returns the stored snapshots of a workflow's definition, newest first. Only changes that
captured a restorable snapshot appear - a folder move or an enable/disable is recorded
elsewhere but is not a revision. Revisions older than 45 days are not retained.
            
reason is unconstrained free text written by whichever part of the product made the
change; do not treat it as an enumeration. Restoring a revision is not part of this API
version.



## OpenAPI

````yaml /developers/api-reference/openapi.json get /v1/workflows/{workflowId}/revisions
openapi: 3.0.0
info:
  title: Engini API
  version: v1
  description: The Engini public API.
servers:
  - url: https://api.engini.io
security:
  - Bearer: []
  - ApiKey: []
tags:
  - name: Auth
    description: Identify the caller a Developer API request is authenticated as.
  - name: On-prem agents
    description: >-
      Provision and manage agents that run Engini tasks inside a customer's
      network.
  - name: Applications
    description: >-
      Discover the applications (toolkits) available in Engini and their
      connection requirements.
  - name: Tools
    description: Browse and execute the tools exposed by Engini applications.
  - name: Toolsets
    description: Manage toolsets - named groupings of connections and tools.
  - name: McpServers
    description: >-
      Inspect and maintain MCP servers - the account-wide endpoints that expose
      Engini tools and workflows over the Model Context Protocol. Distinct from
      the MCPClient connection kind, which is Engini consuming a third-party MCP
      server.
  - name: Connections
    description: >-
      Manage connections to applications, including OAuth sign-in and
      default-connection selection.
  - name: Folders
    description: >-
      List the folders that organize workflows in each workspace and
      environment.
  - name: Workflows
    description: >-
      List workflows, and build them from a plan: search the catalog, read
      schemas and options, compile, create and update.
  - name: Executions
    description: >-
      Read execution history for workflows, table automations and app business
      rules, including per-step logs and recorded payloads.
  - name: Triggers
    description: >-
      Create triggers that fire when something changes in a connected app, and
      manage the destinations their events are delivered to.
paths:
  /v1/workflows/{workflowId}/revisions:
    get:
      tags:
        - Workflows
      summary: List workflow revisions
      description: >-
        Returns the stored snapshots of a workflow's definition, newest first.
        Only changes that

        captured a restorable snapshot appear - a folder move or an
        enable/disable is recorded

        elsewhere but is not a revision. Revisions older than 45 days are not
        retained.
                    
        reason is unconstrained free text written by whichever part of the
        product made the

        change; do not treat it as an enumeration. Restoring a revision is not
        part of this API

        version.
      operationId: Workflows_ListRevisions
      parameters:
        - name: workflowId
          in: path
          required: true
          description: Identifier of the workflow.
          schema:
            type: integer
            format: int32
          x-position: 1
        - name: createdBy
          in: query
          description: Optional account-user id filter on who made the change.
          schema:
            type: integer
            format: int32
            nullable: true
          x-position: 2
        - name: createdAfter
          in: query
          description: Optional inclusive lower bound on when the revision was recorded.
          schema:
            type: string
            format: date-time
            nullable: true
          x-position: 3
        - name: createdBefore
          in: query
          description: Optional inclusive upper bound on when the revision was recorded.
          schema:
            type: string
            format: date-time
            nullable: true
          x-position: 4
        - name: sort
          in: query
          description: >-
            Optional sort over revisionId, createdAt. Comma-separated keys, each
            "field asc" or "field desc", highest priority first - e.g.
            "createdAt asc,revisionId asc". At most 3 keys; a field may appear
            once; every key needs an explicit direction when there is more than
            one; nothing may follow revisionId. A single key may omit the
            direction and then sorts descending. Defaults to revisionId desc.
          schema:
            type: string
            nullable: true
          x-position: 5
        - name: offset
          in: query
          description: Zero-based index of the first item to return. Defaults to 0.
          schema:
            type: integer
            format: int32
            default: 0
          x-position: 6
        - name: top
          in: query
          description: Maximum number of items to return, capped at 100. Defaults to 100.
          schema:
            type: integer
            format: int32
            default: 100
          x-position: 7
      responses:
        '200':
          description: A paginated list of revisions.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponseOfWorkflowRevisionPublicDTO
        '400':
          description: Bad request - malformed body or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - missing or invalid bearer token or API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - the caller lacks access to the resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - the resource does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too many requests - rate limit exceeded.
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error - an unexpected error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - Bearer: []
        - ApiKey: []
      x-codeSamples:
        - lang: python
          label: Python
          source: |-
            from engini import Engini

            client = Engini()  # reads ENGINI_API_KEY

            # one page, newest first
            page = client.workflows.revisions(1234, top=10)
            for rev in page.items:
                print(rev.revision_id, rev.reason)
        - lang: typescript
          label: TypeScript
          source: >-
            import { Engini } from "@engini/sdk";


            const client = new Engini(); // reads ENGINI_API_KEY


            // one page, newest first

            const page = await client.workflows.revisions(1234, { top: 10 });

            for (const rev of page.items ?? []) console.log(rev.revisionId,
            rev.reason);
        - lang: bash
          label: CLI
          source: engini workflows revisions 1234 --top 10 --json
components:
  schemas:
    PaginatedResponseOfWorkflowRevisionPublicDTO:
      type: object
      description: Offset-based paginated wrapper for a list of items.
      additionalProperties: false
      required:
        - items
        - totalCount
        - offset
        - top
      properties:
        items:
          type: array
          description: The items in the current page.
          items:
            $ref: '#/components/schemas/WorkflowRevisionPublicDTO'
        totalCount:
          type: integer
          description: Total number of items available across all pages.
          format: int32
        offset:
          type: integer
          description: Number of items skipped before this page (the requested offset).
          format: int32
        top:
          type: integer
          description: Maximum number of items requested for this page.
          format: int32
    ErrorResponse:
      type: object
      description: >-
        Unified machine-readable error envelope returned by every non-200
        Developer API response.
      additionalProperties: false
      required:
        - errorCode
        - message
        - requestId
        - timestamp
      properties:
        errorCode:
          type: string
          description: Machine-readable error code identifying the failure.
        message:
          type: string
          description: Human-readable error message.
        requestId:
          type: string
          description: Identifier of the request, for support/correlation.
        timestamp:
          type: string
          description: Timestamp when the error occurred (ISO 8601).
        details:
          type: array
          description: Per-field validation details, when applicable.
          nullable: true
          items:
            $ref: '#/components/schemas/ErrorDetail'
    WorkflowRevisionPublicDTO:
      type: object
      description: >-
        A stored revision of a workflow's definition - one restorable snapshot
        of the workflow as it was

        at that point. v1 lists revisions; restoring one is not part of this API
        version.
      additionalProperties: false
      required:
        - revisionId
        - workflowId
        - createdAt
        - createdBy
      properties:
        revisionId:
          type: integer
          description: Identifier of the revision.
          format: int32
        workflowId:
          type: integer
          description: Identifier of the workflow the revision belongs to.
          format: int32
        createdAt:
          type: string
          description: When the revision was recorded (UTC).
          format: date-time
        createdBy:
          description: The account user who made the change that produced this revision.
          oneOf:
            - $ref: '#/components/schemas/AccountUserRefPublicDTO'
        reason:
          type: string
          description: >-
            Why the revision was recorded, as free text (for example "Created",
            "Modified",

            "Folder Update"). This is deliberately not an enum: the values are
            unconstrained free text

            written by several parts of the product, so it is passed through
            verbatim.
          nullable: true
    ErrorDetail:
      type: object
      description: A single field-level error detail within an ErrorResponse.
      additionalProperties: false
      required:
        - field
        - issue
      properties:
        field:
          type: string
          description: Name of the field the issue relates to.
        issue:
          type: string
          description: Description of the issue with the field.
    AccountUserRefPublicDTO:
      type: object
      description: >-
        Reference to an account user. When present, emitted as an object rather
        than a bare identifier,

        so a consumer never has to make a second call to turn an id into
        something displayable.
      additionalProperties: false
      required:
        - id
      properties:
        id:
          type: integer
          description: Identifier of the account user.
          format: int32
        name:
          type: string
          description: >-
            Display name of the account user, or null when the name could not be
            resolved (for

            example while the user directory is unavailable). The object itself
            is never omitted.
          nullable: true
  securitySchemes:
    Bearer:
      type: http
      description: Enter your JWT token
      scheme: bearer
      bearerFormat: JWT
    ApiKey:
      type: apiKey
      description: >-
        Opaque Developer API key (prefix `eng_`). Authenticates as the key's
        owner and resolves the account automatically.
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.