get_usage
Retrieve key usage and limits: remaining units, spending, validity, recent call costs, or agent job counts and rate limits. Check before bursts and after 429 errors.
Instructions
What this key has left and what it spent. With a gateway key (oda_...): unitsLeft, validUntil, status, usage today and over 30 days, and the last calls with the units each one cost (ledger). Free. With an agent grant of a direct instance: jobs by kind and status and the limits { jobsPerHour, jobsPerDay, classes }. Read it before a burst and after a 429 (the error carries retryAfterSeconds).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Agent grants only: ISO timestamp, start of the window; default 30 days back | |
| until | No | Agent grants only: ISO timestamp, end of the window |