Skip to main content
GET
/
agency
/
billing
/
usages
List billed usages
curl --request GET \
  --url https://api.closebot.com/agency/billing/usages \
  --header 'X-CB-KEY: <api-key>'
[
  {
    "startTime": "2023-11-07T05:31:56Z",
    "endTime": "2023-11-07T05:31:56Z",
    "responses": 123,
    "libraryBytes": 123,
    "users": 123,
    "responseCost": 123,
    "libraryCost": 123,
    "userCost": 123
  }
]

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Query Parameters

startTime
string<date-time>

The start time.

endTime
string<date-time>

The end time.

Response

Success

startTime
string<date-time>
endTime
string<date-time>
responses
integer<int32>
libraryBytes
integer<int64>
users
integer<int32>
responseCost
integer<int64>
libraryCost
integer<int64>
userCost
integer<int64>