Monitors

Retrieve monitor credit usage

Changed on

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

get/monitors/credit-usage

Request

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

Query parameters

sincestring date-time

Only include items at or after this ISO 8601 timestamp.

Example:2026-06-01T00:00:00Z
untilstring date-time

Only include items before this ISO 8601 timestamp.

Example:2026-06-28T00:00:00Z

Response

Per-monitor credit usage

total_creditsinteger required

Sum of credits across all monitors in the window.

request_idstring uuid required

Unique ID of this request, also in X-Request-Id. Include it when contacting support.

Example response

{
  "data": [
    {
      "monitor_id": "mon_123"
    }
  ],
  "request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"
}

Changes

    • warning

      added the new NO_PUBLISHED_MARKDOWN enum value to the response property for the response status

    • warning

      added the new NO_PUBLISHED_MARKDOWN enum value to the response property for the response status

    • warning

      added the new NO_PUBLISHED_MARKDOWN enum value to the response property for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status