curl --request POST \
--url https://api.helicone.ai/v1/user/query \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"userIds": [
"<string>"
],
"timeFilter": {
"endTimeUnixSeconds": 123,
"startTimeUnixSeconds": 123
}
}
'{
"data": [
{
"cost": 123,
"user_id": "<string>",
"completion_tokens": 123,
"prompt_tokens": 123,
"count": 123
}
],
"error": null
}Retrieve user data based on specified user IDs and time filters
curl --request POST \
--url https://api.helicone.ai/v1/user/query \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"userIds": [
"<string>"
],
"timeFilter": {
"endTimeUnixSeconds": 123,
"startTimeUnixSeconds": 123
}
}
'{
"data": [
{
"cost": 123,
"user_id": "<string>",
"completion_tokens": 123,
"prompt_tokens": 123,
"count": 123
}
],
"error": null
}eu.api.helicone.ai instead of
api.helicone.ai.Bearer token authentication. Format: 'Bearer YOUR_API_KEY'
Ok
Was this page helpful?