---
title: "Aggregated usage"
method: GET
path: "/usage"
tags: ["Usage"]
---

# Aggregated usage

`GET /usage`

## Request

- Base URL: `https://api.aginera.ai/partner/v1`
- URL: `https://api.aginera.ai/partner/v1/usage`
- Auth: OAuth 2 (authorization code, authorization URL `https://auth.aginera.ai/oauth/authorize`, token URL `https://auth.aginera.ai/oauth/token`; client credentials, token URL `https://login.microsoftonline.com/65f567a9-6e6a-4f81-863c-aea4ece1f8eb/oauth2/v2.0/token`, scopes: `billing:read`)

## Query parameters

- `from` string, required
- `to` string, required
- `group_by` 'day' | 'surface' | 'agent' | 'client' | 'user' | 'operation' | 'end_customer'
- `surface` 'rest' | 'mcp'
- `end_customer_ref` string
- `format` 'json' | 'csv'

## Response `200`

OK

- UsageReport
  - `from` string, required
  - `to` string, required
  - `group_by` string, required
  - `rows` object[], required
    - `key` string, required
    - `requests` integer, required
    - `errors` integer, required
    - `units` number, required
    - `credits` number, required
    - `p95_ms` integer, nullable, required

## Other responses

- `default`: Error (RFC 7807)

---

[API](https://skmtc.dev/aginera/apis/aginera-takeoff-estimation-api.md) · [All operations](https://skmtc.dev/aginera/apis/aginera-takeoff-estimation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aginera/apis/aginera-takeoff-estimation-api/revisions/39115958da1e?raw)
