---
title: "Read the task metrics"
method: GET
path: "/api/assistant/metrics"
tags: ["Mailzero Assistant"]
---

# Read the task metrics

`GET /api/assistant/metrics`

## Request

- Base URL: `https://domani.run`
- URL: `https://domani.run/api/assistant/metrics`
- Auth: HTTP bearer

The seven numbers of the task layer on a rolling window (thirty days by default, `window_days` from 1 to 90), for the account and for each standing delegation: matters closed without the owner, the time from arrival to done, the plans executed as proposed, edited and rejected, the escalations per matter, the corrections after execution, the collisions, the model cost per matter. Read from the receipts, the plans, the escalations and the ledger; nothing is estimated. Requires `assistant:read`.

## Query parameters

- `window_days` integer

## Response `200`

The numbers

- AssistantTaskMetrics
  - `type` 'metrics', required
  - `as_of` string, date-time, required
  - `window_days` integer, required
  - `account` AssistantTaskNumbers, required: The seven numbers of the task layer on the window: matters an assignee touched, matters closed without the owner, seconds from arrival to done, plans executed as proposed, edited and rejected, escalations per matter, corrections after execution, collisions, model cost per matter
    - `matters` integer, required
    - `closed_without_owner` integer, required
    - `time_to_done_seconds` integer, nullable, required
    - `plans` object, required
      - `executed_as_proposed` integer, required
      - `edited` integer, required
      - `rejected` integer, required
    - `escalations_per_matter` number, required
    - `corrections_after_execution` integer, required
    - `collisions` integer, required
    - `model_cost_per_matter_usd` number, required
  - `rules` object[], required
    - `rule` object, required
      - `id` string, required
      - `name` string, required
      - `level` string, required
      - `enabled` boolean, required
    - `numbers` AssistantTaskNumbers, required: The seven numbers of the task layer on the window: matters an assignee touched, matters closed without the owner, seconds from arrival to done, plans executed as proposed, edited and rejected, escalations per matter, corrections after execution, collisions, model cost per matter
      - `matters` integer, required
      - `closed_without_owner` integer, required
      - `time_to_done_seconds` integer, nullable, required
      - `plans` object, required
        - `executed_as_proposed` integer, required
        - `edited` integer, required
        - `rejected` integer, required
      - `escalations_per_matter` number, required
      - `corrections_after_execution` integer, required
      - `collisions` integer, required
      - `model_cost_per_matter_usd` number, required

## Other responses

- `401`: Missing or invalid API key
- `429`: Rate limit exceeded - wait and retry

---

[API](https://skmtc.dev/domani/apis/domani-run-api.md) · [All operations](https://skmtc.dev/domani/apis/domani-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/domani/apis/domani-run-api/revisions/7679f8159533?raw)
