curl --request POST \
--url https://api.helicone.ai/v1/request/query \
--header 'Content-Type: application/json' \
--data '
{
"filter": {},
"offset": 123,
"limit": 123,
"sort": {},
"isCached": true,
"includeInputs": true,
"isPartOfExperiment": true,
"isScored": true
}
'{
"data": [
{
"request_id": "<string>",
"request_created_at": "<string>",
"request_body": {},
"request_path": "<string>",
"request_user_id": {},
"request_properties": {},
"request_model": {},
"response_id": {},
"response_created_at": {},
"response_body": {},
"response_status": 123,
"response_model": {},
"model_override": {},
"provider": "<string>",
"delay_ms": {},
"time_to_first_token": {},
"total_tokens": {},
"prompt_tokens": {},
"completion_tokens": {},
"reasoning_tokens": {},
"cost": {},
"cache_enabled": true,
"cache_reference_id": {},
"scores": {},
"feedback_rating": {},
"properties": {}
}
],
"error": {}
}Query and filter requests with advanced filtering and pagination
curl --request POST \
--url https://api.helicone.ai/v1/request/query \
--header 'Content-Type: application/json' \
--data '
{
"filter": {},
"offset": 123,
"limit": 123,
"sort": {},
"isCached": true,
"includeInputs": true,
"isPartOfExperiment": true,
"isScored": true
}
'{
"data": [
{
"request_id": "<string>",
"request_created_at": "<string>",
"request_body": {},
"request_path": "<string>",
"request_user_id": {},
"request_properties": {},
"request_model": {},
"response_id": {},
"response_created_at": {},
"response_body": {},
"response_status": 123,
"response_model": {},
"model_override": {},
"provider": "<string>",
"delay_ms": {},
"time_to_first_token": {},
"total_tokens": {},
"prompt_tokens": {},
"completion_tokens": {},
"reasoning_tokens": {},
"cost": {},
"cache_enabled": true,
"cache_reference_id": {},
"scores": {},
"feedback_rating": {},
"properties": {}
}
],
"error": {}
}Query requests from your Helicone account with powerful filtering, sorting, and pagination capabilities. This endpoint uses Postgres as the data source.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/helicone/helicone/llms.txt
Use this file to discover all available pages before exploring further.
left, operator, and right properties, or "all" to return all requests.Supported filter tables:request_response_rmt - Main request/response tablerequest - Request-specific fieldsresponse - Response-specific fieldsfeedback - Feedback dataproperties - Custom propertiesvalues - Request valuessessions_request_response_rmt - Session data{
"request_response_rmt": {
"request_created_at": {
"gte": "2024-01-01T00:00:00Z"
}
}
}
{
"left": {
"request_response_rmt": {
"model": { "equals": "gpt-4" }
}
},
"operator": "and",
"right": {
"request_response_rmt": {
"request_created_at": {
"gte": "2024-01-01T00:00:00Z"
}
}
}
}
{
"created_at": "desc"
}
Show HeliconeRequest object
curl --request POST \
--url https://api.helicone.ai/v1/request/query \
--header 'Authorization: Bearer <HELICONE_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"filter": {
"request_response_rmt": {
"request_created_at": {
"gte": "2024-01-01T00:00:00Z"
}
}
},
"limit": 100,
"offset": 0,
"sort": {
"created_at": "desc"
}
}'
curl --request POST \
--url https://api.helicone.ai/v1/request/query \
--header 'Authorization: Bearer <HELICONE_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"filter": {
"request_response_rmt": {
"model": {
"equals": "gpt-4"
}
}
},
"limit": 50
}'
curl --request POST \
--url https://api.helicone.ai/v1/request/query \
--header 'Authorization: Bearer <HELICONE_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"filter": {
"request_response_rmt": {
"properties": {
"Environment": {
"equals": "production"
}
}
}
},
"limit": 100
}'
curl --request POST \
--url https://api.helicone.ai/v1/request/query \
--header 'Authorization: Bearer <HELICONE_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"filter": {
"left": {
"request_response_rmt": {
"model": {
"equals": "gpt-4"
}
}
},
"operator": "and",
"right": {
"left": {
"request_response_rmt": {
"request_created_at": {
"gte": "2024-01-01T00:00:00Z"
}
}
},
"operator": "and",
"right": {
"request_response_rmt": {
"properties": {
"Environment": {
"equals": "production"
}
}
}
}
}
},
"limit": 100,
"sort": {
"created_at": "desc"
}
}'
curl --request POST \
--url https://api.helicone.ai/v1/request/query \
--header 'Authorization: Bearer <HELICONE_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"filter": "all",
"limit": 50,
"offset": 100,
"sort": {
"created_at": "desc"
}
}'
equals - Exact matchnot-equals - Not equal tolike - Pattern match (case-sensitive)ilike - Pattern match (case-insensitive)contains - Contains substringnot-contains - Does not contain substringequals - Equal tonot-equals - Not equal togte - Greater than or equal tolte - Less than or equal togt - Greater thanlt - Less thanequals - Exact timestamp matchgte - Greater than or equal tolte - Less than or equal togt - Greater thanlt - Less thanequals - True or false