credits

Export a usage report as CSV

One endpoint serves every report; filters mirror the source endpoints. Streams synchronously; the ledger export reads in keyset batches.

get/credits/usage/export/

Request

  • Base URL: https://api.getoneprofile.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.getoneprofile.ai/credits/usage/export/
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Query parameters

report'balance_timeseries' | 'spend_timeseries' | 'by_table' | 'by_provider' | 'by_agent' | 'table_timeseries' | 'table_by_column' | 'table_by_run' | 'ledger' required

Which usage report a CSV export serves.

start_timestring date-time required

Range start (ISO 8601)

end_timestring date-time required

Range end (ISO 8601)

interval'hour' | 'day'
timezonestring

IANA timezone for buckets

table_idstring uuid nullable
entry_kind'grant' | 'expiry' | 'pack_purchase' | 'charge' | 'refund' | 'referral' | 'adjustment'

The kind of a credit ledger entry.

Response

The report as a CSV file.

Changes

No recorded changes to this operation across all 1 revision of this API.