---
title: "List usage records"
method: GET
path: "/usage"
---

# List usage records

`GET /usage`

## Request

- Base URL: `https://api.closedloop.sh`
- URL: `https://api.closedloop.sh/usage`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/closedloop/apis/closedloop-ai-api/docs/usage/get.ts> (a function with typed inputs; its response is checked against the schema)

Get paginated list of usage records

## Query parameters

- `page` integer
- `limit` integer

## Response `200`

List of usage records

- object
  - `data` Usage[]
    - `id` string, uuid
    - `action` string
    - `credits_used` integer
    - `created_at` string, date-time
  - `pagination` Pagination
    - `page` integer
    - `limit` integer
    - `total` integer
    - `pages` integer

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `500`: Internal server error

---

[API](https://skmtc.dev/closedloop/apis/closedloop-ai-api.md) - [All operations](https://skmtc.dev/closedloop/apis/closedloop-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/closedloop/apis/closedloop-ai-api/revisions/20e04ae722ee?raw)
