Usage
Read account usage, inspect requests and export their records.
Account activity#
curl 'https://platform.tongai.io/v1/usage' \ -H "Authorization: Bearer $TONG_API_KEY"Configuration
curl --versionUsage is grouped by the date each operation started. Settlement can update earlier periods.
Consumed credits and wallet debits are separate. Text Chat can use a previously funded balance.
Successful requests#
curl 'https://platform.tongai.io/v1/requests?activity=creative&outcome=success' \ -H "Authorization: Bearer $TONG_API_KEY"Configuration
curl --versionAn accepted request is not a finished generation. Track the saved job until its output is ready.
Download logs#
POST /v1/requests/exportsGET /v1/requests/exports/{export_id}Request metadata excludes prompts, file contents and secrets.
Request details are retained for 30 days. Active work and billing evidence remain available. Exports expire after one hour; original purchase identities remain reserved.