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

# Get Benchmark Diagnostics

> Get task outcomes and failure reasons after a benchmark diagnostic finishes.



## OpenAPI

````yaml /openapi.json get /api/v1/diagnostics/{benchmark_diagnostic_id}
openapi: 3.1.0
info:
  title: Trajectory API
  version: 0.1.0
  x-trajectory-api-version: '2026-10-14'
  description: >-
    This contract is API version 2026-10-14. The optional Trajectory-API-Version
    header pins it, and tmp-contract is accepted as an alias. Requests without
    the header get this version. Version 2026-10-07 and the pre-launch legacy
    response formats are retired.
servers:
  - url: https://api.trajectory.ai
security: []
tags:
  - name: agents
    x-group: Agents
  - name: benchmarks
    x-group: Specs (benchmarks)
  - name: diagnostics
    x-group: Diagnostics
  - name: benchmark-ingestion
    x-group: Spec (benchmark) submissions
  - name: eval
    x-group: Evaluations
  - name: training
    x-group: Training
  - name: deployments
    x-group: Deployments
  - name: model-endpoints
    x-group: Model endpoints
  - name: inference
    x-group: Inference
  - name: trajectories
    x-group: Trajectories
  - name: artifacts
    x-group: Artifacts
  - name: telemetry
    x-group: Telemetry
  - name: supported-models
    x-group: Supported models
  - name: organizations
    x-group: Organizations
  - name: secrets
    x-group: Secrets
paths:
  /api/v1/diagnostics/{benchmark_diagnostic_id}:
    get:
      tags:
        - diagnostics
      summary: Get Benchmark Diagnostics
      description: >-
        Get task outcomes and failure reasons after a benchmark diagnostic
        finishes.
      operationId: getBenchmarkDiagnostics
      parameters:
        - name: benchmark_diagnostic_id
          in: path
          required: true
          schema:
            type: string
            title: Benchmark Diagnostic Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BenchmarkDiagnosticsResponse'
        default:
          $ref: '#/components/responses/ApiErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BenchmarkDiagnosticsResponse:
      properties:
        benchmark_diagnostic_id:
          type: string
          title: Benchmark Diagnostic Id
        bench_id:
          type: string
          title: Bench Id
        eval_run_id:
          type: string
          title: Eval Run Id
        base_model_slug:
          type: string
          title: Base Model Slug
          description: Model used for the diagnostic run.
        status:
          type: string
          enum:
            - completed
            - failed
            - cancelled
          title: Status
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        failure:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Failure
          description: Run-wide failure summary; task errors appear on tasks.
        task_counts:
          $ref: '#/components/schemas/BenchmarkDiagnosticTaskCounts'
          description: Number of tasks by final status.
        tasks:
          items:
            $ref: '#/components/schemas/BenchmarkDiagnosticTask'
          type: array
          title: Tasks
      type: object
      required:
        - benchmark_diagnostic_id
        - bench_id
        - eval_run_id
        - base_model_slug
        - status
        - created_at
        - updated_at
        - started_at
        - completed_at
        - failure
        - task_counts
        - tasks
      title: BenchmarkDiagnosticsResponse
    BenchmarkDiagnosticTaskCounts:
      properties:
        completed:
          type: integer
          title: Completed
        failed:
          type: integer
          title: Failed
        cancelled:
          type: integer
          title: Cancelled
      type: object
      required:
        - completed
        - failed
        - cancelled
      title: BenchmarkDiagnosticTaskCounts
    BenchmarkDiagnosticTask:
      properties:
        task_id:
          type: string
          title: Task Id
        runtime_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Runtime Id
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
            - cancelled
          title: Status
        failure:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Failure
          description: Failure for this task, including rollout details when available.
        trajectory_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Trajectory Id
          description: Trajectory of the task's rollout; null before one was created.
        termination_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Termination Reason
          description: Recorded reason the trajectory ended; null when not recorded.
        reward:
          anyOf:
            - type: number
            - type: 'null'
          title: Reward
          description: Reward recorded for the trajectory; null when none was recorded.
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
      type: object
      required:
        - task_id
        - runtime_id
        - status
        - failure
        - created_at
        - updated_at
        - started_at
        - completed_at
      title: BenchmarkDiagnosticTask
    ApiErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ApiErrorBody'
      required:
        - error
      title: ApiErrorEnvelope
      type: object
    ApiErrorBody:
      properties:
        type:
          $ref: '#/components/schemas/ErrorType'
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        param:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Param
        doc_url:
          type: string
          title: Doc Url
        context:
          additionalProperties: true
          title: Context
          type: object
      required:
        - type
        - code
        - message
        - doc_url
        - context
      title: ApiErrorBody
      type: object
    ErrorType:
      enum:
        - invalid_request_error
        - authentication_error
        - permission_error
        - conflict_error
        - billing_error
        - rate_limit_error
        - dependency_error
        - api_error
      title: ErrorType
      type: string
  responses:
    ApiErrorResponse:
      description: >-
        Common API error. Possible codes: `authentication_required`,
        `permission_denied`, `validation_error`, `rate_limited`,
        `internal_error`, `service_unavailable`.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/RequestId'
        Trajectory-Should-Retry:
          $ref: '#/components/headers/TrajectoryShouldRetry'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorEnvelope'
  headers:
    RequestId:
      schema:
        type: string
    TrajectoryShouldRetry:
      schema:
        type: boolean
    RetryAfter:
      schema:
        type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Organization API key

````

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