> ## 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 executions

> Returns executions of workflows, table automations and app business rules, newest first. A
workspace-scoped key lists the executions of its own workspace and environment; an account-wide
key lists the account's. Use type to filter the category and triggerType to filter
how it was triggered. Only real runs appear: the
audit rows recorded when a workflow is edited or toggled are not executions.
            
With no explicit createdAfter or createdBefore, the query is limited to the last
30 days. Executions whose per-step detail has passed the workflow's retention window are still
listed, with dataAvailable false, so a wide window never shows unexplained gaps.
            
For paging through a lot of data prefer cursor over offset: executions are
inserted continuously, and offset paging over a table growing underneath you repeats and skips
rows. Follow nextCursor until it is absent. A cursor is tied to the sort it was issued
for, and is not offered when sorting by closedAt, which is unset on open executions.
Cursor pages omit totalCount.



## OpenAPI

````yaml /developers/api-reference/openapi.json get /v1/executions
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/executions:
    get:
      tags:
        - Executions
      summary: List executions
      description: >-
        Returns executions of workflows, table automations and app business
        rules, newest first. A

        workspace-scoped key lists the executions of its own workspace and
        environment; an account-wide

        key lists the account's. Use type to filter the category and triggerType
        to filter

        how it was triggered. Only real runs appear: the

        audit rows recorded when a workflow is edited or toggled are not
        executions.
                    
        With no explicit createdAfter or createdBefore, the query is limited to
        the last

        30 days. Executions whose per-step detail has passed the workflow's
        retention window are still

        listed, with dataAvailable false, so a wide window never shows
        unexplained gaps.
                    
        For paging through a lot of data prefer cursor over offset: executions
        are

        inserted continuously, and offset paging over a table growing underneath
        you repeats and skips

        rows. Follow nextCursor until it is absent. A cursor is tied to the sort
        it was issued

        for, and is not offered when sorting by closedAt, which is unset on open
        executions.

        Cursor pages omit totalCount.
      operationId: Executions_ListExecutions
      parameters:
        - name: workflowId
          in: query
          description: Optional filter to one workflow.
          schema:
            type: integer
            format: int32
            nullable: true
          x-position: 1
        - name: type
          in: query
          description: 'Optional definition filter: workflow, automation or businessRule.'
          schema:
            type: string
            nullable: true
            enum:
              - workflow
              - automation
              - businessRule
          x-position: 2
        - name: triggerType
          in: query
          description: >-
            Optional trigger filter, for example instant, scheduled or
            recordUpdate.
          schema:
            type: string
            nullable: true
            enum:
              - instant
              - automated
              - scheduled
              - buttonClicked
              - recordCreate
              - recordUpdate
              - recordDelete
              - barcodeInput
              - fieldChanged
              - dropDownClicked
              - screenOnLoad
              - onRecordClicked
              - onAddRecordClicked
              - iFrameEvent
              - api
              - mCPTool
              - workflowMCPTool
              - webhookSubscribe
              - webhookUnsubscribe
              - onWebhookReceived
              - onWebhookSubscription
              - chatBot
              - workflowActivityTool
              - onGetDynamicList
              - onRefreshObjectList
              - onRefreshObject
              - onSaveSelectedObjects
              - onActivityExecute
              - onBeforeRequest
          x-position: 3
        - name: status
          in: query
          style: form
          explode: true
          description: >-
            Optional status filter. Repeat the parameter to match any of several
            statuses.
          schema:
            type: array
            nullable: true
            items:
              type: string
          x-position: 4
        - name: context
          in: query
          description: Optional substring match on the caller-supplied context identifier.
          schema:
            type: string
            nullable: true
          x-position: 5
        - name: createdBy
          in: query
          description: Optional account-user id filter on who started the execution.
          schema:
            type: integer
            format: int32
            nullable: true
          x-position: 6
        - name: createdAfter
          in: query
          description: Optional inclusive lower bound on when the execution was queued.
          schema:
            type: string
            format: date-time
            nullable: true
          x-position: 7
        - name: createdBefore
          in: query
          description: Optional inclusive upper bound on when the execution was queued.
          schema:
            type: string
            format: date-time
            nullable: true
          x-position: 8
        - name: closedAfter
          in: query
          description: Optional inclusive lower bound on when the execution finished.
          schema:
            type: string
            format: date-time
            nullable: true
          x-position: 9
        - name: closedBefore
          in: query
          description: Optional inclusive upper bound on when the execution finished.
          schema:
            type: string
            format: date-time
            nullable: true
          x-position: 10
        - name: sort
          in: query
          description: >-
            Optional sort over createdAt, executionId, closedAt. Comma-separated
            keys, each "field asc" or "field desc", highest priority first -
            e.g. "closedAt desc,createdAt 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 executionId. A single key may omit
            the direction and then sorts descending. Defaults to createdAt desc.
            Cursor paging is only available for a single createdAt or
            executionId key.
          schema:
            type: string
            nullable: true
          x-position: 11
        - name: cursor
          in: query
          description: >-
            Cursor from a previous page's nextCursor. Not available when sorting
            by closedAt.
          schema:
            type: string
            nullable: true
          x-position: 12
        - name: offset
          in: query
          description: >-
            Zero-based index of the first item to return. Ignored when a cursor
            is supplied.
          schema:
            type: integer
            format: int32
            default: 0
          x-position: 13
        - 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: 14
      responses:
        '200':
          description: A paginated list of executions.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CursorPaginatedResponseOfExecutionPublicDTO
        '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; list_page also returns next_cursor and total_count

            page = client.executions.list_page(workflow_id=123,
            status=["failed"], top=20)

            for run in page.items:
                print(run.execution_id, run.status)
        - lang: typescript
          label: TypeScript
          source: >-
            import { Engini } from "@engini/sdk";


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


            // one page; listPage also returns nextCursor and totalCount

            const page = await client.executions.listPage({ workflowId: 123,
            status: ["failed"], top: 20 });

            for (const run of page.items ?? []) console.log(run.executionId,
            run.status);
        - lang: bash
          label: CLI
          source: engini executions list --workflow 123 --status failed --top 20
components:
  schemas:
    CursorPaginatedResponseOfExecutionPublicDTO:
      type: object
      description: >-
        Paginated wrapper for an endpoint that supports both offset and cursor
        paging.
      additionalProperties: false
      required:
        - items
        - offset
        - top
      properties:
        items:
          type: array
          description: The items in the current page.
          items:
            $ref: '#/components/schemas/ExecutionPublicDTO'
        totalCount:
          type: integer
          description: >-
            Total number of matching items, or null on cursor pages where the
            expensive count is skipped.
          format: int32
          nullable: true
        offset:
          type: integer
          description: >-
            Number of items skipped before this page. Zero when a cursor was
            supplied.
          format: int32
        top:
          type: integer
          description: Maximum number of items requested for this page.
          format: int32
        nextCursor:
          type: string
          description: Opaque cursor for the next page. Omitted when there is no next page.
          nullable: true
    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'
    ExecutionPublicDTO:
      type: object
      description: >-
        Public shape of one workflow, table-automation or app-business-rule
        execution.
      additionalProperties: false
      required:
        - executionId
        - workflowId
        - type
        - triggerType
        - status
        - createdAt
        - activitiesRan
        - dataTransferred
        - dataAvailable
      properties:
        executionId:
          type: integer
          description: Identifier of the execution.
          format: int32
        workflowId:
          type: integer
          description: >-
            Identifier of the stored definition that ran. Use Type to
            distinguish a

            workflow, table automation or business rule.
          format: int32
        workspace:
          description: >-
            The workspace the execution's workflow belongs to; omitted for a row
            that predates workspaces.
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/WorkspaceRefPublicDTO'
        environment:
          description: >-
            The environment (of Workspace) the execution's workflow belongs to;
            omitted for a row that predates workspaces.
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/EnvironmentRefPublicDTO'
        type:
          type: string
          description: 'Kind of definition that ran: workflow, automation or businessRule.'
        triggerType:
          type: string
          description: >-
            Trigger that started the definition, for example instant, scheduled
            or recordUpdate.
        status:
          type: string
          description: >-
            Status of the execution. A status this API version does not publish
            is returned in the

            escape form "unknown:{id}" rather than being dropped, so the
            information is never

            silently lost.
        createdAt:
          type: string
          description: When the execution was queued (UTC).
          format: date-time
        startedAt:
          type: string
          description: >-
            When the execution started running (UTC); omitted while it is still
            queued.
          format: date-time
          nullable: true
        closedAt:
          type: string
          description: >-
            When the execution reached a terminal status (UTC); omitted while it
            is still open.
          format: date-time
          nullable: true
        duration:
          type: number
          description: >-
            Execution duration in seconds, fractional. Omitted while the
            execution is still open -

            a duration of zero would be a claim about how long it took, not "not
            finished yet".
          format: double
          nullable: true
        activitiesRan:
          type: integer
          description: >-
            Number of activities that ran in this execution. This is currently
            the basis for credit

            consumption, but it is deliberately not named creditsUsed: the
            mapping from activities to

            credits is a billing decision and is not frozen by this contract.
          format: int32
        dataTransferred:
          type: integer
          description: Bytes of data transferred by this execution.
          format: int32
        context:
          type: string
          description: >-
            Caller-supplied context identifier for this execution; omitted when
            not set.
          nullable: true
        createdBy:
          description: >-
            The account user who started the execution; omitted for
            system-triggered executions.
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/AccountUserRefPublicDTO'
        dataAvailable:
          type: boolean
          description: >-
            Whether the execution's per-step log and payloads are still
            available. Executions past their

            workflow's retention window keep their summary row but have their
            per-step detail purged;

            those rows stay in the list with this set to false, so a wide query
            never shows silent gaps.
    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.
    WorkspaceRefPublicDTO:
      type: object
      description: >-
        The workspace a /v1 item belongs to, as it appears in the item's
        workspace member.
      additionalProperties: false
      required:
        - id
      properties:
        id:
          type: string
          description: Identifier of the workspace.
          format: uuid
        name:
          type: string
          description: >-
            Display name of the workspace; null for an API key, for a workspace
            the caller cannot open, and when the name could not be read.
          nullable: true
    EnvironmentRefPublicDTO:
      type: object
      description: >-
        The environment a /v1 item belongs to, as it appears in the item's
        environment member. Same rules as

        WorkspaceRefPublicDTO: Name and Type are null whenever the name is.
      additionalProperties: false
      required:
        - id
      properties:
        id:
          type: string
          description: Identifier of the environment.
          format: uuid
        name:
          type: string
          description: >-
            Display name of the environment; null when the caller cannot be
            shown it.
          nullable: true
        type:
          type: string
          description: >-
            Kind of environment: Production, Staging or Development; null when
            the name is.
          nullable: true
    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.