Download a CSV of all your API activity via the analytics export endpoint for billing reconciliation and auditing.
The activity export endpoint gives you a full, machine-readable record of every request made under your account — model used, token counts, DA cost, timestamp, and request ID. Use it for billing reconciliation, cost attribution, compliance audits, or feeding into your own analytics stack.
Session-authenticated (requires a valid browser session cookie). This is a dashboard endpoint, not an inference endpoint — it does not accept an Authorization: Bearer API key, and it is not prefixed with /v1.
Exports are downloaded from the dashboard: go to Dashboard → Analytics → Export, pick your date range and any filters, and download the CSV. The file streams directly; for large date ranges the download may take a few seconds.
For a programmatic view with your API key, use the activity API instead — see Programmatic alternative below.
| Parameter | Type | Description |
|---|---|---|
from | ISO date | Start of the export window (inclusive) |
to | ISO date | End of the export window (inclusive) |
format | string | csv (default) or json |
key_id | string | Filter to a specific API key ID |
model | string | Filter to a specific model slug |
| Column | Description |
|---|---|
date | Request timestamp (UTC) |
model | Model slug used |
input_tokens | Input tokens billed |
output_tokens | Output tokens billed |
total_cost | Exact charge in micro-DA (1 DA = 1,000,000 micro-DA) |
latency_ms | End-to-end latency in milliseconds |
status | Request outcome (success or an error state) |
Once you have downloaded the CSV from the dashboard, process it locally:
If you need usage data over the API rather than a dashboard download, GET /v1/activity is key-authed with your regular sk- key and returns the last 30 days as daily rollups — one row per day × model, with date, model, model_permaslug, endpoint_id, provider_name, prompt_tokens, completion_tokens, requests, and usage (DA spent). Pass ?date=YYYY-MM-DD to narrow to a single day.
The activity API is daily rollups only; request-level rows come from the CSV export above. See Control Costs with the Analytics API for full examples.
The summed total_cost in the export for a given period should match the debits shown in your balance history on your dashboard exactly — costs are integer micro-DA, so there is no rounding drift. If they differ, file a support request with the export file and the date range.
Every API response carries an X-Request-Id header (UUID-v7). If you log it on your side, you can join your application logs to the export rows by timestamp and model for a complete audit trail.
For applications subject to Algeria's Law 18-07, the export provides the token-level usage records required for data processing accountability documentation.
To automate monthly exports, run a script on a cron schedule: