Skip to main content

Module client

Module client 

Source
Expand description

HTTP client for the Anthropic usage API.

This module provides functions to fetch usage data from the Anthropic API. It handles authentication, headers, and error mapping.

Constants§

BETA_HEADER
Required beta header value for OAuth endpoints.
USAGE_API_URL
Anthropic OAuth usage API endpoint.

Functions§

fetch_usage_raw
Fetch raw usage data from the Anthropic API (blocking).