v1
latestOpenAPI 3.1.02026-07-13154170539.0 KBLogs
Query Logs Post
Query logs via POST request.
This endpoint accepts the exact same parameters as GET /logs, but via request body instead of query parameters. This is useful for:
- Large filter expressions that would exceed URL length limits
- Filter expressions containing base64-encoded images (e.g., embed_image('data:image/png;base64,...'))
- Complex sorting expressions
Example with image embedding:
{
"project_name": "my-project",
"filter_expr": "cosine(image_embedding, embed_image('data:image/png;base64,iVBORw0KG...')) < 0.3",
"limit": 10
}
post/v0/logs/query
Request body
Example request
{
"project_name": "eval-project",
"context": "training",
"column_context": "subjects/science/physics",
"filter_expr": "len(output) > 200 and temperature == 0.5",
"sorting": "{\"timestamp\": \"descending\", \"round(score, 2)\": \"ascending\"}",
"from_ids": "0&1&2",
"exclude_ids": "0&1&2",
"from_fields": "score&response",
"exclude_fields": "score&response",
"group_by": [
"model",
"temperature"
]
}Response
Successful Response
{"stackTrail":"paths:/v0/logs/query:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}