Get usage and spend insights for the authenticated user
Returns the authenticated user's remaining credit plus a spend breakdown over the requested window: total inference and integration spend, token counts, a daily time series, the top models and integrations by spend, a spend-cap bucket breakdown, and per-API-key attribution. Also returns plan info including the discount the subscription provides versus pay-as-you-go pricing.
The credit fields (remainingUsd, subscriptionGrantedUsd, subscriptionSpentUsd, subscriptionRemainingUsd, periodStart, periodEnd) always describe the current subscription period and are unaffected by range; only insights follows the requested window.
Request
- Base URL: https://api.tinyhumans.ai
- URL: https://api.tinyhumans.ai/teams/me/usage
- Auth: HTTP bearer
Query parameters
Window the insights are computed over. period (the default) uses the current subscription period (a trailing 30 days for accounts without subscription credit); the fixed ranges are anchored to now. Capped at 90 days.
Response
Spend insights and remaining credit for the current period
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.