Skip to main content
Use Search endpoints to build complex queries and retrieve your data via API. The operators below can be used to build filters that help you find relevant sessions, traces, and completions based on cost, latency, metadata, online evaluation results, human labels or notes, and more. This guide supplements the Search API endpoints from the OpenAPI specification. While the spec defines the endpoint structure and request/response schemas, this page provides detailed documentation on all available filter operators and how to construct complex queries.

Endpoints

All endpoints support pagination via page and page_size query parameters.

Filter Operators

Available Filters

The table below lists all available filter fields, their supported operators, and example values. Fields ending in .* support filtering on nested JSON properties.

Compound Filters

Combine multiple filters using logical operators (and, or, not) to build complex queries. These operators can be nested to any depth.

Using and

All conditions must be true:

Using or

At least one condition must be true:

Using not

Negates a condition:

Combined Example

Find expensive completions using either GPT-4o or Claude 3 Opus, excluding production: