openapi: 3.0.1 info: title: OpenMetadata APIs Agent Executions Workflow Instances API description: Common types and API definition for OpenMetadata contact: name: OpenMetadata url: https://open-metadata.org email: openmetadata-dev@googlegroups.com license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 version: '1.13' servers: - url: /api description: Current Host - url: http://localhost:8585/api description: Endpoint URL security: - BearerAuth: [] tags: - name: Workflow Instances description: A Workflow Instance is a specific instance of a Workflow Definition. paths: /v1/governance/workflowInstances: get: tags: - Workflow Instances summary: List the Workflow Instances description: Get a list of all the workflow instances, filtered by `startTs` and `endTs` of the creation, and Workflow Definition FQN. Use cursor-based pagination to limit the number of entries in the list using `limit` and `before` or `after` query params. operationId: listWorkflowInstances parameters: - name: limit in: query description: Limit the number of Workflow Instances returned. (1 to 1000000, default = 10) schema: maximum: 1000000 minimum: 0 type: integer format: int32 default: 10 - name: offset in: query description: Returns list of Workflow Instances at the offset schema: type: string - name: startTs in: query description: Filter Workflow Instances after the given start timestamp schema: type: number - name: endTs in: query description: Filter Workflow Instances before the given end timestamp schema: type: number - name: latest in: query description: Only list the latest Workflow Instance schema: type: boolean default: false - name: workflowDefinitionName in: query description: Workflow Definition Name schema: type: string - name: entityLink in: query description: Entity Link schema: type: string responses: '200': description: List of Workflow Instances content: application/json: schema: $ref: '#/components/schemas/WorkflowInstanceResultList' components: schemas: EntityError: type: object properties: message: type: string entity: type: object Paging: required: - total type: object properties: before: type: string after: type: string offset: type: integer format: int32 limit: type: integer format: int32 total: type: integer format: int32 WorkflowInstanceResultList: required: - data type: object properties: data: type: array items: $ref: '#/components/schemas/WorkflowInstanceState' paging: $ref: '#/components/schemas/Paging' errors: type: array items: $ref: '#/components/schemas/EntityError' warningsCount: type: integer format: int32 warnings: type: array items: $ref: '#/components/schemas/EntityError' Stage: type: object properties: name: maxLength: 256 minLength: 1 pattern: ^((?!::).)*$ type: string displayName: type: string startedAt: type: integer format: int64 endedAt: type: integer format: int64 tasks: type: array items: type: string format: uuid variables: type: object additionalProperties: type: object WorkflowInstanceState: type: object properties: id: type: string format: uuid workflowInstanceId: type: string format: uuid workflowInstanceExecutionId: type: string format: uuid workflowDefinitionId: type: string format: uuid stage: $ref: '#/components/schemas/Stage' timestamp: type: integer format: int64 status: type: string enum: - RUNNING - FINISHED - FAILURE - EXCEPTION exception: type: string securitySchemes: BearerAuth: type: http scheme: bearer bearerFormat: JWT