> ## Documentation Index
> Fetch the complete documentation index at: https://sure-917046f5-mintlify-docs-update-1787384258771.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a rule run

> Retrieve one rule run from the authenticated user family.



## OpenAPI

````yaml /openapi.yaml get /api/v1/rule_runs/{id}
openapi: 3.0.3
info:
  title: Sure API
  version: v1
  description: OpenAPI documentation generated from executable request specs.
servers:
  - url: https://app.sure.am
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
paths:
  /api/v1/rule_runs/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: Rule run ID
        schema:
          type: string
          format: uuid
    get:
      tags:
        - Rule Runs
      summary: Retrieve a rule run
      description: Retrieve one rule run from the authenticated user family.
      responses:
        '200':
          description: rule run retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleRunResponse'
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: insufficient scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: rule run not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    RuleRunResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/RuleRun'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
          nullable: true
        details:
          oneOf:
            - type: array
              items:
                type: string
            - type: object
          nullable: true
        errors:
          type: array
          items:
            type: string
          nullable: true
          description: >-
            Validation error messages (alternative to details used by trades,
            valuations, etc.)
    RuleRun:
      type: object
      required:
        - id
        - rule_id
        - rule_name
        - execution_type
        - status
        - transactions_queued
        - transactions_processed
        - transactions_modified
        - pending_jobs_count
        - executed_at
        - rule
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        rule_id:
          type: string
          format: uuid
        rule_name:
          type: string
          nullable: true
        execution_type:
          type: string
          enum:
            - manual
            - scheduled
        status:
          type: string
          enum:
            - pending
            - success
            - failed
        transactions_queued:
          type: integer
          minimum: 0
        transactions_processed:
          type: integer
          minimum: 0
        transactions_modified:
          type: integer
          minimum: 0
        pending_jobs_count:
          type: integer
          minimum: 0
        executed_at:
          type: string
          format: date-time
        error_message:
          type: string
          nullable: true
        rule:
          type: object
          nullable: true
          required:
            - id
            - resource_type
            - active
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
              nullable: true
            resource_type:
              type: string
            active:
              type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      name: X-Api-Key
      in: header
      description: API key for authentication. Generate one from your account settings.

````