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

# Poll automation runs by agent id — status, and the integration response once finished



## OpenAPI

````yaml /openapi/customer-api.json get /ai/trigger/runs
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Flow customer API reference. Start with the [quickstart](/api/quickstart)
    and [authentication guide](/api/authentication).
  title: Customer API
  version: 1.0.0
servers:
  - description: Flow API
    url: https://backend.branch.flowengineering.com
security: []
tags:
  - name: Automations
  - name: Branches
  - name: Comments
  - name: Convert
  - name: Data Model
  - name: Diagrams
  - name: Entities
  - name: Files
  - name: Import
  - name: Notifications
  - name: Projects
  - name: ReqIF
  - name: ReqIF Import
  - name: Shared Access Grants
  - name: User Groups
  - name: Users
paths:
  /ai/trigger/runs:
    get:
      tags:
        - Automations
      summary: >-
        Poll automation runs by agent id — status, and the integration response
        once finished
      operationId: AutomationTriggerController_runStatus
      parameters:
        - description: >-
            Comma-separated agent ids from a trigger response, at most 50 per
            request.
          in: query
          name: agent_ids
          required: true
          schema:
            type: string
        - description: Workspace identifier
          in: header
          name: customer
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRunStatusResponseDto'
          description: ''
      security:
        - api-key: []
        - bearer: []
components:
  schemas:
    AutomationRunStatusResponseDto:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AutomationRunStatusItemDto'
          type: array
      required:
        - items
      type: object
    AutomationRunStatusItemDto:
      properties:
        agent_id:
          type: string
        automation_id:
          nullable: true
          type: string
        automation_name:
          nullable: true
          type: string
        branches:
          default: []
          items:
            type: object
          type: array
        conclusion:
          enum:
            - pass
            - fail
            - warning
            - skipped
          nullable: true
          type: string
        created_at:
          type: string
        error:
          nullable: true
          type: string
        integration_grade:
          nullable: true
          type: string
        integration_response:
          nullable: true
          type: string
        project_id:
          nullable: true
          type: string
        status:
          enum:
            - running
            - completed
            - failed
          type: string
        steps:
          default: []
          items:
            $ref: '#/components/schemas/AgentPlanItemDto'
          type: array
        updated_at:
          type: string
      required:
        - agent_id
        - status
        - automation_id
        - automation_name
        - integration_response
        - integration_grade
        - branches
        - project_id
        - error
        - conclusion
        - steps
        - created_at
        - updated_at
      type: object
    AgentPlanItemDto:
      properties:
        conclusion:
          enum:
            - pass
            - fail
            - warning
            - skipped
          type: string
        detail:
          type: string
        status:
          enum:
            - pending
            - in_progress
            - done
          type: string
        title:
          type: string
      required:
        - title
        - status
      type: object
  securitySchemes:
    api-key:
      in: header
      name: X-API-Key
      type: apiKey
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````