---
title: "Get usage detail"
method: GET
path: "/usage/{id}"
---

# Get usage detail

`GET /usage/{id}`

## Request

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

Get detailed information about a specific usage record

## Path parameters

- `id` string, uuid, required

## Response `200`

Usage record details

- UsageDetail
  - `id` string, uuid
  - `action` string
  - `credits_used` integer
  - `created_at` string, date-time
  - `metadata` object

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `404`: Resource not found
- `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)
