---
title: "List traces"
description: "Returns traces matching the Filters API payload, with pagination. Metadata keys beginning with `_` are reserved for platform use and omitted from span and trace read responses."
---

<a id="playground-button:docs/apis/traces/list-traces"></a>

**POST** `https://api.respan.ai/api/traces/list/`

Returns traces matching the Filters API payload, with pagination. Metadata keys beginning with `_` are reserved for platform use and omitted from span and trace read responses.

## Servers

`https://api.respan.ai`: Respan API Server

<a id="request.auth"></a>

## Authentication

<a id="request.auth.Authorization"></a>

### RespanApiKey

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer &lt;RESPAN_API_KEY&gt;. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -&gt; Providers or respan_params.credential_override in the request body, not in this authentication field.

HTTP scheme: `bearer`; format: `Respan API key`.


```http
Authorization: Bearer $RESPAN_API_KEY
```


**Or:**

### DashboardJwt

Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.

HTTP scheme: `bearer`; format: `Dashboard JWT`.


```http
Authorization: Bearer $RESPAN_DASHBOARD_JWT
```


<a id="request.query"></a>

## Query parameters


| Parameter | Type | Required | Description and constraints |
| --- | --- | --- | --- |
| <a id="request.query.page"></a>`page` | `integer` | Optional | Page number.<br />Default: `1`<br />Example: `1` |
| <a id="request.query.page_size"></a>`page_size` | `integer` | Optional | Results per page (max 1000).<br />Default: `50`<br />Maximum: `1000`<br />Example: `50` |
| <a id="request.query.sort_by"></a>`sort_by` | `string` | Optional | Field to sort by. Prefix `-` for descending. Common values include `-timestamp`, `-total_cost`, `-duration`, `-total_tokens`, and `-error_count`.<br />Default: `-timestamp`<br />Example: `"-total_cost"` |
| <a id="request.query.start_time"></a>`start_time` | `string` | Optional | Start of time range (ISO 8601). Defaults to one hour before `end_time` when omitted.<br />Format: `date-time`<br />Example: `"2025-01-01T00:00:00Z"` |
| <a id="request.query.end_time"></a>`end_time` | `string` | Optional | End of time range (ISO 8601). Defaults to now when omitted.<br />Format: `date-time`<br />Example: `"2025-01-31T23:59:59Z"` |
| <a id="request.query.environment"></a>`environment` | `string` | Optional | Filter by environment.<br />Example: `"prod"` |


<a id="request"></a>

## Request body

A request body is required.

### application/json


| Field | Type | Requirement | Description and constraints |
| --- | --- | --- | --- |
| `$` | `object` | Required body | - |
| <a id="request.body.filters"></a>`filters` | `object` | Optional | Each key is a field to filter on, and each value is a condition: `{"<field>": {"operator": "<operator>", "value": [...]}}`. A trace must match every condition. To set two conditions on one field, such as a range, pass a list of conditions.<br /><br />**Operators:** `""` (equals, the default), `not`, `in`, `not_in`, `lt`, `lte`, `gt`, `gte`, `contains`, `not_contains`, `icontains` (ignores case), `startswith`, `not_startswith`, `endswith`, `not_endswith`, `empty`, `not_empty`. Put values in a list: `""` and `in` match any of the listed values, and `not` and `not_in` match none of them. Other operators take one value; for `empty` and `not_empty`, send `[""]`.<br /><br />**Fields:**<br />- Trace: `trace_unique_id`, `name` (the workflow name), `customer_identifier`, `environment`, `organization_key_id`, `trace_group_identifier`, `session_identifier`, `root_span_unique_id`, `span_count`, `llm_call_count`, `error_count`, `total_cost`, `total_prompt_tokens`, `total_completion_tokens`, `total_request_tokens`, `duration` (seconds), and `metadata__<key>` (values are strings).<br />- Span fields, which match a trace when any of its spans matches: `span_unique_id`, `span_name`, `span_workflow_name`, `span_parent_id`, `model`, `provider_id`, `deployment_name`, `prompt_id`, `prompt_name`, `prompt_version_number`, `log_type`, `log_method`, `status`, `status_code`, `error_class`, `error_fingerprint`, `cost`, `latency`, `time_to_first_token`, `tokens_per_second`, `routing_time`, `prompt_tokens`, `completion_tokens`, `prompt_cache_hit_tokens`, `prompt_cache_creation_tokens`.<br /><br />Unsupported fields, such as `total_tokens`, return a 400 error.<br /><br />**Example:**<br /><br />```json<br />{<br />  "total_cost": {"operator": "gte", "value": [0.05]},<br />  "model": {"operator": "", "value": ["gpt-5.5"]}<br />}<br />```<br />Reference: `#/components/schemas/Filters`<br />Example: `{"customer_identifier":{"operator":"","value":["alex@acme.dev"]}}` |
| `filters.status` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.status.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.status.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.status.value[]` | `any` | Array item | - |
| `filters.status_code` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.status_code.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.status_code.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.status_code.value[]` | `any` | Array item | - |
| `filters.unique_id` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.unique_id.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.unique_id.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.unique_id.value[]` | `any` | Array item | - |
| `filters.customer_identifier` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.customer_identifier.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.customer_identifier.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.customer_identifier.value[]` | `any` | Array item | - |
| `filters.thread_identifier` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.thread_identifier.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.thread_identifier.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.thread_identifier.value[]` | `any` | Array item | - |
| `filters.custom_identifier` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.custom_identifier.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.custom_identifier.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.custom_identifier.value[]` | `any` | Array item | - |
| `filters.group_identifier` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.group_identifier.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.group_identifier.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.group_identifier.value[]` | `any` | Array item | - |
| `filters.prompt_id` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.prompt_id.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.prompt_id.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.prompt_id.value[]` | `any` | Array item | - |
| `filters.trace_unique_id` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.trace_unique_id.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.trace_unique_id.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.trace_unique_id.value[]` | `any` | Array item | - |
| `filters.span_parent_id` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.span_parent_id.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.span_parent_id.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.span_parent_id.value[]` | `any` | Array item | - |
| `filters.is_root_span` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.is_root_span.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.is_root_span.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.is_root_span.value[]` | `any` | Array item | - |
| `filters.span_workflow_name` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.span_workflow_name.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.span_workflow_name.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.span_workflow_name.value[]` | `any` | Array item | - |
| `filters.span_name` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.span_name.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.span_name.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.span_name.value[]` | `any` | Array item | - |
| `filters.model` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.model.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.model.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.model.value[]` | `any` | Array item | - |
| `filters.log_type` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.log_type.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.log_type.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.log_type.value[]` | `any` | Array item | - |
| `filters.stream` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.stream.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.stream.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.stream.value[]` | `any` | Array item | - |
| `filters.has_tool_calls` | `object` | Optional | Whether the span made tool calls.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.has_tool_calls.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.has_tool_calls.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.has_tool_calls.value[]` | `any` | Array item | - |
| `filters.cache_bit` | `object` | Optional | Whether the response was served from the Respan cache.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.cache_bit.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.cache_bit.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.cache_bit.value[]` | `any` | Array item | - |
| `filters.cache_key` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.cache_key.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.cache_key.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.cache_key.value[]` | `any` | Array item | - |
| `filters.prompt_tokens` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.prompt_tokens.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.prompt_tokens.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.prompt_tokens.value[]` | `any` | Array item | - |
| `filters.completion_tokens` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.completion_tokens.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.completion_tokens.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.completion_tokens.value[]` | `any` | Array item | - |
| `filters.total_tokens` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.total_tokens.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.total_tokens.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.total_tokens.value[]` | `any` | Array item | - |
| `filters.cost` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.cost.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.cost.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.cost.value[]` | `any` | Array item | - |
| `filters.latency` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.latency.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.latency.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.latency.value[]` | `any` | Array item | - |
| `filters.positive_feedback` | `object` | Optional | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.positive_feedback.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.positive_feedback.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.positive_feedback.value[]` | `any` | Array item | - |
| `filters.<key>` | `object` | Map value | A filter condition with an operator and value.<br />Reference: `#/components/schemas/FilterValue` |
| `filters.<key>.operator` | `string` | Optional | Comparison operator. An empty string means equals.<br />Allowed: `""`, `"not"`, `"in"`, `"not_in"`, `"lt"`, `"lte"`, `"gt"`, `"gte"`, `"contains"`, `"not_contains"`, `"icontains"`, `"startswith"`, `"not_startswith"`, `"endswith"`, `"not_endswith"`, `"empty"`, `"not_empty"`<br />Default: ``<br />Example: `"gte"` |
| `filters.<key>.value` | `array<any>` | Required in parent | Value(s) to filter by.<br />Example: `[0.01]` |
| `filters.<key>.value[]` | `any` | Array item | - |


<details class="api-schema-source">
<summary>OpenAPI request schema</summary>


````json
{
  "type": "object",
  "properties": {
    "filters": {
      "$ref": "#/components/schemas/Filters",
      "description": "Each key is a field to filter on, and each value is a condition: `{\"<field>\": {\"operator\": \"<operator>\", \"value\": [...]}}`. A trace must match every condition. To set two conditions on one field, such as a range, pass a list of conditions.\n\n**Operators:** `\"\"` (equals, the default), `not`, `in`, `not_in`, `lt`, `lte`, `gt`, `gte`, `contains`, `not_contains`, `icontains` (ignores case), `startswith`, `not_startswith`, `endswith`, `not_endswith`, `empty`, `not_empty`. Put values in a list: `\"\"` and `in` match any of the listed values, and `not` and `not_in` match none of them. Other operators take one value; for `empty` and `not_empty`, send `[\"\"]`.\n\n**Fields:**\n- Trace: `trace_unique_id`, `name` (the workflow name), `customer_identifier`, `environment`, `organization_key_id`, `trace_group_identifier`, `session_identifier`, `root_span_unique_id`, `span_count`, `llm_call_count`, `error_count`, `total_cost`, `total_prompt_tokens`, `total_completion_tokens`, `total_request_tokens`, `duration` (seconds), and `metadata__<key>` (values are strings).\n- Span fields, which match a trace when any of its spans matches: `span_unique_id`, `span_name`, `span_workflow_name`, `span_parent_id`, `model`, `provider_id`, `deployment_name`, `prompt_id`, `prompt_name`, `prompt_version_number`, `log_type`, `log_method`, `status`, `status_code`, `error_class`, `error_fingerprint`, `cost`, `latency`, `time_to_first_token`, `tokens_per_second`, `routing_time`, `prompt_tokens`, `completion_tokens`, `prompt_cache_hit_tokens`, `prompt_cache_creation_tokens`.\n\nUnsupported fields, such as `total_tokens`, return a 400 error.\n\n**Example:**\n\n```json\n{\n  \"total_cost\": {\"operator\": \"gte\", \"value\": [0.05]},\n  \"model\": {\"operator\": \"\", \"value\": [\"gpt-5.5\"]}\n}\n```"
    }
  }
}
````

</details>

<a id="response"></a>

## Responses

### 200

Paginated list of traces.

#### application/json


| Field | Type | Requirement | Description and constraints |
| --- | --- | --- | --- |
| `$` | `object` | Body | - |
| <a id="response.body.count"></a>`count` | `integer` | Required in parent | Number of results on this page, not the total. Request pages until `next` is null to get every result. |
| <a id="response.body.next"></a>`next` | `string or null` | Optional | URL for the next page of results. |
| <a id="response.body.previous"></a>`previous` | `string or null` | Optional | URL for the previous page of results. |
| <a id="response.body.results"></a>`results` | `array<object>` | Required in parent | Current page of traces. |
| `results[]` | `object` | Array item | - |
| `results[].id` | `string` | Optional | Trace identifier. |
| `results[].trace_unique_id` | `string` | Optional | Unique trace identifier. |
| `results[].root_span_unique_id` | `string` | Optional | Root span ID for the trace. |
| `results[].unique_organization_id` | `string` | Optional | Organization unique ID. |
| `results[].organization_id` | `string` | Optional | Alias of `unique_organization_id`. |
| `results[].organization_name` | `string` | Optional | Organization name when available. |
| `results[].organization_key_id` | `string` | Optional | API key identifier used to create the trace. |
| `results[].environment` | `string` | Optional | Environment for the trace. |
| `results[].customer_identifier` | `string` | Optional | Customer or user identifier. |
| `results[].start_time` | `string` | Optional | When the trace started.<br />Format: `date-time` |
| `results[].end_time` | `string` | Optional | When the trace ended.<br />Format: `date-time` |
| `results[].duration` | `number` | Optional | Total duration in seconds. |
| `results[].span_count` | `integer` | Optional | Total spans in the trace. |
| `results[].llm_call_count` | `integer` | Optional | Number of LLM-call spans. |
| `results[].total_cost` | `number` | Optional | Total cost in USD. |
| `results[].total_prompt_tokens` | `integer` | Optional | Sum of prompt tokens. |
| `results[].total_completion_tokens` | `integer` | Optional | Sum of completion tokens. |
| `results[].total_tokens` | `integer` | Optional | Sum of all tokens. |
| `results[].error_count` | `integer` | Optional | Number of error spans. |
| `results[].name` | `string` | Optional | Root span name. |
| `results[].input` | `string` | Optional | Root span input. API key responses may include full storage-enriched content. |
| `results[].output` | `string` | Optional | Root span output. API key responses may include full storage-enriched content. |
| `results[].metadata` | `object` | Optional | Customer metadata. Keys beginning with `_` are reserved and omitted from customer-facing responses. |
| `results[].trace_group_identifier` | `string` | Optional | Workflow or trace-group identifier. |
| `results[].session_identifier` | `string` | Optional | Session identifier when present. |
| `results[].model` | `string` | Optional | Primary/root model used. |
| `results[].storage_object_key` | `string` | Optional | Storage object key for the root span payload when present. |


<details class="api-schema-source">
<summary>OpenAPI response schema</summary>


```json
{
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "description": "Number of results on this page, not the total. Request pages until `next` is null to get every result."
    },
    "next": {
      "type": "string",
      "nullable": true,
      "description": "URL for the next page of results."
    },
    "previous": {
      "type": "string",
      "nullable": true,
      "description": "URL for the previous page of results."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Trace identifier."
          },
          "trace_unique_id": {
            "type": "string",
            "description": "Unique trace identifier."
          },
          "root_span_unique_id": {
            "type": "string",
            "description": "Root span ID for the trace."
          },
          "unique_organization_id": {
            "type": "string",
            "description": "Organization unique ID."
          },
          "organization_id": {
            "type": "string",
            "description": "Alias of `unique_organization_id`."
          },
          "organization_name": {
            "type": "string",
            "description": "Organization name when available."
          },
          "organization_key_id": {
            "type": "string",
            "description": "API key identifier used to create the trace."
          },
          "environment": {
            "type": "string",
            "description": "Environment for the trace."
          },
          "customer_identifier": {
            "type": "string",
            "description": "Customer or user identifier."
          },
          "start_time": {
            "type": "string",
            "format": "date-time",
            "description": "When the trace started."
          },
          "end_time": {
            "type": "string",
            "format": "date-time",
            "description": "When the trace ended."
          },
          "duration": {
            "type": "number",
            "description": "Total duration in seconds."
          },
          "span_count": {
            "type": "integer",
            "description": "Total spans in the trace."
          },
          "llm_call_count": {
            "type": "integer",
            "description": "Number of LLM-call spans."
          },
          "total_cost": {
            "type": "number",
            "description": "Total cost in USD."
          },
          "total_prompt_tokens": {
            "type": "integer",
            "description": "Sum of prompt tokens."
          },
          "total_completion_tokens": {
            "type": "integer",
            "description": "Sum of completion tokens."
          },
          "total_tokens": {
            "type": "integer",
            "description": "Sum of all tokens."
          },
          "error_count": {
            "type": "integer",
            "description": "Number of error spans."
          },
          "name": {
            "type": "string",
            "description": "Root span name."
          },
          "input": {
            "type": "string",
            "description": "Root span input. API key responses may include full storage-enriched content."
          },
          "output": {
            "type": "string",
            "description": "Root span output. API key responses may include full storage-enriched content."
          },
          "metadata": {
            "type": "object",
            "description": "Customer metadata. Keys beginning with `_` are reserved and omitted from customer-facing responses."
          },
          "trace_group_identifier": {
            "type": "string",
            "description": "Workflow or trace-group identifier."
          },
          "session_identifier": {
            "type": "string",
            "description": "Session identifier when present."
          },
          "model": {
            "type": "string",
            "description": "Primary/root model used."
          },
          "storage_object_key": {
            "type": "string",
            "description": "Storage object key for the root span payload when present."
          }
        }
      },
      "description": "Current page of traces."
    }
  },
  "required": [
    "count",
    "results"
  ]
}
```

</details>

##### Example


```json
{
  "count": 150,
  "next": "https://api.respan.ai/api/traces/list/?page=2",
  "previous": null,
  "results": [
    {
      "id": "trace_abc123",
      "trace_unique_id": "trace_abc123",
      "root_span_unique_id": "span_root_123",
      "organization_id": "org_xyz789",
      "environment": "prod",
      "customer_identifier": "user@example.com",
      "start_time": "2024-01-15T10:30:00Z",
      "end_time": "2024-01-15T10:30:02.500000Z",
      "duration": 2.5,
      "span_count": 5,
      "llm_call_count": 2,
      "total_cost": 0.00345,
      "total_prompt_tokens": 150,
      "total_completion_tokens": 75,
      "total_tokens": 225,
      "error_count": 0,
      "name": "chat_completion",
      "input": "[{\"role\": \"user\", \"content\": \"Explain quantum computing\"}]",
      "output": "{\"role\": \"assistant\", \"content\": \"Quantum computing is...\"}",
      "metadata": {
        "user_id": "user123"
      },
      "trace_group_identifier": "workflow_v1",
      "session_identifier": "session456",
      "model": "gpt-4"
    }
  ]
}
```


<a id="response.error"></a>

### 400

Bad Request

#### application/json


| Field | Type | Requirement | Description and constraints |
| --- | --- | --- | --- |
| `$` | `object` | Body | - |
| `error` | `string` | Optional | Example: `"Invalid request body"` |


<details class="api-schema-source">
<summary>OpenAPI response schema</summary>


```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "example": "Invalid request body"
    }
  }
}
```

</details>

### 403

The API key is missing, invalid or expired.

#### application/json


| Field | Type | Requirement | Description and constraints |
| --- | --- | --- | --- |
| `$` | `object` | Body | - |
| `detail` | `string` | Required in parent | - |


<details class="api-schema-source">
<summary>OpenAPI response schema</summary>


```json
{
  "type": "object",
  "required": [
    "detail"
  ],
  "properties": {
    "detail": {
      "type": "string"
    }
  }
}
```

</details>

##### Example


```json
{
  "detail": "Your API key is invalid or expired, please check your API key in the platform settings."
}
```


### 413

The query exceeded the service's memory or execution-time limit. Narrow the time range or add filters before retrying.

#### application/json


| Field | Type | Requirement | Description and constraints |
| --- | --- | --- | --- |
| `$` | `object` | Body | - |
| `detail` | `string` | Required in parent | - |


<details class="api-schema-source">
<summary>OpenAPI response schema</summary>


```json
{
  "type": "object",
  "required": [
    "detail"
  ],
  "properties": {
    "detail": {
      "type": "string"
    }
  }
}
```

</details>

##### Example


```json
{
  "detail": "This query is too large to run — it exceeded a per-query resource limit. Narrow the time range or add filters, then try again."
}
```


### 429

Rate Limited

#### application/json


| Field | Type | Requirement | Description and constraints |
| --- | --- | --- | --- |
| `$` | `object` | Body | - |
| `error` | `string` | Optional | Example: `"Rate limit exceeded"` |


<details class="api-schema-source">
<summary>OpenAPI response schema</summary>


```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "example": "Rate limit exceeded"
    }
  }
}
```

</details>

### 500

Internal Server Error

#### application/json


| Field | Type | Requirement | Description and constraints |
| --- | --- | --- | --- |
| `$` | `object` | Body | - |
| `error` | `string` | Optional | Example: `"Internal server error"` |


<details class="api-schema-source">
<summary>OpenAPI response schema</summary>


```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "example": "Internal server error"
    }
  }
}
```

</details>

## OpenAPI source

The operation and referenced components below retain the complete OpenAPI definitions, including constraints and examples.

<!-- openapi-operation:start -->
<details class="api-schema-source">
<summary>OpenAPI operation</summary>


````json
{
  "summary": "List traces",
  "operationId": "listTraces",
  "tags": [
    "Traces"
  ],
  "description": "Returns traces matching the Filters API payload, with pagination. Metadata keys beginning with `_` are reserved for platform use and omitted from span and trace read responses.",
  "parameters": [
    {
      "name": "page",
      "in": "query",
      "schema": {
        "type": "integer",
        "default": 1
      },
      "description": "Page number.",
      "example": 1
    },
    {
      "name": "page_size",
      "in": "query",
      "schema": {
        "type": "integer",
        "default": 50,
        "maximum": 1000
      },
      "description": "Results per page (max 1000).",
      "example": 50
    },
    {
      "name": "sort_by",
      "in": "query",
      "schema": {
        "type": "string",
        "default": "-timestamp"
      },
      "description": "Field to sort by. Prefix `-` for descending. Common values include `-timestamp`, `-total_cost`, `-duration`, `-total_tokens`, and `-error_count`.",
      "example": "-total_cost"
    },
    {
      "name": "start_time",
      "in": "query",
      "schema": {
        "type": "string",
        "format": "date-time"
      },
      "description": "Start of time range (ISO 8601). Defaults to one hour before `end_time` when omitted.",
      "example": "2025-01-01T00:00:00Z"
    },
    {
      "name": "end_time",
      "in": "query",
      "schema": {
        "type": "string",
        "format": "date-time"
      },
      "description": "End of time range (ISO 8601). Defaults to now when omitted.",
      "example": "2025-01-31T23:59:59Z"
    },
    {
      "name": "environment",
      "in": "query",
      "schema": {
        "type": "string"
      },
      "description": "Filter by environment.",
      "example": "prod"
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "filters": {
              "$ref": "#/components/schemas/Filters",
              "description": "Each key is a field to filter on, and each value is a condition: `{\"<field>\": {\"operator\": \"<operator>\", \"value\": [...]}}`. A trace must match every condition. To set two conditions on one field, such as a range, pass a list of conditions.\n\n**Operators:** `\"\"` (equals, the default), `not`, `in`, `not_in`, `lt`, `lte`, `gt`, `gte`, `contains`, `not_contains`, `icontains` (ignores case), `startswith`, `not_startswith`, `endswith`, `not_endswith`, `empty`, `not_empty`. Put values in a list: `\"\"` and `in` match any of the listed values, and `not` and `not_in` match none of them. Other operators take one value; for `empty` and `not_empty`, send `[\"\"]`.\n\n**Fields:**\n- Trace: `trace_unique_id`, `name` (the workflow name), `customer_identifier`, `environment`, `organization_key_id`, `trace_group_identifier`, `session_identifier`, `root_span_unique_id`, `span_count`, `llm_call_count`, `error_count`, `total_cost`, `total_prompt_tokens`, `total_completion_tokens`, `total_request_tokens`, `duration` (seconds), and `metadata__<key>` (values are strings).\n- Span fields, which match a trace when any of its spans matches: `span_unique_id`, `span_name`, `span_workflow_name`, `span_parent_id`, `model`, `provider_id`, `deployment_name`, `prompt_id`, `prompt_name`, `prompt_version_number`, `log_type`, `log_method`, `status`, `status_code`, `error_class`, `error_fingerprint`, `cost`, `latency`, `time_to_first_token`, `tokens_per_second`, `routing_time`, `prompt_tokens`, `completion_tokens`, `prompt_cache_hit_tokens`, `prompt_cache_creation_tokens`.\n\nUnsupported fields, such as `total_tokens`, return a 400 error.\n\n**Example:**\n\n```json\n{\n  \"total_cost\": {\"operator\": \"gte\", \"value\": [0.05]},\n  \"model\": {\"operator\": \"\", \"value\": [\"gpt-5.5\"]}\n}\n```"
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Paginated list of traces.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of results on this page, not the total. Request pages until `next` is null to get every result."
              },
              "next": {
                "type": "string",
                "nullable": true,
                "description": "URL for the next page of results."
              },
              "previous": {
                "type": "string",
                "nullable": true,
                "description": "URL for the previous page of results."
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Trace identifier."
                    },
                    "trace_unique_id": {
                      "type": "string",
                      "description": "Unique trace identifier."
                    },
                    "root_span_unique_id": {
                      "type": "string",
                      "description": "Root span ID for the trace."
                    },
                    "unique_organization_id": {
                      "type": "string",
                      "description": "Organization unique ID."
                    },
                    "organization_id": {
                      "type": "string",
                      "description": "Alias of `unique_organization_id`."
                    },
                    "organization_name": {
                      "type": "string",
                      "description": "Organization name when available."
                    },
                    "organization_key_id": {
                      "type": "string",
                      "description": "API key identifier used to create the trace."
                    },
                    "environment": {
                      "type": "string",
                      "description": "Environment for the trace."
                    },
                    "customer_identifier": {
                      "type": "string",
                      "description": "Customer or user identifier."
                    },
                    "start_time": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the trace started."
                    },
                    "end_time": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the trace ended."
                    },
                    "duration": {
                      "type": "number",
                      "description": "Total duration in seconds."
                    },
                    "span_count": {
                      "type": "integer",
                      "description": "Total spans in the trace."
                    },
                    "llm_call_count": {
                      "type": "integer",
                      "description": "Number of LLM-call spans."
                    },
                    "total_cost": {
                      "type": "number",
                      "description": "Total cost in USD."
                    },
                    "total_prompt_tokens": {
                      "type": "integer",
                      "description": "Sum of prompt tokens."
                    },
                    "total_completion_tokens": {
                      "type": "integer",
                      "description": "Sum of completion tokens."
                    },
                    "total_tokens": {
                      "type": "integer",
                      "description": "Sum of all tokens."
                    },
                    "error_count": {
                      "type": "integer",
                      "description": "Number of error spans."
                    },
                    "name": {
                      "type": "string",
                      "description": "Root span name."
                    },
                    "input": {
                      "type": "string",
                      "description": "Root span input. API key responses may include full storage-enriched content."
                    },
                    "output": {
                      "type": "string",
                      "description": "Root span output. API key responses may include full storage-enriched content."
                    },
                    "metadata": {
                      "type": "object",
                      "description": "Customer metadata. Keys beginning with `_` are reserved and omitted from customer-facing responses."
                    },
                    "trace_group_identifier": {
                      "type": "string",
                      "description": "Workflow or trace-group identifier."
                    },
                    "session_identifier": {
                      "type": "string",
                      "description": "Session identifier when present."
                    },
                    "model": {
                      "type": "string",
                      "description": "Primary/root model used."
                    },
                    "storage_object_key": {
                      "type": "string",
                      "description": "Storage object key for the root span payload when present."
                    }
                  }
                },
                "description": "Current page of traces."
              }
            },
            "required": [
              "count",
              "results"
            ]
          },
          "example": {
            "count": 150,
            "next": "https://api.respan.ai/api/traces/list/?page=2",
            "previous": null,
            "results": [
              {
                "id": "trace_abc123",
                "trace_unique_id": "trace_abc123",
                "root_span_unique_id": "span_root_123",
                "organization_id": "org_xyz789",
                "environment": "prod",
                "customer_identifier": "user@example.com",
                "start_time": "2024-01-15T10:30:00Z",
                "end_time": "2024-01-15T10:30:02.500000Z",
                "duration": 2.5,
                "span_count": 5,
                "llm_call_count": 2,
                "total_cost": 0.00345,
                "total_prompt_tokens": 150,
                "total_completion_tokens": 75,
                "total_tokens": 225,
                "error_count": 0,
                "name": "chat_completion",
                "input": "[{\"role\": \"user\", \"content\": \"Explain quantum computing\"}]",
                "output": "{\"role\": \"assistant\", \"content\": \"Quantum computing is...\"}",
                "metadata": {
                  "user_id": "user123"
                },
                "trace_group_identifier": "workflow_v1",
                "session_identifier": "session456",
                "model": "gpt-4"
              }
            ]
          }
        }
      }
    },
    "400": {
      "description": "Bad Request",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "example": "Invalid request body"
              }
            }
          }
        }
      }
    },
    "403": {
      "$ref": "#/components/responses/InvalidApiKey"
    },
    "413": {
      "description": "The query exceeded the service's memory or execution-time limit. Narrow the time range or add filters before retrying.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "detail"
            ],
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          },
          "example": {
            "detail": "This query is too large to run — it exceeded a per-query resource limit. Narrow the time range or add filters, then try again."
          }
        }
      }
    },
    "429": {
      "description": "Rate Limited",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "example": "Rate limit exceeded"
              }
            }
          }
        }
      }
    },
    "500": {
      "description": "Internal Server Error",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "example": "Internal server error"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "RespanApiKey": []
    },
    {
      "DashboardJwt": []
    }
  ]
}
````

</details>
<!-- openapi-operation:end -->

<!-- openapi-path-item:start -->
<details class="api-schema-source">
<summary>OpenAPI path metadata</summary>


```json
{}
```

</details>
<!-- openapi-path-item:end -->

<!-- openapi-components:start -->
<details class="api-schema-source">
<summary>Referenced OpenAPI components</summary>


```json
{
  "responses": {
    "InvalidApiKey": {
      "description": "The API key is missing, invalid or expired.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "detail"
            ],
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          },
          "example": {
            "detail": "Your API key is invalid or expired, please check your API key in the platform settings."
          }
        }
      }
    }
  },
  "schemas": {
    "FilterValue": {
      "type": "object",
      "description": "A filter condition with an operator and value.",
      "required": [
        "value"
      ],
      "properties": {
        "operator": {
          "type": "string",
          "description": "Comparison operator. An empty string means equals.",
          "enum": [
            "",
            "not",
            "in",
            "not_in",
            "lt",
            "lte",
            "gt",
            "gte",
            "contains",
            "not_contains",
            "icontains",
            "startswith",
            "not_startswith",
            "endswith",
            "not_endswith",
            "empty",
            "not_empty"
          ],
          "default": "",
          "example": "gte"
        },
        "value": {
          "type": "array",
          "description": "Value(s) to filter by.",
          "items": {},
          "example": [
            0.01
          ]
        }
      }
    },
    "Filters": {
      "type": "object",
      "description": "Each key is a field to filter on, and each value is a condition: `{\"<field>\": {\"operator\": \"<operator>\", \"value\": [...]}}`. A result must match every condition. To set two conditions on one field, such as a range, pass a list of conditions.\n\n**Operators:** `\"\"` (equals, the default), `not`, `in`, `not_in`, `lt`, `lte`, `gt`, `gte`, `contains`, `not_contains`, `icontains` (ignores case), `startswith`, `not_startswith`, `endswith`, `not_endswith`, `empty`, `not_empty`. Put values in a list: `\"\"` and `in` match any of the listed values, and `not` and `not_in` match none of them. Other operators take one value; for `empty` and `not_empty`, send `[\"\"]`.\n\nThe fields you can filter on depend on the endpoint; `metadata__<key>` filters custom metadata where the endpoint supports it.",
      "properties": {
        "status": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "status_code": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "unique_id": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "customer_identifier": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "thread_identifier": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "custom_identifier": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "group_identifier": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "prompt_id": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "trace_unique_id": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "span_parent_id": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "is_root_span": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "span_workflow_name": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "span_name": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "model": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "log_type": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "stream": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "has_tool_calls": {
          "$ref": "#/components/schemas/FilterValue",
          "description": "Whether the span made tool calls."
        },
        "cache_bit": {
          "$ref": "#/components/schemas/FilterValue",
          "description": "Whether the response was served from the Respan cache."
        },
        "cache_key": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "prompt_tokens": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "completion_tokens": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "total_tokens": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "cost": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "latency": {
          "$ref": "#/components/schemas/FilterValue"
        },
        "positive_feedback": {
          "$ref": "#/components/schemas/FilterValue"
        }
      },
      "example": {
        "customer_identifier": {
          "operator": "",
          "value": [
            "alex@acme.dev"
          ]
        }
      },
      "additionalProperties": {
        "$ref": "#/components/schemas/FilterValue"
      }
    }
  },
  "securitySchemes": {
    "DashboardJwt": {
      "type": "http",
      "scheme": "bearer",
      "bearerFormat": "Dashboard JWT",
      "description": "Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.",
      "x-fern-bearer": {
        "name": "dashboardJwt",
        "env": "RESPAN_DASHBOARD_JWT"
      }
    },
    "RespanApiKey": {
      "type": "http",
      "scheme": "bearer",
      "bearerFormat": "Respan API key",
      "description": "Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.",
      "x-fern-bearer": {
        "name": "respanApiKey",
        "env": "RESPAN_API_KEY"
      }
    }
  }
}
```

</details>
<!-- openapi-components:end -->
