POST
/
v1
/
user
/
query
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
    }
  ]
}

Authorizations

authorization
string
headerrequired

Body

application/json
userIds
string[]
timeFilter
object

Response

200 - application/json
data
object[]
required
error
enum<number> | null
required