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

# Get one flow run

> Returns one run with its steps in the order the flow ran them: each step's type, status, when it ran, what it returned and why it failed. A step's inputs are not returned. `error` is why the run failed. A run is one time an Agent Studio flow ran, on one record or on its schedule; Agent Studio's Executions page lists them. Runs of deleted flows are not listed. Same access as the Executions page: the workspace's plan includes Agent Studio (else 403 not_entitled) and the person's role can open Agent Studio, admins and builders (else 403 insufficient_scope).



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/automations/runs/{run_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/automations/runs/{run_id}:
    get:
      tags:
        - automations
      summary: Get one flow run
      description: >-
        Returns one run with its steps in the order the flow ran them: each
        step's type, status, when it ran, what it returned and why it failed. A
        step's inputs are not returned. `error` is why the run failed. A run is
        one time an Agent Studio flow ran, on one record or on its schedule;
        Agent Studio's Executions page lists them. Runs of deleted flows are not
        listed. Same access as the Executions page: the workspace's plan
        includes Agent Studio (else 403 not_entitled) and the person's role can
        open Agent Studio, admins and builders (else 403 insufficient_scope).
      operationId: automations_get_run
      parameters:
        - description: The run's id, from GET /v1/automations/runs
          in: path
          name: run_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRunDetail'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    AutomationRunDetail:
      properties:
        app_url:
          description: The run on Agent Studio's Executions page
          title: App Url
          type: string
        error:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Why it failed: the first failed step''s error'
          title: Error
        flow_id:
          description: The flow it ran (GET /v1/automations/flows/{flow_id})
          title: Flow Id
          type: string
        flow_name:
          title: Flow Name
          type: string
        id:
          title: Id
          type: string
        last_step_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When its last step ran, ISO 8601 UTC
          title: Last Step At
        record:
          anyOf:
            - $ref: '#/components/schemas/RunRecord'
            - type: 'null'
          description: The record it ran on; null for a run with none (a schedule)
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When it started, ISO 8601 UTC; null while queued
          title: Started At
        status:
          description: >-
            queued (waiting for a worker), running, completed, failed, waiting
            (a wait step: a sleep or an email reply) or awaiting_approval (an
            approval step)
          enum:
            - queued
            - running
            - completed
            - failed
            - waiting
            - awaiting_approval
          title: Status
          type: string
        steps:
          description: Its steps in the order the flow runs them
          items:
            $ref: '#/components/schemas/RunStep'
          title: Steps
          type: array
        steps_truncated:
          default: false
          description: >-
            Some steps are left out: more than 100 steps ran, or the run wrote
            more than 1000 step records and the oldest steps were not read
          title: Steps Truncated
          type: boolean
        triggered_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When it was queued, ISO 8601 UTC
          title: Triggered At
      required:
        - id
        - flow_id
        - flow_name
        - status
        - record
        - triggered_at
        - started_at
        - app_url
        - error
        - last_step_at
        - steps
      title: AutomationRunDetail
      type: object
    RunRecord:
      properties:
        id:
          description: The record's id, as GET /v1/objects/<object>/records gives it
          title: Id
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          description: Its name; null when it has none or no longer exists
          title: Name
        object:
          description: What kind of record the run ran on
          enum:
            - account
            - contact
            - opportunity
            - project
            - task
            - user
            - activity
            - meeting
            - warehouse_row
            - other
          title: Object
          type: string
      required:
        - object
        - id
        - name
      title: RunRecord
      type: object
    RunStep:
      properties:
        at:
          anyOf:
            - type: string
            - type: 'null'
          description: When it ran, ISO 8601 UTC
          title: At
        component:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Its component, e.g. SendEmailViaTemplateComponentV2; null when the
            flow no longer has the step
          title: Component
        error:
          anyOf:
            - type: string
            - type: 'null'
          description: Why it failed
          title: Error
        id:
          description: >-
            The step's id in the flow's spec (GET
            /v1/automations/flows/{flow_id}/spec), else its node id
          title: Id
          type: string
        output:
          description: >-
            What it returned; long text and long lists are cut. An API call's
            `url` is given as its `host`
          title: Output
        status:
          description: 'waiting: the run is paused at this step (a wait or an approval)'
          enum:
            - completed
            - failed
            - waiting
          title: Status
          type: string
        type:
          enum:
            - trigger
            - condition
            - ai
            - agent
            - send_email
            - send_survey
            - slack_message
            - teams_message
            - read_records
            - update_field
            - create_task
            - create_project
            - create_opportunity
            - create_case
            - add_comment
            - approval
            - wait
            - http_request
            - transform
            - output
            - other
          title: Type
          type: string
      required:
        - id
        - type
        - component
        - status
        - at
      title: RunStep
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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