Agency
Authorizations
apiKeystringRequired
Your DM Champ API key. Obtain from Settings → API Keys.
Query parameters
apiKeystringOptionalExample:
API key for authentication. At least one of apiKey or userId is required for protected endpoints.
your_api_keyfromstring · dateOptionalExample:
Start date for the report range (YYYY-MM-DD). Defaults to 30 days ago.
2024-01-01tostring · dateOptionalExample:
End date for the report range (YYYY-MM-DD). Defaults to today.
2024-01-31subAccountIdstringOptionalExample:
Filter report to a specific sub-account ID. If omitted, all sub-accounts are included.
uid123abcResponses
200
CSV usage report downloaded successfully
text/csv
400
Invalid date format or date range
application/json
401
Invalid or missing API key
application/json
403
Authenticated user is not an Agency or Dev account
application/json
500
Internal server error
application/json
get
/agencies/usage/exportLast updated
Was this helpful?

