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

# Get run status

> Poll for the status and result of an agent run. Returns the output when the run succeeds, or an error message if it fails.



## OpenAPI

````yaml GET /agents/{agent_id}/runs/{run_id}
openapi: 3.0.1
info:
  title: Push AI API
  description: >-
    Programmatic access to Push AI agents. Create API keys in the Push AI
    dashboard, then use them to list agents, invoke runs, and poll for results.
  version: 1.0.0
  contact:
    name: Push AI Support
    email: support@push.ai
servers:
  - url: https://api.push.ai/api/v1
    description: Production
security:
  - apiKey: []
paths:
  /agents/{agent_id}/runs/{run_id}:
    get:
      tags:
        - Runs
      summary: Get run status
      description: >-
        Poll for the status and result of an agent run. Returns the output when
        the run succeeds, or an error message if it fails.
      operationId: getRunStatus
      parameters:
        - name: agent_id
          in: path
          required: true
          description: The ID of the agent that owns the run.
          schema:
            type: integer
        - name: run_id
          in: path
          required: true
          description: The run ID returned by the create run endpoint.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Current run status and result (if complete).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunStatusResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Run not found or does not belong to your organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    RunStatusResponse:
      type: object
      required:
        - run_id
        - status
        - created_at
      properties:
        run_id:
          type: string
          format: uuid
          description: Unique run identifier.
        status:
          type: string
          enum:
            - running
            - succeeded
            - failed
            - cancelled
          description: Current run status.
        created_at:
          type: string
          format: date-time
          description: When the run was created.
        completed_at:
          type: string
          nullable: true
          format: date-time
          description: When the run finished. `null` if still running.
        output:
          type: string
          nullable: true
          description: The agent's final output. Only present when status is `succeeded`.
        error:
          type: string
          nullable: true
          description: Error message. Only present when status is `failed`.
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code (e.g. `invalid_api_key`,
                `agent_not_found`).
            message:
              type: string
              description: Human-readable error description.
            request_id:
              type: string
              description: >-
                Unique request identifier for debugging. Also returned in the
                `X-Request-Id` response header.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Organization API key. Create one in the Push AI dashboard under Settings
        → API Keys.

````