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

# Get a single schedule run

> Retrieves a single schedule run by its ID, including the full schedule snapshot at execution time. The run must belong to the authenticated user's organization.



## OpenAPI

````yaml /openapi/em-runtime-utils-v2.yaml get /utils/schedules/runs/{run_id}
openapi: 3.1.0
info:
  title: em_runtime_utils
  version: 5.27.0
servers: []
security: []
paths:
  /utils/schedules/runs/{run_id}:
    get:
      tags:
        - schedules
      summary: Get a single schedule run
      description: >-
        Retrieves a single schedule run by its ID, including the full schedule
        snapshot at execution time. The run must belong to the authenticated
        user's organization.
      operationId: get_schedule_run
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the schedule run to retrieve
            title: Run Id
          description: ID of the schedule run to retrieve
        - name: X-Project-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Project-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduleRunDetail'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    ScheduleRunDetail:
      properties:
        id:
          type: string
          title: Id
          description: Unique ID of the schedule run
        schedule_id:
          type: string
          title: Schedule Id
          description: ID of the schedule that was executed
        organization_id:
          type: string
          title: Organization Id
          description: Organization ID associated with the run
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: Optional project ID associated with the run
        status:
          type: string
          title: Status
          description: Execution status of the run (e.g. PENDING, SUCCESS, FAILURE)
        failure_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Failure Reason
          description: Optional description of how the task failed; empty when successful
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the run record was created (UTC)
        schedule_snapshot:
          additionalProperties: true
          type: object
          title: Schedule Snapshot
          description: JSON snapshot of the schedule configuration at the time of execution
      type: object
      required:
        - id
        - schedule_id
        - organization_id
        - status
        - created_at
        - schedule_snapshot
      title: ScheduleRunDetail
      description: >-
        Detailed view of a single schedule run including the full schedule
        snapshot.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Standard error response model.
    ErrorBody:
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          title: Message
        details:
          additionalProperties: true
          type: object
          title: Details
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - code
        - message
        - request_id
        - timestamp
      title: ErrorBody
      description: Error body with structured details.
    ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - INVALID_TOKEN
        - INSUFFICIENT_PERMISSIONS
        - RESOURCE_NOT_FOUND
        - RESOURCE_ALREADY_EXISTS
        - VALIDATION_ERROR
        - RATE_LIMIT_EXCEEDED
        - SERVICE_UNAVAILABLE
        - INTERNAL_ERROR
      title: ErrorCode
      description: Standard error codes for API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````