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

# Retrieve monitor credit usage

`GET /monitors/credit-usage`

## Request

- Base URL: `https://api.context.dev/v1`
- URL: `https://api.context.dev/v1/monitors/credit-usage`
- Auth: HTTP bearer

Return usage per monitor, highest first, for up to the 10,000 most recent runs in the requested window.

## 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.
  - `key_metadata` KeyMetadata: Credits this request used and your remaining balance.
    - `credits_consumed` integer, required: Credits charged for this request.
    - `credits_remaining` integer, required: Credits remaining for your organization.
  - `request_id` string, uuid, required: Unique ID of this request, also in `X-Request-Id`. Include it when contacting support.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: API key permissions or organization settings do not allow this request.
- `429`: Rate limit exceeded. Organization concurrency rejections include structured error_data and subscription settings; follow Retry-After before retrying.

## Changes

- **2026-10-21** `61627728926b`: 3 warning
  - added the new `NO_PUBLISHED_MARKDOWN` enum value to the `error_code` response property for the response status `400`
  - added the new `NO_PUBLISHED_MARKDOWN` enum value to the `error_code` response property for the response status `401`
  - added the new `NO_PUBLISHED_MARKDOWN` enum value to the `error_code` response property for the response status `403`
- **2026-10-19** `4ddcf49b9fe5`: 4 info
  - added the optional property `error_data` to the response with the `400` status
  - added the optional property `error_data` to the response with the `401` status
  - added the optional property `error_data` to the response with the `403` status
  - added the optional property `error_data` to the response with the `429` status
- **2026-10-16** `2125f3e94e52`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/context/apis/brand-api/changes/monitors/credit-usage/get.md)

---

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