Search Request Logs
Search logged requests using structured filters, free-text search, sorting, and pagination. This endpoint is useful for analytics, debugging, data export, and custom dashboards.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
Behavior Notes
- This endpoint is rate limited to 10 requests per minute.
- Results are capped at 25 items per page.
- Use
filter_groupfor structured filters andqfor fuzzy prefix search across prompt input and LLM output text. - Search indexing, nested fields, and operator behavior are explained in Search Data Model.
Related
Authorizations
Body
Search and filter request logs with structured filters, free-text search, sorting, and pagination. Extends RequestLogQuery with pagination and include_prompt_name.
Nested filter group with AND/OR logic. Use this for complex queries.
Free-text search query. Searches across the prompt input and LLM output text using fuzzy prefix matching.
Field to sort results by. Does not affect aggregated output for /requests/analytics.
request_start_time, input_tokens, output_tokens, cost, latency_ms, status Sort direction. Must be provided together with sort_by.
asc, desc Page number for pagination. Defaults to 1.
x >= 1Number of results per page. Defaults to 10, maximum 25.
1 <= x <= 25When true, includes the prompt template name in each result item. Defaults to false.
Response
Paginated list of matching request logs.
Paginated search results.
Indicates the request was successful.
List of matching request log summaries.
Current page number.
Total number of pages.
Number of results per page.
Total number of matching results.
Whether there are more pages after the current one.
Whether there are pages before the current one.
Next page number, or null if on the last page.
Previous page number, or null if on the first page.

