---
title: "Get Usage By Type"
method: GET
path: "/api/analytics/usage-by-type"
tags: ["analytics"]
---

# Get Usage By Type

`GET /api/analytics/usage-by-type`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/analytics/usage-by-type`
- Auth: HTTP bearer

Get daily credit usage breakdown by operation type.

Categories: Chat, Heartbeat, Image, Video, Voice, Other.
Chat vs Heartbeat is distinguished by comparing the transaction's model
against the agent's heartbeat_model.
Includes both debit and whitelisted transactions. Excludes deposits/credits.

## Query parameters

- `days` integer
- `program_id` string, uuid, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
