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).