---
title: "Get Keys"
method: GET
path: "/api/billing/usage/keys"
tags: ["billing"]
---

# Get Keys

`GET /api/billing/usage/keys`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/billing/usage/keys`
- Auth: none declared

Per-provider-key spend rollup for the calling identity (BYOK keys), or
for an owned identity when an owner passes ``target_identity_id``.

## Query parameters

- `provider` string[], nullable
- `model` string, nullable
- `capability` string[], nullable
- `date_from` string, date-time, nullable
- `date_to` string, date-time, nullable
- `target_identity_id` string, uuid, nullable

## Headers

- `x-impersonate-identity-id` string, nullable

## Response `200`

Successful Response

- object[]

## Other responses

- `422`: Validation Error

---

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