Skip to main content
GET
/
api
/
v1
/
billing
/
spending
Get spending summary for a date range
curl --request GET \
  --url https://dashboard.sequentum.com/api/v1/billing/spending \
  --header 'Authorization: Bearer <token>'
{
  "totalSpent": 123,
  "startDate": "2023-11-07T05:31:56Z",
  "endDate": "2023-11-07T05:31:56Z",
  "organizationId": 123,
  "currentBalance": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.sequentum.com/llms.txt

Use this file to discover all available pages before exploring further.

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