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

# List executions of a flow

> Lists the runs of a flow (live and test), newest first, paginated. An `error` run without steps was never started (see the detail's `stopped_reason`). The installation setting `FLOW_BUILDER_EXECUTION_RETENTION_DAYS` (default 0, keep them forever) makes a daily job delete the runs that finished (`success` or `error`) more than that many days ago; running and waiting runs, and a run a waiting conversation still points at, stay. Administrator access is required.



## OpenAPI

````yaml /openapi/application.json get /api/v1/accounts/{account_id}/flow_builder/flows/{flow_id}/executions
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/flow_builder/flows/{flow_id}/executions:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
      - name: flow_id
        in: path
        required: true
        description: Flow identifier.
        schema:
          type: integer
        example: 12
    get:
      tags:
        - Flow Builder
      summary: List executions of a flow
      description: >-
        Lists the runs of a flow (live and test), newest first, paginated. An
        `error` run without steps was never started (see the detail's
        `stopped_reason`). The installation setting
        `FLOW_BUILDER_EXECUTION_RETENTION_DAYS` (default 0, keep them forever)
        makes a daily job delete the runs that finished (`success` or `error`)
        more than that many days ago; running and waiting runs, and a run a
        waiting conversation still points at, stay. Administrator access is
        required.
      operationId: list-flow-builder-executions
      parameters:
        - name: page
          in: query
          required: false
          description: Page number.
          schema:
            type: integer
            default: 1
          example: 1
        - name: per_page
          in: query
          required: false
          description: Executions per page, at most 100.
          schema:
            type: integer
            default: 25
            maximum: 100
          example: 25
      responses:
        '200':
          description: Executions of the flow.
          content:
            application/json:
              schema:
                type: object
                required:
                  - payload
                  - meta
                properties:
                  payload:
                    type: array
                    items:
                      $ref: '#/components/schemas/flow_builder_execution'
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        example: 1
                      total_pages:
                        type: integer
                        example: 4
                      total_count:
                        type: integer
                        example: 87
              example:
                payload:
                  - id: 905
                    flow_id: 12
                    event_name: message_created
                    status: success
                    steps_count: 2
                    flow_version_id: 31
                    conversation_id: 4821
                    message_id: 99120
                    started_at: '2026-10-27T14:10:02Z'
                    finished_at: '2026-10-27T14:10:03Z'
                    duration_ms: 812
                    error_message: Sample text
                meta:
                  current_page: 1
                  total_pages: 4
                  total_count: 87
        '401':
          description: >-
            Unauthenticated, not a member of the account, or not an account
            administrator (Flow Builder is administrator-only).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: You are not authorized to do this action
        '403':
          description: The Flow Builder feature is not enabled for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: Flow Builder is not enabled for this account
        '404':
          description: Resource not found in the account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: Resource could not be found
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    flow_builder_execution:
      type: object
      required:
        - id
        - flow_id
        - event_name
        - status
        - steps_count
      properties:
        id:
          type: integer
          description: Execution identifier.
          example: 905
        flow_id:
          type: integer
          example: 12
        flow_version_id:
          type:
            - integer
            - 'null'
          description: Published version that ran. Null for test runs of a draft.
          example: 31
        conversation_id:
          type:
            - integer
            - 'null'
          description: Null on a scheduled run, which has no conversation.
          example: 4821
        message_id:
          type:
            - integer
            - 'null'
          description: Null on a scheduled run and on runs no message started.
          example: 99120
        event_name:
          type: string
          description: >-
            Event that started the run: the start's event
            (`conversation_created`, `conversation_updated`, `message_created`,
            `message_sent`, `social_comment_received`, `kanban_item_updated`, or
            the legacy `conversation_opened` and `conversation_resolved`),
            `schedule` for a run of a `schedule` start, or `flow_called` for a
            run another flow's `run_flow` block started.
          example: message_created
        status:
          type: string
          enum:
            - running
            - success
            - error
            - waiting
          description: >-
            Run status. `waiting` means the flow is paused waiting for a reply
            or a timer. An `error` run without steps was never started (a start
            dropped by one run per contact, a scheduled slot that did not run):
            its `error_message` says why and the detail's `stopped_reason` gives
            the code.
          example: success
        started_at:
          type:
            - string
            - 'null'
          format: date-time
          example: '2026-10-27T14:10:02Z'
        finished_at:
          type:
            - string
            - 'null'
          format: date-time
          example: '2026-10-27T14:10:03Z'
        duration_ms:
          type:
            - integer
            - 'null'
          example: 812
        error_message:
          type:
            - string
            - 'null'
          example: null
        created_at:
          type: string
          format: date-time
          example: '2026-10-27T14:10:02Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-10-27T14:10:03Z'
        steps_count:
          type: integer
          description: Number of blocks the run went through.
          example: 2
    flow_builder_error:
      type: object
      description: >-
        Error returned by Flow Builder endpoints when the feature is disabled,
        the user is not authorized or the resource is missing.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
          example: Flow Builder is not enabled for this account
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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