Query your daily usage activity — requests, tokens, and DA spend per model.
Pull your account's usage activity — one row per day, model, and provider endpoint, with request counts, token totals, and DA spend.
GET https://opendunes.com/v1/activityAuthenticate with a management key: Authorization: Bearer $OPENDUNES_MANAGEMENT_KEY. An API key gets a 401. Returns the last 30 days by default.
| Parameter | Type | Description |
|---|---|---|
date | string | Limit to a single day (YYYY-MM-DD) |
curl "https://opendunes.com/v1/activity?date=2026-07-02" \
-H "Authorization: Bearer $OPENDUNES_MANAGEMENT_KEY"{
"data": [
{
"date": "2026-07-02",
"model": "cohere/north-mini-code",
"model_permaslug": "cohere/north-mini-code",
"endpoint_id": "a223cc6b-19a9-48ac-a297-3210a86073e5",
"provider_name": "cohere",
"prompt_tokens": 9,
"completion_tokens": 48,
"requests": 3,
"usage": 0.000003
}
]
}| Field | Type | Description |
|---|---|---|
date | string | Day of the activity (YYYY-MM-DD) |
model | string | Model slug |
model_permaslug | string | Permanent model slug |
endpoint_id | string | Provider endpoint identifier |
provider_name | string | The lab serving the model |
prompt_tokens | integer | Input tokens for the day |
completion_tokens | integer | Output tokens for the day |
requests | integer | Request count for the day |
usage | number | DA spent for the day on this model |