Billing
Get spend summary
Changed onReturns a spend summary over a configurable lookback period.
get/billing/summary
Request
- Base URL: https://app.sendmux.ai/api/v1
- URL: https://app.sendmux.ai/api/v1/billing/summary
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.sendmux.ai/oauth/authorize, token URL https://app.sendmux.ai/oauth/token, scopes: billing.read)
Query parameters
days'7' | '30' | '90'
Lookback period in days (default: 30)
Response
Spend summary
Example response
{
"meta": {
"request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"data": {
"period_days": 30,
"total_consumed": "54.770000",
"total_purchased": "150.000000",
"transaction_count": 23
}
}Changes
- info
the endpoint scheme security
oauth2was added to the API
- info