latestOpenAPI 3.1.02026-08-08127304355.9 KB

69c553220183

Search & Analytics

Search Sessions

Query sessions using advanced filters. Use to find specific conversations or filter by metadata.

Supports pagination and optional inclusion of all traces and completions within the session, using the include_children parameter.

page_size defaults to 30, maximum 100.

For filter operators and examples, see: https://docs.freeplay.ai/openapi/search-api-operators

post/api/v2/projects/{project_id}/search/sessions

Path parameters

project_idstring required

Query parameters

pageinteger
page_sizeinteger
include_childrenboolean

Request body

Response

SessionSearchResponse(data: Union[List[server.search_api.types.SessionSearchInfo], List[server.search_api.types.SessionSearchInfoWithChildren]], pagination: server.api_routes.api_v2_common.PaginationInfo)