curl --request POST \
--url https://api.helicone.ai/v1/customer/{customerId}/usage/query \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{}'
{
"id": "<string>",
"name": "<string>",
"cost": 123,
"count": 123,
"prompt_tokens": 123,
"completion_tokens": 123
}
Retrieve usage metrics for specific customers
curl --request POST \
--url https://api.helicone.ai/v1/customer/{customerId}/usage/query \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{}'
{
"id": "<string>",
"name": "<string>",
"cost": 123,
"count": 123,
"prompt_tokens": 123,
"completion_tokens": 123
}
eu.api.helicone.ai
instead of
api.helicone.ai
.Ok
The response is of type object
.
Was this page helpful?