cURL
curl --request POST \ --url https://api.tensormesh.ai/v1/admin/billing/spending/summary \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "<string>", "targetUserIds": [ "<string>" ] } '
{ "summaries": [ { "userId": "<string>", "spend24h": { "currencyCode": "<string>", "units": "<string>", "nanos": 123 }, "spend7d": { "currencyCode": "<string>", "units": "<string>", "nanos": 123 }, "spend30d": { "currencyCode": "<string>", "units": "<string>", "nanos": 123 } } ] }
Returns rolling-window spending totals.
Bearer authentication using an access token. Format: Bearer <access_token>
GetUsersSpendingSummaryRequest is the request for spending totals.
The unique ID of the operator user.
The unique IDs of the target users.
A successful response.
GetUsersSpendingSummaryResponse is the response for spending totals.
Spending totals per user.
Show child attributes