Skip to main content
GET
Get spending summary for a date range

Authorizations

Authorization
string
header
required

API Key authorization header. Example: "Authorization: ApiKey {your-api-key}"

Authorization
string
header
required

OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"

Query Parameters

startDate
string<date-time>

Start date for the range (ISO format, defaults to start of current week)

endDate
string<date-time>

End date for the range (ISO format, defaults to now)

Response

Returns the spending summary

Response model for spending summary

totalSpent
number<double>

Total amount spent in the date range

startDate
string<date-time>

Start date of the range

endDate
string<date-time>

End date of the range

organizationId
integer<int32>

Organization ID

currentBalance
number<double>

Current available credits balance