Activepieces Flow Runs API

Access execution history and run details

GitHub OpenAPI

Operations 4

GET /v1/flow-runs Get flow runs #
GET /v1/flow-runs/count-by-status Get flow runs count by status #
GET /v1/flow-runs/{id} Get flow runs by id #
POST /v1/flow-runs/cancel Create flow runs cancel #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/activepieces:activepieces-flow-runs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

activepieces-flow-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Activepieces Documentation Flow Runs API
  version: 0.0.0
servers:
- url: https://cloud.activepieces.com/api
  description: Production Server
tags:
- name: flow-runs
paths:
  /v1/flow-runs:
    get:
      tags:
      - flow-runs
      description: List Flow Runs
      parameters:
      - schema:
          type: array
          items:
            type: string
            pattern: ^[0-9a-zA-Z]{21}$
        in: query
        name: flowId
        required: true
      - schema:
          type: array
          items:
            type: string
        in: query
        name: tags
        required: true
      - schema:
          type: array
          items:
            type: string
            enum:
            - FAILED
            - QUOTA_EXCEEDED
            - INTERNAL_ERROR
            - PAUSED
            - QUEUED
            - RUNNING
            - SUCCEEDED
            - MEMORY_LIMIT_EXCEEDED
            - TIMEOUT
            - CANCELED
            - LOG_SIZE_EXCEEDED
        in: query
        name: status
        required: true
      - schema:
          type: number
        in: query
        name: limit
        required: false
      - schema:
          type: string
        in: query
        name: cursor
        required: false
      - schema:
          type: string
        in: query
        name: createdAfter
        required: false
      - schema:
          type: string
        in: query
        name: createdBefore
        required: false
      - schema:
          type: string
          pattern: ^[0-9a-zA-Z]{21}$
        in: query
        name: projectId
        required: true
      - schema:
          type: string
        in: query
        name: failedStepName
        required: false
      - schema:
          type: array
          items:
            type: string
            pattern: ^[0-9a-zA-Z]{21}$
        in: query
        name: flowRunIds
        required: true
      - schema:
          type: boolean
        in: query
        name: includeArchived
        required: true
      security:
      - apiKey: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        created:
                          type: string
                        updated:
                          type: string
                        projectId:
                          type: string
                        flowId:
                          type: string
                        parentRunId:
                          type: string
                        failParentOnFailure:
                          type: boolean
                        triggeredBy:
                          type: string
                        tags:
                          type: array
                          items:
                            type: string
                        flowVersionId:
                          type: string
                        flowVersion:
                          type: object
                          properties:
                            displayName:
                              type: string
                          additionalProperties: false
                        logsFileId:
                          anyOf:
                          - type: string
                          - type: 'null'
                        status:
                          type: string
                          enum:
                          - FAILED
                          - QUOTA_EXCEEDED
                          - INTERNAL_ERROR
                          - PAUSED
                          - QUEUED
                          - RUNNING
                          - SUCCEEDED
                          - MEMORY_LIMIT_EXCEEDED
                          - TIMEOUT
                          - CANCELED
                          - LOG_SIZE_EXCEEDED
                        startTime:
                          anyOf:
                          - type: string
                          - type: 'null'
                        finishTime:
                          anyOf:
                          - type: string
                          - type: 'null'
                        environment:
                          type: string
                          enum:
                          - PRODUCTION
                          - TESTING
                        failedStep:
                          type: object
                          properties:
                            name:
                              type: string
                            displayName:
                              type: string
                          required:
                          - name
                          - displayName
                          additionalProperties: false
                        stepNameToTest:
                          type: string
                        archivedAt:
                          anyOf:
                          - type: string
                          - type: 'null'
                        stepsCount:
                          type: number
                      required:
                      - id
                      - created
                      - updated
                      - projectId
                      - flowId
                      - failParentOnFailure
                      - flowVersionId
                      - status
                      - environment
                      additionalProperties: false
                  next:
                    anyOf:
                    - type: string
                    - type: 'null'
                  previous:
                    anyOf:
                    - type: string
                    - type: 'null'
                required:
                - data
                additionalProperties: false
      summary: Get flow runs
      x-summary-source: derived
      operationId: getV1FlowRuns
      x-operation-id-source: derived
  /v1/flow-runs/count-by-status:
    get:
      tags:
      - flow-runs
      description: Count Flow Runs by Status
      parameters:
      - schema:
          type: string
          pattern: ^[0-9a-zA-Z]{21}$
        in: query
        name: projectId
        required: true
      - schema:
          type: string
        in: query
        name: createdAfter
        required: false
      - schema:
          type: string
        in: query
        name: createdBefore
        required: false
      security:
      - apiKey: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        status:
                          type: string
                          enum:
                          - FAILED
                          - QUOTA_EXCEEDED
                          - INTERNAL_ERROR
                          - PAUSED
                          - QUEUED
                          - RUNNING
                          - SUCCEEDED
                          - MEMORY_LIMIT_EXCEEDED
                          - TIMEOUT
                          - CANCELED
                          - LOG_SIZE_EXCEEDED
                        count:
                          type: number
                      required:
                      - status
                      - count
                      additionalProperties: false
                required:
                - data
                additionalProperties: false
      summary: Get flow runs count by status
      x-summary-source: derived
      operationId: getV1FlowRunsCountByStatus
      x-operation-id-source: derived
  /v1/flow-runs/{id}:
    get:
      tags:
      - flow-runs
      description: Get Flow Run
      parameters:
      - schema:
          type: string
          pattern: ^[0-9a-zA-Z]{21}$
        in: path
        name: id
        required: true
      security:
      - apiKey: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow-run'
      summary: Get flow runs by id
      x-summary-source: derived
      operationId: getV1FlowRunsById
      x-operation-id-source: derived
  /v1/flow-runs/cancel:
    post:
      tags:
      - flow-runs
      description: Cancel multiple paused/queued flow runs
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                  pattern: ^[0-9a-zA-Z]{21}$
                flowRunIds:
                  type: array
                  items:
                    type: string
                    pattern: ^[0-9a-zA-Z]{21}$
                excludeFlowRunIds:
                  type: array
                  items:
                    type: string
                    pattern: ^[0-9a-zA-Z]{21}$
                status:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      enum:
                      - PAUSED
                    - type: string
                      enum:
                      - QUEUED
                flowId:
                  type: array
                  items:
                    type: string
                    pattern: ^[0-9a-zA-Z]{21}$
                createdAfter:
                  type: string
                createdBefore:
                  type: string
              required:
              - projectId
        required: true
      security:
      - apiKey: []
      responses:
        '200':
          description: Default Response
      summary: Create flow runs cancel
      x-summary-source: derived
      operationId: postV1FlowRunsCancel
      x-operation-id-source: derived
components:
  schemas:
    flow-run:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/flow-run'
      type: object
      properties:
        id:
          type: string
        created:
          type: string
        updated:
          type: string
        projectId:
          type: string
        flowId:
          type: string
        parentRunId:
          type: string
        failParentOnFailure:
          type: boolean
        triggeredBy:
          type: string
        tags:
          type: array
          items:
            type: string
        flowVersionId:
          type: string
        flowVersion:
          type: object
          properties:
            displayName:
              type: string
          additionalProperties: false
        logsFileId:
          anyOf:
          - type: string
          - type: 'null'
        status:
          type: string
          enum:
          - FAILED
          - QUOTA_EXCEEDED
          - INTERNAL_ERROR
          - PAUSED
          - QUEUED
          - RUNNING
          - SUCCEEDED
          - MEMORY_LIMIT_EXCEEDED
          - TIMEOUT
          - CANCELED
          - LOG_SIZE_EXCEEDED
        startTime:
          anyOf:
          - type: string
          - type: 'null'
        finishTime:
          anyOf:
          - type: string
          - type: 'null'
        environment:
          type: string
          enum:
          - PRODUCTION
          - TESTING
        steps:
          anyOf:
          - type: object
            propertyNames:
              type: string
            additionalProperties: {}
          - type: 'null'
        failedStep:
          type: object
          properties:
            name:
              type: string
            displayName:
              type: string
          required:
          - name
          - displayName
          additionalProperties: false
        stepNameToTest:
          type: string
        archivedAt:
          anyOf:
          - type: string
          - type: 'null'
        stepsCount:
          type: number
      required:
      - id
      - created
      - updated
      - projectId
      - flowId
      - failParentOnFailure
      - flowVersionId
      - status
      - environment
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      description: Use your api key generated from the admin console
      scheme: bearer
externalDocs:
  url: https://www.activepieces.com/docs
  description: Find more info here
x-provenance:
  method: harvested
  publisher: Activepieces
  source: https://www.activepieces.com/docs/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)