cURL
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 } ] }
Retrieve user data based on specified user IDs and time filters
eu.api.helicone.ai
api.helicone.ai
Bearer token authentication. Format: 'Bearer YOUR_API_KEY'
Show child attributes
Ok
Was this page helpful?