GET and POST methods are supported for listing logs. POST is recommended when using complex filters or when URL length limits might be exceeded. The same endpoint is also available at /api/request-logs/ (without /list/).input (string): JSON-serialized representation of the span’s input dataoutput (string): JSON-serialized representation of the span’s output datalog_type (string): Type of span ("chat", "embedding", "workflow", etc.)log_type="chat", "completion", "text", or "response":prompt_messages (array): Full input messages array (extracted from input)completion_message (object): Full output message object (extracted from output)log_type. See log types for details.Example
Example
-id (same as sort by -timestamp, but with better performance).
- is for descending order, if not provided, it will be in ascending order.Properties
Example
is_test parameter will override this parameter.
Options: true, false.all_envs parameter.
Options: true, false.true, false.Example
[value]: The filter value (required)[operator]: Comparison operator (optional, defaults to "" for equality)
"" (empty): Exact match (is)"not": Not equal (is not)[connector]: Logic connector (optional, defaults to "AND")
"AND": Combine with previous filter using AND"OR": Combine with previous filter using ORmetadata__ prefix:
customer_identifier, custom_identifier, thread_identifier, prompt_id, unique_idtrace_unique_id, span_name, span_workflow_namemodel, deployment_name, provider_idstatus_code, status, error_messageenvironment, log_type, stream, temperature, max_tokenscost, latency, tokens_per_second, time_to_first_token, prompt_tokens, completion_tokens, total_request_tokensFilter by customer identifier
Filter with operator (status code not equal to 200)
Filter by custom metadata (auto-detected)
Explicit metadata filter
Multiple filters with OR logic
Mixed known and unknown fields
Example: Combined filters
customer_identifier = "user_123" (from URL)status_code = 200 (from POST body)"") and not-equal ("not") operatorsgt, gte, lt, lte, contains, etc.), use POST body filtersfetch_filters parameter.metadata__+ your custom property name. For example, if you want to filter your custom property my_custom_property, you should add metadata__my_custom_property to the filters.Example
Properties
Example