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

# Get a run's console summary

> Each task with its status and how much of its time and tool-call
budget it has used, calls and errors per tool, token usage and
estimated cost, and links to jobs the run started elsewhere.



## OpenAPI

````yaml get /api/crew-runs/{run_id}/summary
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/crew-runs/{run_id}/summary:
    get:
      tags:
        - Crew runs
      summary: Get a run's console summary
      description: |-
        Each task with its status and how much of its time and tool-call
        budget it has used, calls and errors per tool, token usage and
        estimated cost, and links to jobs the run started elsewhere.
      operationId: get_summary_api_crew_runs__run_id__summary_get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: ID of the run record.
            title: Run Id
          description: ID of the run record.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunConsoleSummary'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    RunConsoleSummary:
      properties:
        run_id:
          type: string
          format: uuid
          title: Run Id
        status:
          type: string
          title: Status
        crew_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Crew Version
        current_task:
          anyOf:
            - type: integer
            - type: 'null'
          title: Current Task
        last_seq:
          type: integer
          title: Last Seq
          description: The newest event's `seq`.
        tasks:
          items:
            $ref: '#/components/schemas/RunTaskSummary'
          type: array
          title: Tasks
        tool_counts:
          items:
            $ref: '#/components/schemas/RunToolCount'
          type: array
          title: Tool Counts
        llm_calls:
          type: integer
          title: Llm Calls
          default: 0
        tokens_in:
          type: integer
          title: Tokens In
          default: 0
        tokens_out:
          type: integer
          title: Tokens Out
          default: 0
        tool_calls:
          type: integer
          title: Tool Calls
          default: 0
        est_cost:
          anyOf:
            - type: number
            - type: 'null'
          title: Est Cost
        external_refs:
          items:
            additionalProperties: true
            type: object
          type: array
          title: External Refs
        control:
          additionalProperties: true
          type: object
          title: Control
          description: Pause, step and cancel state, and each task's current limits.
      type: object
      required:
        - run_id
        - status
        - last_seq
      title: RunConsoleSummary
      description: What the run console shows around the timeline.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RunTaskSummary:
      properties:
        index:
          type: integer
          title: Index
        task_id:
          type: string
          title: Task Id
        name:
          type: string
          title: Name
        agent:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent
        status:
          type: string
          title: Status
          description: '`pending`, `running`, `succeeded` or `failed`.'
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        ended_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Ended At
        time_budget_s:
          anyOf:
            - type: integer
            - type: 'null'
          title: Time Budget S
        time_used_s:
          anyOf:
            - type: number
            - type: 'null'
          title: Time Used S
        tool_calls_allowed:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tool Calls Allowed
        tool_calls_used:
          type: integer
          title: Tool Calls Used
          default: 0
        approval_tools:
          items:
            type: string
          type: array
          title: Approval Tools
      type: object
      required:
        - index
        - task_id
        - name
        - status
      title: RunTaskSummary
      description: One task of a run, for the console's task rail.
    RunToolCount:
      properties:
        tool:
          type: string
          title: Tool
        calls:
          type: integer
          title: Calls
        errors:
          type: integer
          title: Errors
      type: object
      required:
        - tool
        - calls
        - errors
      title: RunToolCount
      description: How often a run called one tool.
    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
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.