---
title: "Monitor credit usage"
method: GET
path: "/monitors/credit-usage"
tags: ["Monitors"]
---

# Monitor credit usage

`GET /monitors/credit-usage`

Returns credits charged per monitor over an optional [since, until] window, newest spenders first.

## Query parameters

- `since` string, date-time — Only include items at or after this ISO 8601 timestamp.
- `until` string, date-time — Only include items before this ISO 8601 timestamp.

## Response `200`

Per-monitor credit usage

- MonitorsCreditUsageResponse
  - `data` MonitorsCreditUsage[], required
    - `monitor_id` string, required
    - `name` string, required — Monitor name (falls back to the id when the monitor was deleted).
    - `credits` integer, required — Credits charged to this monitor over the window.
    - `runs` integer, required — Number of billed runs over the window.
  - `total_credits` integer, required — Sum of credits across all monitors in the window.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/context/apis/context-dev.md) · [All operations](https://skmtc.net/context/apis/context-dev/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/context/context-dev/versions/182f532c2552/schema)
