---
title: "Get Turn Diagnostics"
method: GET
path: "/harness/admin/diagnostics"
tags: ["harness"]
---

# Get Turn Diagnostics

`GET /harness/admin/diagnostics`

## Request

- Base URL: `https://api.getathly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getathly.com/harness/admin/diagnostics`
- Auth: HTTP bearer

## Query parameters

- `limit` integer
- `athlete_slug` string, required

## Response `200`

Successful Response

- HarnessTurnDiagnosticsResponse: ``GET /harness/admin/diagnostics``: the pair's recent turns, oldest first, and whether this service's Confident trace links can open.
  - `turns` TurnDiagnostics[], required
    - `id` string, required
    - `turn_id` string, required
    - `kind` string, required
    - `outcome` string, required
    - `started_at` string, date-time, required
    - `total_ms` number, required
    - `reply_message_id` string, nullable
    - `after_message_id` string, nullable
    - `confident_trace_uuid` string, nullable
    - `otel_trace_id` string, nullable
    - `calls` union[]
      - union
        - RetrievalCall
          - `type` 'retrieval'
          - `duration_ms` number, required
          - `brains` string[]
          - `candidates` integer
          - `chunks` integer
          - `rerank` string, nullable
          - `error` string, nullable
        - ModelCall
          - `type` 'model'
          - `stage` 'operator' | 'voice', required
          - `step` integer, required
          - `model` string, required
          - `duration_ms` number, required
          - `input_tokens` integer, nullable
          - `cached_input_tokens` integer, nullable
          - `output_tokens` integer, nullable
          - `reasoning_tokens` integer, nullable
          - `response_id` string, nullable
          - `tool_calls` ToolCallChoice[]
            - `name` string, required
            - `arguments` string, required
          - `output` string, nullable
          - `error` string, nullable
        - ToolCall
          - `type` 'tool'
          - `name` string, required
          - `arguments` string, required
          - `result` string, nullable
          - `status` 'ok' | 'error'
          - `duration_ms` number, required
  - `confident_enabled` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getathly/apis/athly-api.md) - [All operations](https://skmtc.dev/getathly/apis/athly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getathly/apis/athly-api/revisions/6adfdc258d75?raw)
