Query the usage data scoped to the customer
1 min
POST
https://app.amberflo.io/customer-portal/usage
sessionTokenstring<p>A required session token used to authenticate API calls made on behalf of a customer. This token is obtained from the <code>Create a session</code> endpoint and must be included with every request to authorize access.</p>
bodyobject
200Successful response
curl --request POST \
--url 'https://app.amberflo.io/customer-portal/usage?sessionToken=string' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"meterApiName": "ApiCalls",
"timeGroupingInterval": "DAY",
"timeRange": {
"startTimeInSeconds": 1619293642
},
"groupBy": [
"customerId"
],
"take": {
"limit": 10,
"isAscending": "false"
}
}'