Agency

Export Agency Usage Report

get
/agencies/usage/export

Export credit usage data for all sub-accounts as a CSV file.

Requires Agency or Dev role. This endpoint only accepts apiKey authentication (userId is not supported).

Returns a downloadable CSV file with columns: Sub Account ID, Sub Account Email, Sub Account Name, Date, Amount, Reason, Campaign Name, Contact Name, Credit Type, Custom Keys Used, Description, AI Model.

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Query parameters
apiKeystringOptional

API key for authentication. At least one of apiKey or userId is required for protected endpoints.

Example: your_api_key
fromstring · dateOptional

Start date for the report range (YYYY-MM-DD). Defaults to 30 days ago.

Example: 2024-01-01
tostring · dateOptional

End date for the report range (YYYY-MM-DD). Defaults to today.

Example: 2024-01-31
subAccountIdstringOptional

Filter report to a specific sub-account ID. If omitted, all sub-accounts are included.

Example: uid123abc
Responses
get
/agencies/usage/export

Last updated

Was this helpful?