curl --request POST \
--url https://api.cloud.flexprice.io/v1/events/usage \
--header 'Content-Type: */*' \
--header 'x-api-key: <api-key>' \
--data '{
"aggregation_type": "COUNT",
"bucket_size": "MINUTE",
"customer_id": "customer456",
"end_time": "2024-03-20T00:00:00Z",
"event_name": "api_request",
"external_customer_id": "customer456",
"filters": {},
"multiplier": 123,
"property_name": "request_size",
"start_time": "2024-03-13T00:00:00Z",
"window_size": "MINUTE"
}'
{
"event_name": "<string>",
"results": [
{
"value": 123,
"window_size": "<string>"
}
],
"type": "COUNT",
"value": 123
}
Retrieve aggregated usage statistics for events
curl --request POST \
--url https://api.cloud.flexprice.io/v1/events/usage \
--header 'Content-Type: */*' \
--header 'x-api-key: <api-key>' \
--data '{
"aggregation_type": "COUNT",
"bucket_size": "MINUTE",
"customer_id": "customer456",
"end_time": "2024-03-20T00:00:00Z",
"event_name": "api_request",
"external_customer_id": "customer456",
"filters": {},
"multiplier": 123,
"property_name": "request_size",
"start_time": "2024-03-13T00:00:00Z",
"window_size": "MINUTE"
}'
{
"event_name": "<string>",
"results": [
{
"value": 123,
"window_size": "<string>"
}
],
"type": "COUNT",
"value": 123
}
Enter your API key in the format x-api-key <api-key>*
Request body
The body is of type object
.
OK
The response is of type object
.