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

# Get Run

> Get a run by its ID.

Returns the current state of the run including its status, input, output,
and error information.



## OpenAPI

````yaml /openapi.json get /threads/{thread_id}/runs/{run_id}
openapi: 3.1.0
info:
  title: Aegra
  description: Production-ready Agent Protocol server
  version: 0.9.24
servers: []
security: []
tags:
  - name: Assistants
    description: A configured instance of a graph.
  - name: Threads
    description: Accumulated state and outputs from a group of runs.
  - name: Thread Runs
    description: Invoke a graph on a thread, updating its persistent state.
  - name: Stateless Runs
    description: Invoke a graph without state or memory persistence.
  - name: Crons
    description: Scheduled recurring runs on a cron schedule.
  - name: Store
    description: Persistent key-value and semantic storage available from any thread.
  - name: Event Streaming
    description: Agent Protocol v2 thread event streaming and commands.
  - name: Health
    description: Server health checks and service information.
paths:
  /threads/{thread_id}/runs/{run_id}:
    get:
      tags:
        - Thread Runs
      summary: Get Run
      description: >-
        Get a run by its ID.


        Returns the current state of the run including its status, input,
        output,

        and error information.
      operationId: get_run_threads__thread_id__runs__run_id__get
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            title: Thread Id
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Run'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentProtocolError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Run:
      properties:
        run_id:
          type: string
          title: Run Id
          description: Unique identifier for the run.
        thread_id:
          type: string
          title: Thread Id
          description: Thread this run belongs to.
        assistant_id:
          type: string
          title: Assistant Id
          description: Assistant that is executing this run.
        status:
          type: string
          title: Status
          description: >-
            Current run status: pending, running, error, success, timeout, or
            interrupted.
          default: pending
        input:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Input
          description: Input data provided to the run. None for checkpoint-only resume.
        output:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Output
          description: Final output produced by the run, or null if not yet complete.
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
          description: Error message if the run failed.
        config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Config
          description: Configuration passed to the graph at runtime.
        context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Context
          description: Context variables available during execution.
        user_id:
          type: string
          title: User Id
          description: Identifier of the user who owns this run.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the run was created.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Timestamp when the run was last updated.
      type: object
      required:
        - run_id
        - thread_id
        - assistant_id
        - user_id
        - created_at
        - updated_at
      title: Run
      description: |-
        Run entity model

        Status values: pending, running, error, success, timeout, interrupted
    AgentProtocolError:
      properties:
        error:
          type: string
          title: Error
          description: Error type
        message:
          type: string
          title: Message
          description: Human-readable error message
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
          description: Additional error details
      type: object
      required:
        - error
        - message
      title: AgentProtocolError
      description: Standard Agent Protocol error response
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````