curl --request POST \
--url https://api.helicone.ai/v1/user/query \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"userIds": [
"<string>"
],
"timeFilter": {
"endTimeUnixSeconds": 123,
"startTimeUnixSeconds": 123
}
}'
{
"data": [
{
"cost_usd": 123,
"user_id": "<string>",
"completion_tokens": 123,
"prompt_tokens": 123,
"count": 123
}
]
}
Retrieve user data based on specified user IDs and time filters
curl --request POST \
--url https://api.helicone.ai/v1/user/query \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"userIds": [
"<string>"
],
"timeFilter": {
"endTimeUnixSeconds": 123,
"startTimeUnixSeconds": 123
}
}'
{
"data": [
{
"cost_usd": 123,
"user_id": "<string>",
"completion_tokens": 123,
"prompt_tokens": 123,
"count": 123
}
]
}
eu.api.helicone.ai
instead of
api.helicone.ai
.Ok
The response is of type object
.
Was this page helpful?