Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Python
import requests url = "https://x.kupe.in/v1/orgs/{org_id}/usage/daily" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://x.kupe.in/v1/orgs/{org_id}/usage/daily', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
curl --request GET \ --url https://x.kupe.in/v1/orgs/{org_id}/usage/daily \ --header 'Authorization: Bearer <token>'
{ "items": [ { "day": "<string>", "metric_type": "<string>", "provider_name": "<string>", "model_name": "<string>", "transport": "<string>", "total_quantity": 123, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0, "reasoning_tokens": 0, "input_audio_tokens": 0, "output_audio_tokens": 0, "cache_read_input_audio_tokens": 0, "total_tokens": 0, "currency": "<string>", "cost_minor_units": 0, "original_currency": "<string>", "original_minor_units": 123, "fx_rate": 123, "fx_date": "<string>", "cost": 0 } ], "total": 123, "limit": 123, "offset": 123 }
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Project API key (sk-kupe-...) or a Supabase user JWT.
sk-kupe-...
1 <= x <= 100
x >= 0
Display currency. APIs default to USD.
Successful Response
Show child attributes