GET /v1/usage authenticates with Authorization: Bearer <API Key> or x-api-key; no login JWT or user_id parameter is needed. The backend derives user and project identity from the key and aggregates only that key. A shared organization key returns combined usage across callers, not per-member or organization-wide totals. The response user_id identifies the user associated with the key.
Required start and end use YYYY-MM-DD, inclusive in Beijing time (UTC+8), up to 366 calendar days. Missing, invalid or reversed dates return 400; an invalid or expired key returns 401; IP restrictions or incomplete authenticated identity return 403.