# API schemas: T

## TargetAdmission

Type: object

- `max_concurrency` (integer, required, min 1, max 1024)
- `queue_capacity` (integer, required, min 0, max 1024)
- `queue_timeout` (string) — Duration 1ms..30s; default 1s
- `fairness` (object) — With admission_fairness (T168), the waiters of a saturated queue are admitted by weighted round robin across tenants, FIFO within one; a full queue refuses the newest waiter of the tenant furthest over its share to admit a tenant under its share. The first fairness policy declared for a shared provider/model applies.
  - `by` (string, required, one of `"team"`, `"organization"`)
  - `weights` (object) — Tenant ID (team or organization) to turns per round; unlisted tenants weigh 1.
    - any other key: integer

## TargetConditionAccess

Type: object

V19 global-reader safe current model mutation capability. Intersects role/permission and feature classification, independently of operational flag. Live captured-version/body/trial checks still apply.

- `write` (boolean, required)

## TargetHealthAccess

Type: object

- `write` (boolean, required)

## TargetHealthCheck

Type: object

Explicit fixed read-only provider-relative endpoint check; primary credential/captured network. Success is metadata/auth reachability, never model inference or pool certification.

- `method` (string, one of `""`, `"GET"`, `"HEAD"`)
- `path` (string, required, min length 1, max length 2048, pattern `^(?!.*//)(?!.*(?:^|/)\.{1,2}(?:/|$))/[\x21-\x7e]*$`) — Rooted ASCII path relative to the configured BaseURL; no authority, query, fragment, ambiguous percent escape or dot segment.
- `success_statuses` (array of integer, min items 1, max items 16)

## TargetHealthParameterDefinition

Type: object

- `key` (`"models[].targets[].health_check"`, required)
- `group` (`"resilience"`, required)
- `kind` (`"target_health_check"`, required)
- `default` (`null`, required)
- `method` (`{"default":"GET","values":["GET","HEAD"]}`, required)
- `path` (`{"minimum_bytes":1,"maximum_bytes":2048}`, required)
- `success_statuses` (`{"default":[200],"minimum_items":1,"maximum_items":16,"minimum":200,"maximum":299,"duplicates":false}`, required)
- `sources` (`["yaml","console"]`, required)
- `restart_required` (`false`, required)
- `yaml_requires_restart` (`true`, required)

## TargetPromptCache

Type: object

T115, anthropic and bedrock targets only (Bedrock auto needs a Claude model ID, anthropic.claude-*), on chat, messages, responses and generate_content aliases. Automatic prompt cache points for requests translated to Anthropic Messages or Bedrock Converse. A client's own cache_control (on a content part, a message or a tool) is carried whatever the mode; auto adds points only to a request that has none, places at most four, and only where the whole prefix up to the point reaches the minimum (estimated as UTF-8 bytes / 3). Native /v1/messages passthrough is never rewritten. The upstream_attempt log names prompt_cache_points when points were added. Hot-reloaded with the model; no restart.

- `mode` (string, one of `"off"`, `"auto"`, default `"off"`)
- `ttl` (string, one of `"5m"`, `"1h"`, default `"5m"`) — Lifetime of the automatic points. A one-hour write bills at 2x the input price, a five-minute one at 1.25x; reads at 0.1x or less.
- `points` (array of string, max items 4) — Where auto places points, in prompt order: end of the tool definitions, end of the system prompt, end of the turn before the last one, end of the last turn. Empty means tools, system and history.
- `min_prefix_tokens` (integer, min 0, max 1000000) — 0 derives the model's documented minimum cacheable prefix (512 to 4,096 tokens; 4,096 for a model the table does not know).

## TargetWhen

Type: object

At most16384 canonical JSON bytes. OR within each identity/value list, AND across populated fields and tag names. No priority, expressions, wildcards or authorization grant. Absent is unconditional; empty/null is invalid. Tags are admitted routing inputs, potentially client-selected within taxonomy.

- `key_ids` (array of string, min items 1, max items 32)
- `team_ids` (array of string, min items 1, max items 32)
- `tags` (object)
  - any other key: array of string

## TargetWhenParameterDefinition

Type: object

- `key` (`"models[].targets[].when"`, required)
- `group` (`"routing"`, required)
- `kind` (`"target_when"`, required)
- `fields` (`["key_ids","team_ids","tags"]`, required)
- `id_max_items` (`32`, required)
- `id_max_bytes` (`256`, required)
- `tag_max_keys` (`8`, required)
- `tag_max_values` (`32`, required)
- `tag_token_max_bytes` (`64`, required)
- `max_bytes` (`16384`, required)
- `dimensions_operator` (`"and"`, required)
- `values_operator` (`"or"`, required)
- `default` (`null`, required)
- `sources` (`["yaml","console"]`, required)
- `restart_required` (`false`, required)
- `yaml_requires_restart` (`true`, required)

## TeamEntitlementView

Type: object

- `team_id` (string, required, pattern `^[A-Za-z0-9_-]{1,128}$`)
- `plan_id` (string, required) — Empty when source none denotes an unassigned tombstone
- `disabled` (boolean, required, default `false`)
- `version` (integer (int64), required, min 0)
- `source` (string, required, one of `"yaml"`, `"console"`, `"none"`)

## TeamInventoryItem

Type: object

- `id` (string, required)
- `name` (string, required)
- `source` (string, required, one of `"yaml"`, `"console"`)
- `version` (integer (int64), required)
- `created_at` (string (date-time), required)
- `deleted_at` (string (date-time))
- `status` (string, required, one of `"active"`, `"deleted"`)
- `policy` (object)
  - `allowed_models` (array of string, required)
  - `scopes` (array of string, required)
  - `source` (string, required, one of `"default"`, `"yaml"`, `"console"`)

## TeamPlanBinding

Type: object

- `team_id` (string, required, pattern `^[A-Za-z0-9_-]{1,128}$`)
- `plan_id` (string, required, pattern `^[a-z][a-z0-9_-]{0,63}$`)
- `disabled` (boolean, default `false`)

## TemporaryBudgetIncreaseParameterDefinition

Type: object

- `key` (`"quotas.policies[].temporary_budget_increase"`, required)
- `group` (`"quota"`, required)
- `kind` (`"temporary_budget_increase"`, required)
- `default` (`null`, required)
- `sources` (`["yaml","console"]`, required)
- `restart_required` (`false`, required)
- `yaml_requires_restart` (`true`, required)
- `amount_fractional_digits` (`6`, required)
- `maximum_effective_usd` (`"1000000"`, required)
- `expiry_format` (`"RFC3339"`, required)
- `timezone` (`"UTC"`, required)

## Topic

Type: object

A published topic

- `id` (string)
- `map_id` (string)
- `facet` (string)
- `facet_version` (integer)
- `kind` (string, one of `"cluster"`, `"label"`, `"group"`)
- `label` (string)
- `parent_id` (string)
- `name` (string)
- `description` (string)
- `name_pinned` (boolean)
- `named` (boolean) — false for a placeholder the naming model could not name
- `member_count` (integer)
- `run_id` (string)
- `version` (integer)
- `findings_muted` (boolean)
- `first_seen_at` (string (date-time))
- `updated_at` (string (date-time))
- `retired_at` (string (date-time))
- `merged_into` (string)
- `metrics` (object)
  - `topic_id` (string)
  - `units` (integer)
  - `traces` (integer)
  - `cost_usd` (string)
  - `duration_p50_us` (integer)
  - `duration_p95_us` (integer)
  - `errors` (integer)
  - `input_tokens` (integer)
  - `output_tokens` (integer)
  - `eval_passed` (integer)
  - `eval_failed` (integer)
- `previous` (object)
  - `topic_id` (string)
  - `units` (integer)
  - `traces` (integer)
  - `cost_usd` (string)
  - `duration_p50_us` (integer)
  - `duration_p95_us` (integer)
  - `errors` (integer)
  - `input_tokens` (integer)
  - `output_tokens` (integer)
  - `eval_passed` (integer)
  - `eval_failed` (integer)
- `share` (number)
- `new` (boolean)
- `pass_rate` (number)

## TopicAssignmentPage

Type: object

One page of assignments

- `assignments` (array of object)
  - `map_id` (string)
  - `facet` (string)
  - `team_id` (string)
  - `unit_id` (string)
  - `unit_type` (string)
  - `organization_id` (string)
  - `topic_id` (string)
  - `run_id` (string)
  - `distance` (number)
  - `runner_up_distance` (number)
  - `origin` (string, one of `"initial"`, `"online"`)
  - `x` (number)
  - `y` (number)
  - `unit_start` (string (date-time))
  - `assigned_at` (string (date-time))
- `next_cursor` (string)

## TopicDetail

Type: object

One topic

- `cost_shown` (boolean)
- `topic` ([Topic](/docs/api/schemas/t/#topic))
- `map` ([TopicMap](/docs/api/schemas/t/#topicmap))
- `query` (string) — The explorer term that selects the topic's units
- `trend` (array of object)
  - `day` (string (date-time))
  - `units` (integer)
- `representatives` (array of object)
  - `team_id` (string)
  - `unit_id` (string)
  - `unit_type` (string)
  - `facet` (string)
  - `state` (string, one of `"applicable"`, `"not_applicable"`, `"insufficient_input"`, `"input_too_large"`, `"content_not_captured"`, `"failed"`)
  - `label` (string)
  - `summary` (string)
  - `content_hidden` (boolean)
  - `topic_id` (string)
  - `assigned` (boolean)
  - `origin` (string)
  - `distance` (number)
  - `unit_start` (string (date-time))
- `deployments` (array of object)
  - `model` (string)
  - `provider` (string)
  - `requests` (integer)
  - `cost_usd` (string)
  - `avg_cost_usd` (string)
  - `duration_p95_us` (integer)
  - `errors` (integer)
- `parent` (object)
  - `id` (string)
  - `name` (string)
- `children` (array of object)
  - `id` (string)
  - `name` (string)
  - `member_count` (integer)

## TopicEvaluatorDraft

Type: object

An evaluator draft written from a topic

- `evaluator` (object)
  - `team_id` (string)
  - `name` (string)
  - `prompt` (string)
  - `output` (object)
- `rule_filter` (object)
  - `query` (string)
- `note` (string)

## TopicFacet

Type: object

A facet: one way of describing a unit

- `key` (string)
- `name` (string)
- `version` (integer)
- `prompt` (string) — The facet's block in the summary model's instructions
- `labels` (array of string) — A closed list of labels: units are grouped by label first
- `model_free` (boolean) — Derived from span fields alone, with no model call (Signals)
- `builtin` (boolean)
- `always` (boolean)
- `id` (string)
- `team_id` (string)
- `updated_at` (string)

## TopicFacetList

Type: object

The facets

- `facets` (array of [TopicFacet](/docs/api/schemas/t/#topicfacet))
- `custom_facets` (boolean)
- `max_per_team` (integer)

## TopicFacetWrite

Type: object

A team's own facet

- `team_id` (string, required, max length 256)
- `name` (string, required, min length 1, max length 60)
- `prompt` (string, required, min length 1, max length 4000)
- `labels` (array of string, max items 16)

## TopicFindingKinds

Type: object

The finding kinds and thresholds

- `enabled` (boolean)
- `kinds` (array of object)
  - any other key: string
- `thresholds` (object)
- `alerts` (string)

## TopicList

Type: object

The topics of a facet with their figures

- `map_id` (string)
- `facet` (string)
- `from` (string (date-time))
- `to` (string (date-time))
- `topics` (array of [Topic](/docs/api/schemas/t/#topic))
- `unassigned` (object)
  - `topic_id` (string)
  - `units` (integer)
  - `traces` (integer)
  - `cost_usd` (string)
  - `duration_p50_us` (integer)
  - `duration_p95_us` (integer)
  - `errors` (integer)
  - `input_tokens` (integer)
  - `output_tokens` (integer)
  - `eval_passed` (integer)
  - `eval_failed` (integer)
- `counts` (object)
  - `assigned` (integer)
  - `outliers` (integer)
  - `mapped` (integer)
  - `online` (integer)
- `cost_shown` (boolean)
- `min_topic_members` (integer)

## TopicMap

Type: object

A live map or a snapshot

- `id` (string)
- `scope` (string, one of `"team"`, `"organization"`)
- `organization_id` (string)
- `team_id` (string)
- `name` (string)
- `kind` (string, one of `"live"`, `"snapshot"`)
- `unit` (string, one of `"trace"`, `"session"`, `"run"`)
- `filter` (string) — A query over the fields of a trace
- `sample_rate` (number)
- `facets` (array of string)
- `window_from` (string (date-time))
- `window_to` (string (date-time))
- `small_sample` (boolean)
- `summarise_new` (integer)
- `budget_usd_per_day` (string)
- `status` (string, one of `"active"`, `"paused"`, `"paused_budget"`, `"paused_provider"`, `"complete"`, `"failed"`)
- `status_reason` (string)
- `selected_until` (string (date-time))
- `fit_requested_at` (string (date-time))
- `fit_kind` (string)
- `last_fit_at` (string (date-time))
- `last_refresh_at` (string (date-time))
- `next_refit_at` (string (date-time))
- `new_summaries` (integer)
- `created_by` (string)
- `created_at` (string (date-time))
- `updated_at` (string (date-time))
- `can_manage` (boolean)
- `units` (object)
  - `pending` (integer)
  - `done` (integer)
  - `skipped` (integer)
  - `failed` (integer)
  - `reasons` (object)
    - any other key: integer
- `assignments` (object)
  - any other key: object
    - `assigned` (integer)
    - `outliers` (integer)
    - `mapped` (integer)
    - `online` (integer)
- `spend` (object) — The map's own model calls, from the ledger; unknown is never zero
  - `state` (string)
  - `known_usd` (string)
  - `requests` (integer)
  - `unvalued_requests` (integer)
  - `by_stage` (object)
    - any other key: object

## TopicMapCreate

Type: object

A new map

- `scope` (string, one of `"team"`, `"organization"`, default `"team"`)
- `team_id` (string, max length 256)
- `organization_id` (string, max length 256)
- `name` (string, required, min length 1, max length 120)
- `kind` (string, one of `"live"`, `"snapshot"`, default `"live"`)
- `unit` (string, one of `"trace"`, `"session"`, `"run"`, default `"trace"`)
- `filter` (string, max length 4000)
- `sample_rate` (number, default `1`, max 1, greater than 0)
- `facets` (array of string, required, min items 1, max items 8)
- `window_from` (string (date-time))
- `window_to` (string (date-time))
- `small_sample` (boolean)
- `summarise_new` (integer, min 0, max 5000)
- `budget_usd_per_day` (number, min 0, max 100000)

## TopicMapEstimate

Type: object

What a map would spend

- `window_from` (string (date-time))
- `window_to` (string (date-time))
- `matching_units` (integer)
- `sampled_units` (integer)
- `sample_size` (integer)
- `per_unit` (object)
  - `transcript_tokens` (integer)
  - `instruction_tokens` (integer)
  - `output_tokens` (integer)
  - `embedding_tokens` (integer)
- `model_free` (boolean)
- `cost` (object or null)
  - `per_unit_usd` (number)
  - `per_unit_with_cache_reads_usd` (number)
  - `total_usd` (number)
  - `total_with_cache_reads_usd` (number)
  - `budget_usd_per_day` (number)
  - `basis` (string)
- `note` (string)

## TopicMapList

Type: object

The maps

- `maps` (array of [TopicMap](/docs/api/schemas/t/#topicmap))
- `max_maps_per_team` (integer)
- `models_configured` (boolean)
- `units` (array of string)

## TopicMapPatch

Type: object

What may change of a map

- `name` (string, min length 1, max length 120)
- `filter` (string, max length 4000)
- `sample_rate` (number, max 1, greater than 0)
- `facets` (array of string, min items 1, max items 8)
- `status` (string, one of `"active"`, `"paused"`)
- `budget_usd_per_day` (number or null, min 0, max 100000)

## TopicMerge

Type: object

The topic that takes the units

- `into` (string, required, max length 128)

## TopicPatch

Type: object

What may change of a topic

- `name` (string, min length 1, max length 80)
- `description` (string, max length 400)
- `name_pinned` (boolean)
- `findings_muted` (boolean)

## TopicPoints

Type: object

The scatter of a facet

- `facet` (string)
- `points` (array of object)
  - `team_id` (string)
  - `unit_id` (string)
  - `topic_id` (string)
  - `x` (number)
  - `y` (number)
- `truncated` (boolean)
- `projection` (string)

## TopicRunList

Type: object

The fits of a map

- `runs` (array of object)
  - `id` (string)
  - `map_id` (string)
  - `kind` (string, one of `"setup"`, `"refit"`, `"refresh"`, `"snapshot"`)
  - `status` (string, one of `"running"`, `"succeeded"`, `"failed"`, `"skipped"`)
  - `detail` (object)
  - `error` (string)
  - `started_at` (string (date-time))
  - `finished_at` (string (date-time))

## TopicsBlock

Type: object

The topics block (T186.020). An omitted or zero number, an empty text and an empty duration take the default; the settings API stores the block whole.

- `summary_model` (string, max length 128) — Chat alias that writes the facet summaries; required for every facet but Signals
- `embedding_model` (string, max length 128) — Embeddings alias; locked with embedding_dimensions once summaries are embedded
- `embedding_dimensions` (integer, min 0, max 2048) — 0: the model's own size; else 64 to 2048
- `naming_model` (string, max length 128) — Chat alias that names topics; empty: summary_model
- `readiness_idle` (string) — 1m to 1h since a unit's last span; default 5m
- `refit` (object)
  - `schedule` (string) — Five-field cron in UTC; default 0 4 * * *
  - `window_days` (integer, min 0, max 30) — Days a fit reads; default 30
  - `min_summaries` (integer, min 0, max 100000) — Applicable summaries of a standard fit; default 100, at least 10
- `budget_usd_per_day` (number, min 0, max 100000) — Helper spend per organization and UTC day; default 1; 0 stops every model call
- `max_input_chars` (integer, min 0, max 2000000) — Transcript bound; default 200000, at least 1000
- `max_maps_per_team` (integer, min 0, max 50) — Maps per team or organization; default 5
- `max_topics_per_facet` (integer, min 0, max 200) — Topics a fit may publish per facet; default 50, at least 2
- `min_topic_members` (integer, min 0, max 1000) — Units of the smallest topic; default 15, at least 3
- `retention_days` (integer, min 0, max 365) — Days summaries, embeddings and assignments are kept; default 30
- `fit_max_summaries` (integer, min 0, max 100000) — Summaries one fit reads; default 20000, at least 100
- `setup_backfill` (integer, min 0, max 5000) — Recent units a new live map summarises at once; default 500
- `snapshot_max_new_summaries` (integer, min 0, max 5000) — Units a snapshot may summarise beyond the stored summaries; default 1000
- `refresh_cooldown` (string) — 1m to 24h between manual refreshes; default 15m
- `label_split_min` (integer, min 0, max 100000) — Units of one label from which it is clustered inside; default 200; 0 never
- `metric_topic_labels` (integer, min 0, max 50) — The topic as a metric label for the largest N topics of each facet; default 0 (none)
- `worker` (object)
  - `interval` (string) — 1s to 10m; default 15s
  - `batch_size` (integer, min 0, max 500) — Units a map summarises per tick; default 20
  - `concurrency` (integer, min 0, max 32) — Summary calls in flight; default 4
- `findings` (object)
  - `interval` (string) — 1m to 24h; default 15m
  - `window` (string) — 1h to 168h; default 24h
  - `min_units` (integer, min 0) — Default 20
  - `spike_ratio` (number) — 1.1 to 100; default 2
  - `negative_share` (number, min 0, max 1) — Default 0.3
  - `pass_rate_drop` (number, min 0, max 1) — Default 0.2
  - `cache_prefix_tokens` (integer, min 0) — Default 1024, at least 64
  - `large_tool_result_tokens` (integer, min 0) — Default 4000, at least 64
  - `verbose_ratio` (number) — 1.5 to 100; default 4
  - `tool_error_min` (integer, min 0) — Default 5
  - `retry_loop_min` (integer, min 0, max 1000) — Default 3, at least 2
  - `min_impact_usd` (number, min 0) — Default 0.01
  - `severity` (string, one of `"info"`, `"warning"`, `"critical"`)
  - `channels` (array of string, max items 16)

## TopicsReset

Type: object

The confirmation of a reset

- `confirm` (string, required, one of `"delete summaries"`)

## TopicsResetResult

Type: object

What a reset deleted

- `deleted_summaries` (integer)

## TopicsSettings

Type: object

Topics settings as applied

- `version` (integer) — Version of the stored block; 0 when the YAML block is in force. An editor sends it back
- `source` (string, one of `"yaml"`, `"api"`)
- `topics` (object) — Every field of the block with its default filled in
- `configured` ([TopicsBlock](/docs/api/schemas/t/#topicsblock))
- `yaml` ([TopicsBlock](/docs/api/schemas/t/#topicsblock))
- `restart_required` (boolean)
- `applies_to` (string)
- `embedding_lock` (object)
  - `locked` (boolean)
  - `model` (string)
  - `dimensions` (integer)
  - `summaries` (integer)
- `flags` (object)
  - any other key: boolean

## TopicsSettingsRevert

Type: object

The version read

- `version` (integer, required, min 0)

## TopicsSettingsVersion

Type: object

The version now stored (0 after a revert)

- `version` (integer)

## TopicsSettingsWrite

Type: object

The whole block at the version read

- `version` (integer, required, min 0)
- `topics` ([TopicsBlock](/docs/api/schemas/t/#topicsblock), required)

## TopicSummaryPage

Type: object

One page of summaries

- `summaries` (array of object)
  - `team_id` (string)
  - `unit_id` (string)
  - `unit_type` (string)
  - `facet` (string)
  - `state` (string, one of `"applicable"`, `"not_applicable"`, `"insufficient_input"`, `"input_too_large"`, `"content_not_captured"`, `"failed"`)
  - `label` (string)
  - `summary` (string)
  - `content_hidden` (boolean)
  - `topic_id` (string)
  - `assigned` (boolean)
  - `origin` (string)
  - `distance` (number)
  - `unit_start` (string (date-time))
- `next_cursor` (string)

## TopicToDataset

Type: object

A dataset to fill from a topic

- `dataset_id` (string, required, max length 128)
- `limit` (integer, default `25`, min 1, max 100)
- `include_output` (boolean)

## Trace

Type: object

- `trace_id` (string, required)
- `summary` ([TraceSummary](/docs/api/schemas/t/#tracesummary))
- `spans` (array of [Span](/docs/api/schemas/s/#span), required, max items 2000)
- `truncated` (boolean, required)
- `retained` (boolean, required) — Some spans come from the retained copy of an annotated trace
- `valuation_shown` (boolean, required)
- `source` (string, one of `"database"`, `"analytics_store"`) — Where the spans were read (T186.018)
- `team_id` (string) — T186.006: the team of the spans when one team owns them all; what a human result or a comment written from the trace detail is filed under
- `judge_of` ([JudgeOf](/docs/api/schemas/j/#judgeof))
- `pending_evaluations` (array of object, max items 50) — T186.008, with evaluators and evals:read: the evaluator runs the trace still waits for (a trace evaluator runs once the trace stayed idle for its window; a span evaluator after evaluation.span_delay), each with evaluator_id, evaluator_version, name, scope, span_id, status (pending or running) and due_at
- `queues` (array of [RequestQueueRef](/docs/api/schemas/r/#requestqueueref), max items 50) — T186.006, with trace_explorer, evals and evals:read: the review queues the trace's requests are in, of the reader's teams
- `replays` (array of [RequestReplayLink](/docs/api/schemas/r/#requestreplaylink)) — T186.006, with request_replay: the replays of the trace's requests and, on a replay's trace, the request it replays
- `links` (object, required)
  - `logs` (string (uri))
  - `apm` (string (uri))

## TraceChartSeries

Type: object

- `key` (string, required) — The group of the breakdown (empty for none, or for rows without a value)
- `folded` (boolean) — true on the one series (key other) that sums the groups past the eight largest; a group that is itself called other is not folded
- `total` (number, required) — The metric over the whole range: a sum, or the mean for duration
- `points` (array of object, required, max items 62)
  - `at` (string (date-time), required)
  - `value` (number, required)

## TraceExplorerPage

Type: object

- `scope` (string, required, one of `"traces"`, `"spans"`)
- `lens` (string, required, one of `"overview"`, `"evaluations"`, `"feedback"`)
- `from` (string (date-time), required)
- `to` (string (date-time), required)
- `query` (string, required)
- `engine` (string, required, one of `"database"`, `"analytics_store"`)
- `has_more` (boolean, required)
- `next_cursor` (string)
- `valuation_shown` (boolean, required)
- `evaluations_shown` (boolean, required)
- `evaluations_unavailable` (boolean)
- `evaluations_truncated` (boolean) — The rows' results reached the 1000 one page reads; the badges count the newest
- `evaluation_filter_truncated` (boolean, required)
- `content_shown` (boolean, required)
- `cards` (array of [EvaluationFigure](/docs/api/schemas/e/#evaluationfigure), max items 24)
- `data` (array of object, required, max items 200) — scope traces: a team's TraceSummary of a trace with team_id, duration_us, evaluations and content. scope spans: a Span without attributes, events and links, with team_id, evaluations and content.
  - `team_id` (string, required)
  - `trace_id` (string, required)
  - `span_id` (string)
  - `duration_us` (integer)
  - `evaluations` ([TraceRowEvaluations](/docs/api/schemas/t/#tracerowevaluations))
  - `content` ([TraceRowContent](/docs/api/schemas/t/#tracerowcontent))
  - `comments` (integer) — Comments on the row's request (its team and request ID), for a reader of evaluations; absent when none

## TraceFacets

Type: object

- `scope` (string, required, one of `"traces"`, `"spans"`)
- `from` (string (date-time), required)
- `to` (string (date-time), required)
- `query` (string, required)
- `total` (integer, required)
- `fields` (array of string, required)
- `evaluation_filter_truncated` (boolean, required)
- `evaluations_unavailable` (boolean)
- `text_search` (object) — T186.007: what a text term read (present when the query holds one)
  - `scanned` (integer, required) — Captured records read, newest first
  - `limit` (integer, required) — trace_query.text_search_max_records
  - `truncated` (boolean, required) — Older records of the range were not read
  - `matched` (integer, required)
- `facets` (object, required)
  - any other key: array of object
    - `value` (string, required)
    - `count` (integer, required)
- `max` (object, required)
  - any other key: integer
- `evaluators` (array of [EvaluationFigure](/docs/api/schemas/e/#evaluationfigure), max items 50)
- `histogram` (array of object, max items 62)
  - `at` (string (date-time), required)
  - `ok` (integer, required)
  - `errors` (integer, required)
- `histogram_step_seconds` (integer)
- `stats` ([TraceStats](/docs/api/schemas/t/#tracestats))

## TraceQueryConfig

Type: object

The trace_query block of the configuration file (T186.007), as the gateway applies it.

- `text_search_max_records` (integer, required, default `500`, min 0, max 5000) — Captured records one text search reads, newest first, of the time range and of the teams whose content the reader reads. 0 turns text search off.
- `text_search_max_record_bytes` (integer, required, default `65536`, min 1024, max 1048576) — Text read of one record: its sent view and its answer, each.
- `saved_views_per_owner` (integer, required, default `50`, min 1, max 500) — Saved views one person keeps.
- `saved_views_total` (integer, required, default `10000`, min 1, max 100000) — Saved views the gateway keeps; at least saved_views_per_owner.

## TraceRowContent

Type: object

Trace explorer (T186.006): the first input and the answer of a row's request, as text, for a reader of the sent view of its team

- `state` (string, required, one of `"shown"`, `"withheld"`, `"not_captured"`)
- `input` (string, max length 241)
- `output` (string, max length 241)

## TraceRowEvaluations

Type: object

Trace explorer (T186.006): the results of a list row, never their reasoning

- `failed` (integer, required)
- `passed` (integer, required)
- `neutral` (integer, required)
- `pending` (integer, required)
- `errors` (integer, required)
- `skipped` (integer) — Results that could not judge (status skipped); absent when none
- `more` (integer) — Results beyond the 24 listed
- `results` (array of object, required, max items 24)
  - `id` (string, required)
  - `name` (string, required)
  - `source` (string, required)
  - `scope` (string)
  - `span_id` (string)
  - `assessment` (string, one of `"pass"`, `"fail"`, `"none"`)
  - `status` (string, one of `"ok"`, `"error"`, `"skipped"`, `"pending"`)
  - `metric_type` (string)
  - `value` (number)
  - `string_value` (string)

## TraceStats

Type: object

T186.006: the figures of an explorer query's rows (traces or spans), asked with stats=true. The percentiles are discrete and the same on both span engines: the value of the row ceil(p*n) of the sorted durations.

- `rows` (integer, required)
- `duration_p50_us` (integer, required)
- `duration_p95_us` (integer, required)
- `duration_avg_us` (integer, required)
- `cost_usd` (string) — Only with usage_valuation and analytics:read
- `input_tokens` (integer, required)
- `output_tokens` (integer, required)
- `errors` (integer, required) — Traces with a span in error, or spans in error

## TraceSummary

Type: object

One team's summary of a trace, kept by the span writer (T186.002).

- `trace_id` (string, required)
- `first_at` (string (date-time), required)
- `last_at` (string (date-time), required)
- `root_span_id` (string)
- `root_request_id` (string)
- `root_name` (string)
- `spans` (integer, required)
- `requests` (integer, required)
- `llm_calls` (integer, required)
- `tool_calls` (integer, required)
- `errors` (integer, required)
- `fell_back` (boolean, required)
- `cache_hits` (integer, required)
- `guardrail_flags` (integer, required)
- `dropped_spans` (integer, required)
- `cost_state` (string, required, one of `"known"`, `"partial"`, `"unknown"`, `"none"`, `""`)
- `cost_usd` (string)
- `input_tokens` (integer)
- `output_tokens` (integer)
- `models` (array of string, required, max items 16)
- `session_id` (string)
- `end_user` (string)
- `origin` (string, required)
- `updated_at` (string (date-time), required)

## TrajectoryAliasStatus

Type: object

- `alias` (string, required)
- `header` (string, required)
- `ttl_seconds` (integer, required, min 60)
- `max_entries` (integer, required, min 100)
- `escalation_turns` (integer, required, min 0, max 50)
- `min_cheaper_turns` (integer, required, min 0, max 50)
- `sessions` (integer, required, min 0)
- `holds_active` (integer, required, min 0) — Sessions with turns left of a hold
- `stateless_requests` (integer, required, min 0) — Requests judged without a usable session header, so without holds
- `evictions` (integer, required, min 0)
- `expired` (integer, required, min 0)
- `tiers` (array of string, required) — Configured tiers, least capable first
- `sessions_by_tier` (array of integer, required) — Sessions standing on each configured tier, in the order of tiers

## TrashSettings

Type: object

The trash.* boot settings (T168, T183), effective, under the YAML block's name.

- `retention_days` (integer, required, min 1, max 365) — trash.retention_days (default 30): how long a tombstone stays restorable and listed; a configuration rollout changes it.

