Skip to content

API schemas: S

Type: object

  • label (string, required, default "Corporate SAML", min length 1, max length 80)
  • entity_id (string, required, min length 1, max length 2048) — Exact SP entity identifier; no normalization.
  • acs_url (string (uri), required, max length 2048) — Exact HTTPS origin with canonical /api/v1/admin/saml/callback path, no credentials/query/fragment.
  • idp_entity_id (string, required, min length 1, max length 2048) — Exact expected IdP issuer identifier.
  • idp_sso_url (string (uri), required, max length 2048) — Explicit trusted HTTPS Redirect binding endpoint. No runtime metadata fetching.
  • idp_signing_certificates_pem (array of string, required, min items 1, max items 8)
  • subject_users (object, required) — Exact persistent NameID to existing local user ID; no email/group/role shortcut.
    • any other key: string
  • session_epoch (string, required, min length 1, max length 64) — Explicit trust epoch; rotate for an offline YAML trust reset.
  • request_ttl (string, required, default "5m", min length 1, max length 32) — Positive Go duration from 1m through 10m.
  • assertion_max_age (string, required, default "5m", min length 1, max length 32) — Positive Go duration from 1m through 10m.
  • clock_skew (string, required, default "30s", min length 1, max length 32) — Nonnegative Go duration through 2m.
  • max_response_bytes (integer, required, default 262144, min 16384, max 1048576)
  • max_xml_tokens (integer, required, default 20000, min 1000, max 50000)
  • max_concurrent_callbacks (integer, required, default 4, min 1, max 64) — Nonblocking per-process validation capacity; new admissions use the current limit.
  • require_encrypted_assertions (boolean, default false) — T168: with saml_encrypted_assertions, refuse a plain (unencrypted) assertion. Ignored while the flag is off.
  • idp_slo_url (string (uri), max length 2048) — T168, saml_single_logout: the IdP SingleLogoutService for the HTTP-Redirect binding (HTTPS, no query). Set together with slo_url; both omitted keeps sign-out local.
  • slo_url (string (uri), max length 2048) — T168, saml_single_logout: this gateway’s logout endpoint, the ACS origin with the exact path /api/v1/admin/saml/slo; the LogoutResponse Destination must equal it.

Type: object

  • version (integer, required, min 0)
  • source (string, required, one of "yaml", "console", "default")
  • saml (SAMLLoginPolicy or null, required)
  • metadata_url (string or null (uri), required)
  • enabled (boolean, required) — Effective login feature flag, not an IdP health check.
  • defaults (object, required)
    • label (string, required, default "Corporate SAML")
    • request_ttl (string, required, default "5m")
    • assertion_max_age (string, required, default "5m")
    • clock_skew (string, required, default "30s")
    • max_response_bytes (integer, required, default 262144)
    • max_xml_tokens (integer, required, default 20000)
    • max_concurrent_callbacks (integer, required, default 4)

Type: object

A saved view as one reader sees it (T186.007).

  • id (string, required, pattern ^sv_[a-f0-9]{24}$)
  • surface (string, required, one of "traces", "logs")
  • name (string, required)
  • description (string, required)
  • owner (string, required)
  • own (boolean, required)
  • visibility (string, required, one of "private", "team", "organization")
  • team (string)
  • organization (string) — The organization of an organization’s view, or the one a team’s view was shared in
  • definition (SavedViewDefinition, required)
  • version (integer, required, min 1)
  • created_at (string (date-time), required)
  • updated_at (string (date-time), required)
  • updated_by (string, required)
  • default (boolean, required) — The reader’s default view of the screen
  • shared_default (boolean) — The default of the view’s team or organization
  • can_edit (boolean, required)
  • can_delete (boolean, required)

Type: object

What a saved view restores on its screen (T186.007).

  • schema (integer, required, one of 1)
  • scope (string, required, one of "traces", "spans", "logs") — traces and spans belong to the trace explorer, logs to the request log
  • query (string, required, max length 4096) — A query of the scope; validated when the view is stored
  • range (string, required, one of "15m", "1h", "6h", "24h", "7d", "30d", "custom")
  • from (string (date-time)) — With range custom
  • to (string (date-time)) — With range custom, at most 92 days after from
  • lens (string, one of "overview", "evaluations", "feedback") — Trace explorer only
  • columns (array of string, max items 40)
  • sort (object)
    • field (string, required, max length 128)
    • order (string, required, one of "asc", "desc")
  • facets (array of string, max items 12) — Facets added to the rail
  • filters (object) — A screen’s own filters outside the query (the request log’s form), by name
    • any other key: string
  • chart (object)
    • metric (string, required)
    • by (string, required)
    • form (string)
  • internal (boolean, default false) — The trace explorer also lists the gateway’s own calls (judges, helpers); refused for scope logs

Type: object

  • name (string, required, min length 1, max length 120)
  • description (string, max length 500)
  • visibility (string, one of "private", "team", "organization", default "private")
  • team (string, max length 256) — With visibility team
  • organization (string, max length 256) — With visibility organization (requires the organizations feature)
  • shared_default (boolean, default false) — A team’s or an organization’s view only: the view its members’ screens open with, unless a member chose a default of their own. One per team or organization and screen: setting it clears the one before.
  • definition (SavedViewDefinition, required)

Type: object

  • schemas (array of string, required)
  • status (string, required)
  • scimType (string)
  • detail (string)

Type: object

  • schemas (array of string, required)
  • id (string, required)
  • userName (string, required)
  • externalId (string)
  • active (boolean, required)
  • meta (object, required)

Type: object

  • schemas (array of string)
  • userName (string, required, min length 1, max length 128)
  • externalId (string, min length 1, max length 255) — OIDC subject; links federated sign-in to this user
  • active (boolean)

Type: object

The secret_manager boot settings the selected kind uses, under their YAML names, and the names asked for (T183, ADR 0139, 0140). Never a value, an environment variable name or a token; ca_file stays in the YAML.

  • enabled (boolean, required)
  • kind (string, one of "hashicorp_vault", "cyberark_conjur", "aws_secrets_manager", "gcp_secret_manager", "azure_key_vault") — secret_manager.kind
  • address (string) — secret_manager.address
  • path_prefix (string) — secret_manager.path_prefix
  • refresh_seconds (integer) — secret_manager.refresh_seconds (the effective value)
  • names (array of string) — secret_manager.names: when set, only these names and the keys of paths are read.
  • paths (object) — secret_manager.paths: name to path#field, for secrets that keep several values.
    • any other key: string
  • mount (string) — secret_manager.mount (Vault KV mount)
  • namespace (string) — secret_manager.namespace (Vault Enterprise)
  • field (string) — secret_manager.field: the key read inside a secret (Vault, and a JSON secret of the cloud stores)
  • auth (string) — secret_manager.auth (Vault: token or approle)
  • approle_mount (string) — secret_manager.approle_mount (Vault)
  • account (string) — secret_manager.account (Conjur)
  • login (string) — secret_manager.login (Conjur)
  • region (string) — secret_manager.region (AWS)
  • profile (string) — secret_manager.profile (AWS)
  • project (string) — secret_manager.project (Google)
  • credential (string, one of "auto", "env", "web_identity", "container", "cli", "client_secret", "workload_identity", "managed_identity") — secret_manager.credential: how a cloud store authenticates (a mode, not a secret).
  • entries (array of object, required)
    • name (string, required)
    • location (string) — The path#field secret_manager.paths gives the name.
    • resolved (boolean, required)
    • fetched_at (string (date-time))
    • failed_at (string (date-time))
    • error (string)

Type: object

semantic_cache flag (ADR 0116). Caches chat answers of this alias. The last message must be a text-only user message; every parameter and every earlier message must match exactly, and only that last message is compared by meaning. Hits carry X-Gateway-Cache: hit, X-Gateway-Cache-Kind (exact or semantic) and X-Gateway-Cache-Similarity; misses carry X-Gateway-Cache: miss. Clients opt out with Cache-Control no-cache/no-store, X-Gateway-Cache: bypass or the body field cache ({no-cache, no-store}), which is removed before the provider. With exact_chat_cache (T168) the key begins with the organization and team and covers the normalized request, a client may shorten the stored lifetime with X-Gateway-Cache-TTL or cache.ttl (seconds or a duration, capped by ttl), and a hit is valued as known at zero cost.

  • enabled (boolean, required)
  • ttl (string, required) — Go duration 1s..24h
  • embedding_model (string) — Embeddings alias for matching by meaning, called as the requesting key (quota and ledger see it; without access the lookup stays exact). Empty: exact cache only.
  • threshold (number, min 0.5, max 1) — Required with embedding_model, no default: absolute cosine similarity depends on the embedding model, so calibrate it with X-Gateway-Cache-Similarity.
  • scope (string, one of "key", "team") — Who may receive an answer stored by another request: the same key (default) or the same team. Never across teams.
  • max_input_chars (integer, min 0, max 8000) — 0 means 2000. Longer questions are matched only exactly.
  • share (string, one of "organization", "all") — T168: with features.chat_cache_cross_tenant, share answers past the team: every team of the caller’s organization, or every organization. Ignored without the flag (scope decides, and with exact_chat_cache every key begins with the organization and team).

Type: object

  • backend (string, required, one of "postgres", "redis", "memory") — postgres, shared by every replica. redis with distributed_semantic_cache: the Redis cache backend, shared by every replica on the same namespace and content key (T111). memory appears only on an in-process test server built without a store; with no backend the route answers 503.
  • entries_known (boolean) — false for redis: there is no reliable inventory without scanning the server, so every policy’s entries and purged are -1. Absent on gateways before T111, which always counted.
  • purged (integer (int64), min -1) — Entries deleted by this purge; -1 when the backend cannot count them (redis, where a purge starts a new generation and the old entries expire with their TTL).
  • inactive_purge (string, one of "failed") — Present when the purge could not reach the backend distributed_semantic_cache does not select (PostgreSQL with the flag on, Redis with it off); switching the flag before those answers expire could serve them again.
  • policies (array of object, required)
    • alias (string, required)
    • enabled (boolean, required)
    • ttl_ms (integer (int64), required)
    • mode (string, required, one of "exact", "semantic")
    • embedding_model (string)
    • threshold (number)
    • scope (string, required, one of "key", "team")
    • entries (integer (int64), required, min -1) — Live entries; -1 when entries_known is false.

Type: object

Accept-queue length requested from the operating system. Windows applies it with SOMAXCONN_HINT; Linux and macOS keep their kernel limit (net.core.somaxconn / kern.ipc.somaxconn), so there the value is reported, not used. Raw YAML 0 selects the default.

  • key ("server.listen_backlog", required)
  • group ("server", required)
  • kind ("integer", required)
  • default ("4096", required)
  • minimum ("200", required)
  • maximum ("65535", required)
  • sources (array of string, required, min items 2, max items 2)
  • zero_is_default (true, required)
  • restart_required (true, required)

Type: object

  • input_per_million (string, required) — Exact decimal USD per million text input tokens in this tier
  • output_per_million (string, required)
  • cache_read_per_million (string)
  • cache_write_per_million (string)
  • cache_write_1h_per_million (string)
  • long_context (object)
    • threshold_tokens (integer (int64), required)
    • input_per_million (string, required)
    • output_per_million (string, required)
    • cache_read_per_million (string)
    • cache_write_per_million (string)
    • cache_write_1h_per_million (string)
  • source (string, required, one of "cost_map", "manual")
  • source_url (string (uri))
  • fetched_at (string (date-time))
  • effective_from (string (date-time))
  • manual_fallback (boolean) — The manual price book supplied this tier’s price; a tier it names wins over the catalog’s
  • override (boolean) — Present and true when the manual tier price replaced a tier price the catalog published
  • stale (boolean)

Type: object

T186.011: one team’s summary of a session. cost_usd and cost_state only for a reader who sees cost, end_user only with end_user_tracking.

  • team_id (string, required)
  • session_id (string, required)
  • first_at (string (date-time), required)
  • last_at (string (date-time), required)
  • duration_us (integer, required)
  • traces (integer, required)
  • requests (integer, required)
  • cost_state (string, one of "known", "partial", "unknown", "none")
  • cost_usd (string) — Exact decimal USD
  • tokens (integer)
  • end_user (string)
  • parent_session_id (string)
  • first_trace_id (string)
  • organization_id (string) — T186.011b: the organization the session’s traces recorded. A team that moved has one row per organization, each with that organization’s part of the session.
  • agents (array of string, required, max items 16)
  • evaluations (RowEvaluations)
  • scores (array of object)
    • name (string, required)
    • count (integer, required)
    • failed (integer, required)
    • mean (number)
  • content (object)
    • state (string, required, one of "shown", "withheld", "not_captured")
    • input (string)
    • output (string)

Type: object

  • half_open_lease (string) — Default30s;1s–10m; whole-millisecond Go duration; empty uses default.

Type: object

The answering replica’s shared routing state (shared_routing_state). mode is shared while its last cycle read the store within replica_ttl_ms, local_fallback while it routes on local state alone (reason starting, storage_unavailable, store_error, store_timeout or stale), off with the flag off.

  • enabled (boolean, required)
  • mode (string, required, one of "off", "shared", "local_fallback")
  • reason (string, one of "starting", "storage_unavailable", "store_error", "store_timeout", "stale")
  • replicas (integer, required, min 0) — Other replicas read in the last cycle
  • last_sync_at (string or null (date-time), required)
  • last_failure_at (string or null (date-time), required)
  • consecutive_failures (integer, required, min 0)
  • pending_pins (integer, required, min 0)
  • sync_interval_ms (integer, required, min 250)
  • timeout_ms (integer, required, min 50)
  • replica_ttl_ms (integer, required, min 2000)
  • syncs (integer, required, min 0)
  • failures (integer, required, min 0)
  • pins_written (integer, required, min 0)
  • pins_read (integer, required, min 0)
  • pins_dropped (integer, required, min 0)

Type: object

  • id (string, required, pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$)
  • team (string, required, pattern ^[a-z][a-z0-9_-]{1,63}$)
  • name (string, required, min length 1, max length 128) — At most 128 UTF-8 bytes, not characters
  • description (string, max length 2048) — At most 2048 UTF-8 bytes, not characters
  • disabled (boolean, required)
  • published (boolean, required) — Only YAML may declare a published base. PUT saves a draft and requires false; explicit publication uses POST publish.
  • allowed_teams (array of string, required, max items 20) — Explicit read grants; owner team does not gain access automatically. Scoped responses intersect with active memberships.
  • files (array of SkillFile, required, min items 1, max items 32) — At most 128 KiB aggregate UTF-8 file content and 512 KiB serialized JSON; no ZIP extraction or network fetch
  • provenance (SkillProvenance)
  • signature (SkillSignature)

Type: object

  • entry (SkillState, required)
  • skill (SkillDefinition, required)
  • files_sha256 (string, required, pattern ^[a-f0-9]{64}$)
  • declared_base (SkillDefinition) — Current YAML definition for global authorized readers only, for explicit comparison; omitted from scoped responses
  • signature_status (string, one of "unsigned", "verified", "untrusted_key", "invalid") — T032.003, computed from the boot trusted keys at read time; never stored. untrusted_key covers a key that was never trusted or was removed (revoked).
  • signature_key_id (string)
  • signing_required (boolean) — skill_signing is on; publication and bundle delivery need signature_status verified.

Type: object

  • path (string, required, max length 128) — Unique safe relative POSIX path; no empty, dot, parent, absolute or backslash segments. Allowed extensions md/txt/json/yaml/yml. Exact SKILL.md required in each bundle.
  • content (string, required, max length 16384) — UTF-8 text; at most 16384 bytes, not characters; never executed by the gateway

Type: object

Type: object

The skill_marketplace.* boot settings (T151, T183) under the YAML block’s name; a configuration rollout changes them.

  • public_base_url (string, required) — skill_marketplace.public_base_url: the externally reachable https base of the gateway the feed URL is built from; empty while unset.

Type: object

  • items (array of SkillState, required, max items 100)
  • total (integer, required, min 0)
  • limit (integer, required, min 1, max 100)
  • offset (integer, required, min 0, max 10000)
  • truncated (boolean, required)

Type: object

  • source_url (string (uri), required, max length 2048) — Declared HTTPS source without userinfo, query or fragment; never fetched or independently verified; at most 2048 UTF-8 bytes
  • immutable_ref (string, required, pattern ^([a-f0-9]{40}|[a-f0-9]{64})$) — Declared immutable commit reference; not an origin signature
  • files_sha256 (string, pattern ^[a-f0-9]{64}$) — Optional asserted canonical file hash; must match when supplied

Type: object

  • version (integer (int64), required, min 0)
  • base_fingerprint (string, required, pattern ^([a-f0-9]{64})?$)
  • revision (integer, required, min 0, max 100) — Revision 0 is an unmaterialized YAML definition; persisted revisions start at 1

Type: object

  • version (integer (int64), required, min 0)
  • base_fingerprint (string, required, pattern ^([a-f0-9]{64})?$)
  • mode (string, required, one of "disable", "revert") — Disable retains a tombstone. Revert restores YAML when declared, otherwise retains a console tombstone. History is preserved.

Type: object

  • revision (integer, required, min 0, max 100) — Revision 0 is an unmaterialized YAML definition; persisted revisions start at 1
  • content_hash (string, required, pattern ^[a-f0-9]{64}$)
  • files_sha256 (string, required, pattern ^[a-f0-9]{64}$)
  • source (string, required, one of "yaml", "console")
  • created_at (string (date-time))

Type: object

T032.003. Detached Ed25519 publisher signature over ‘ai-gateway skill signature v1\n’ followed by the hex SHA-256 of the canonical JSON {description, files_sha256, id, name} (cmd/skillsign prints and signs it). Grants, owner team and flags are not signed. Verified against skill_signing.trusted_keys (boot YAML only).

  • key_id (string, required, pattern ^[a-z0-9][a-z0-9._-]{0,63}$)
  • value (string, required) — Base64 (standard, padded) 64-byte Ed25519 signature

Type: object

  • id (string, required)
  • team (string, required, pattern ^[a-z][a-z0-9_-]{1,63}$)
  • name (string, required)
  • description (string, required)
  • version (integer (int64), required, min 0)
  • current_revision (integer, required, min 0, max 100) — Revision 0 is an unmaterialized YAML definition; persisted revisions start at 1
  • published_revision (integer or null, required, min 0, max 100)
  • revision_count (integer, required, min 0, max 100)
  • source (string, required, one of "yaml", "console")
  • disabled (boolean, required)
  • deleted (boolean, required)
  • base_fingerprint (string, required, pattern ^([a-f0-9]{64})?$)
  • base_changed (boolean, required)
  • owner_active (boolean, required)
  • content_hash (string, required, pattern ^[a-f0-9]{64}$)
  • updated_at (string (date-time))
  • current_base_fingerprint (string, required, pattern ^([a-f0-9]{64})?$) — Current declared YAML fingerprint, reviewed explicitly for mutation; base_fingerprint preserves the materialized baseline
  • references_active (boolean, required) — Owner and all granted teams are active for the selected revision

Type: object

  • id (string, required, pattern ^sub_[a-f0-9]{24}$)
  • skill_id (string, required)
  • team (string, required)
  • name (string, required)
  • submitted_by (string, required)
  • status (string, required, one of "pending", "scan_failed", "approved", "rejected")
  • version (integer, required, min 1)
  • content_hash (string, required, pattern ^[a-f0-9]{64}$)
  • files_sha256 (string, required, pattern ^[a-f0-9]{64}$)
  • scan (object, required)
    • scanner (string, required)
    • passed (boolean, required)
    • truncated (boolean, required)
    • findings (array of object, required, max items 100)
      • rule (string, required, one of "secret_material", "remote_code_execution", "destructive_command", "credential_access", "instruction_override", "hidden_unicode")
      • path (string, required)
      • line (integer, required, min 1)
  • scanned_at (string (date-time))
  • reviewed_by (string)
  • reviewed_at (string (date-time))
  • reason (string)
  • published_revision (integer or null, required)
  • created_at (string (date-time))
  • own (boolean, required)
  • skill (SkillDefinition)
  • registry_entry (SkillState)

Type: object

  • revision (integer, required, min 0, max 100) — Revision 0 is an unmaterialized YAML definition; persisted revisions start at 1
  • content_hash (string, required, pattern ^[a-f0-9]{64}$)
  • files_sha256 (string, required, pattern ^[a-f0-9]{64}$)
  • source (string, required, one of "yaml", "console")
  • created_at (string (date-time))
  • skill (SkillDefinition, required)

Type: object

  • version (integer (int64), required, min 0)
  • base_fingerprint (string, required, pattern ^([a-f0-9]{64})?$)
  • skill (SkillDefinition, required)

Type: array of string, max items 64

Literal IPv4/IPv6 CIDR prefixes only. Host bits normalize; equivalent normalized duplicates, zones, ports, DNS names and IPv4-mapped IPv6 prefixes are refused. [] means no source restriction; null is invalid. Use /32 or /128 for one address.

Type: object

Privileged read-only startup trust configuration. CIDRs are authorization configuration, not observed client data. Existing scoped config projections omit infrastructure. Changes to trust/admin ranges require operator YAML and rollout; no host network-trust writer is exposed.

  • enabled (boolean, required) — Boot operator source_ip_controls flag; default false.
  • client_ip_logging_enabled (boolean, required) — Separate runtime operator flag; default false and requires source controls.
  • trusted_proxies (SourceCIDRList, required) — Empty trusts no proxy headers; universal /0 trust is refused.
  • admin (object, required) — The admin block’s source ceiling (admin.allowed_source_cidrs), read-only.
    • allowed_source_cidrs (SourceCIDRList, required) — Empty imposes no administrative source ceiling.
  • forwarded_for_max_hops (integer, required, min 1, max 128) — Effective bounded XFF hop count; default 32.
  • forwarded_for_max_bytes (integer, required, min 64, max 16384) — Effective total XFF input byte ceiling; default 4096.
  • source (string, required, one of "default", "yaml") — Summary origin is yaml for explicitly declared feature switches or nonempty/nonzero startup source inputs; otherwise default. Empty arrays and zero-selects-default limits do not track per-field declaration presence.
  • restart_required (true, required)
  • client_ip_logging_restart_required (false, required)
  • recording_scope ("stdout_and_otlp_only", required) — No client IP in persisted SQL log history, UsageEvent, receipts or financial ledger.

Type: object

  • source_of_truth (string, required, one of "db", "file")
  • prune (boolean, required)
  • version (integer (int64), required)
  • kinds (array of string, required, max items 32)
  • declared (object, required)
    • any other key: array of string
  • shadowed (array of SourceRemoval, required, max items 100000)
  • database_only (array of SourceRemoval, required, max items 100000)
  • digest (string, required, pattern ^[0-9a-f]{64}$)

Type: object

  • kind (string, required, one of "models", "providers", "mcp_servers", "rate_policies", "access_groups", "guardrails", "guardrail_policies", "agents", "alert_channels", "features", "price_book")
  • id (string, required)
  • reason (string, required, one of "shadowed", "database_only")

Type: object

One stored gateway span (T186.002). No content: identifiers, timing, status, tokens (null is unknown, never zero), the step’s ledger cost and an allowlisted attribute object per kind.

  • trace_id (string, required, pattern ^[0-9a-f]{32}$)
  • span_id (string, required, pattern ^[0-9a-f]{16}$)
  • parent_span_id (string) — The parent in the stored tree; for a request span, the caller’s span when traceparent was joined
  • trace_source (string, required, one of "gateway", "caller")
  • caller_trace_id (string) — caller_trace link mode only
  • caller_parent_span_id (string) — caller_trace link mode only; asserted by the client, never used for authorization
  • request_id (string)
  • attempt (integer, min 1, max 100) — provider_attempt: the charge line’s attempt number, in send order
  • kind (string, required, one of "request", "routing", "provider_attempt", "cache", "guardrail", "tool", "judge", "helper", "app") — helper calls are request spans with origin helper; judge and app are produced by later slices
  • subkind (string) — request: the operation
  • name (string, required, max length 200)
  • origin (string, required, one of "app", "evaluation", "experiment", "playground", "helper", "shadow")
  • started_at (string (date-time), required)
  • duration_us (integer, required, min 0)
  • status (string, required, one of "ok", "error", "unset")
  • http_status (integer)
  • error_code (string)
  • model (string)
  • provider (string)
  • provider_model (string)
  • input_tokens (integer)
  • output_tokens (integer)
  • cache_read_tokens (integer)
  • cache_write_tokens (integer)
  • reasoning_tokens (integer)
  • cost_state (string, one of "known", "partial", "unknown", "none", "") — none for steps that cost nothing (routing, cache, guardrail, tool); empty when valuation is not shown
  • cost_usd (string) — Exact decimal: a provider attempt’s charge line, a request’s valuation or the sum of its known lines
  • key_id (string)
  • principal (string)
  • session_id (string)
  • end_user (string)
  • customer_org (string)
  • customer_team (string)
  • customer_member (string)
  • tags (object)
    • any other key: string
  • capture_id (string)
  • organization_id (string) — The team’s organization, when organizations is on (T186.018): with key_id, principal and the team the span carries the whole identity hierarchy
  • attributes (object) — Allowlisted per kind (see docs/traces.md). T186.018 adds, on provider attempts, gen_ai.request.* (the generation parameters the client sent: numbers and one allowlisted reasoning effort), ttfb_ms on the final answered attempt, fallback_reason and retry, parameters_changed, and the price entry that valued the send (price.source, price.override when a manual price replaced an available automatic one, price.input_per_million, price.output_per_million, price.unit, price.unit_price, price.effective_from, price.model); on the request span valuation_reason, the price entry and traceparent: ignored_malformed. price.* and valuation_reason appear only for a reader with usage_valuation, analytics:read and prices:read
  • events (array of object, max items 16) — T186.018: attempt_failed (outcome, http_status or cause, timeout_kind), retry and fallback (reason), target_skipped (reason), refused (error_code, http_status), quota_refused (policy_id, dimension, limit, resets_at, child), traceparent_ignored (reason). Gateway facts, never content.
    • name (string, required)
    • time (string (date-time), required)
    • attributes (object)
  • links (array of object, max items 8) — Related spans of other traces: {trace_id, span_id, relation}. relation is caller (caller_trace link mode), evaluates (on a judge span: the span it judged; span_id is absent when the judged request’s span is not stored) or evaluated_by (on a judged span: the judge span of each traced judge run, derived from the evaluation results on read; evaluation_tracing).
  • written_at (string (date-time), required)

Type: object

The YAML spans block (T186.002): the runtime policy (SpanStorePolicy) and the writer’s startup engine and capacity (SpanStoreWriter, T186.017).

  • All of (1): object
    • sample_rate (number)
    • keep_always (array of string)
    • retention_days (integer)
    • max_spans_per_request (integer)
    • max_spans_per_trace (integer)
    • max_attribute_bytes (integer)
    • caller_trace (string)
    • log_link_template (string)
    • apm_link_template (string)
    • retained_max_traces (integer)
    • engine (string, one of "database", "analytics_store")
    • queue_size (integer)
    • batch_size (integer)
    • flush_interval (string)
    • max_connections (integer)

Type: object

The span store’s runtime policy (T186.002): YAML spans block, API override and console editor, applied from the next request. An override replaces it as a whole.

  • sample_rate (number, required, default 1, min 0, max 1) — Head sampling by a keyed hash of the trace id: every span of a trace is kept or dropped together, the same on every replica.
  • keep_always (array of string, required, default ["error","fallback","guardrail_flagged","evaluated"]) — Requests stored even when sampled out: error (status 5xx, a cut stream or a failed provider attempt), fallback (served after a move to another target), guardrail_flagged (a guardrail blocked or masked, or a monitor would have), evaluated (captured for live evaluation).
  • retention_days (integer, required, default 14, min 1, max 3650) — Daily partitions kept; older ones are dropped. Never longer than an active metadata retention.
  • max_spans_per_request (integer, required, default 64, min 1, max 1024) — Including the request span; extra steps are counted in the request span’s dropped_spans attribute.
  • max_spans_per_trace (integer, required, default 2000, min 1, max 100000) — Counted from the trace summary; spans past it are dropped and counted (dropped_trace_limit).
  • max_attribute_bytes (integer, required, default 2048, min 256, max 16384) — Encoded size of one span’s attributes; the longest values are dropped first and attributes_truncated is set.
  • caller_trace (string, required, one of "join", "link", default "join") — join continues the caller’s W3C trace id; link mints a gateway trace id and keeps the caller’s ids apart (caller_trace_id, caller_parent_span_id, a caller link).
  • log_link_template (string, required, default "", max length 1024) — Empty, or an https URL (http only for a loopback host) whose only braces are {trace_id}, {span_id}, {request_id} and {caller_trace_id}; the trace drawer’s Open in logs.
  • apm_link_template (string, required, default "", max length 1024) — Same rules; the trace drawer’s Open in APM.
  • retained_max_traces (integer, required, default 10000, min 0, max 1000000) — Annotated traces (a human score or a review queue item on one of their requests) copied into the retained table before their partition is dropped.

Type: object

The span writer’s engine and capacity, read once at startup (restart to change).

  • engine (string, required, one of "database", "analytics_store", default "database") — T186.017: where spans are written and every span read answers from: the database (PostgreSQL) or the analytics_store block’s ClickHouse. analytics_store requires the analytics_store block and refuses analytics_store.spans_retention_days.
  • queue_size (integer, required, default 8192, min 64, max 1048576) — Requests waiting to be written; when full a request’s spans are dropped and counted, never awaited.
  • batch_size (integer, required, default 500, min 1, max 10000) — Spans per write; the default is 5000 with engine analytics_store (an explicit value wins).
  • flush_interval (string, required, default "1s") — Go duration 100ms..1m between writes of a batch that is not full.
  • max_connections (integer, required, default 2, min 1, max 16) — Connections of the writer’s own database pool (with engine analytics_store it only reads back the ledger of a request that did not carry its cost).

Type: object

T198 (speech_voices): one voice of one target of a speech alias

  • id (string, required) — The value to send as voice on /v1/audio/speech
  • name (string) — The provider’s display name, when it has one
  • model (string, required) — The alias
  • provider (string, required) — The connection ID
  • provider_model (string) — The target’s model (the engine on Amazon Polly); present only with server.response_headers.served_target
  • languages (array of string, max items 16) — Language or locale codes the provider reports
  • gender (string)
  • source (string, required, one of "declared", "provider", "built_in") — declared: models[].speech.voices; provider: the provider’s voice list; built_in: the documented voices of the model

Type: object

Static administrative key metadata only. Never request attribution tags, routing conditions, authorization grants or spend labels.

  • any other key: string

Type: object

Per-field stream clocks. Empty or absent strings inherit the network value. Go durations are validated at runtime; first_byte/write_stall 100ms..30m, idle 0s..30m, max_duration 1s..24h. The bounded request envelope limits input size.

  • first_byte (string)
  • idle (string)
  • max_duration (string)
  • write_stall (string)

Type: StreamTimeouts and object or object or object or object

Global console override. At least one nonempty clock is required; other empty or absent fields inherit YAML/default values.

  • All of (1): StreamTimeouts
  • All of (2): object or object or object or object
    • Any of (1): object
      • first_byte (any, required, min length 1)
    • Any of (2): object
      • idle (any, required, min length 1)
    • Any of (3): object
      • max_duration (any, required, min length 1)
    • Any of (4): object
      • write_stall (any, required, min length 1)

Type: object

  • run_id (string, required)
  • suite_id (string, required)
  • suite_name (string)
  • status (string, required, one of "queued", "running", "completed", "failed", "canceled")
  • verdict (string, required, one of "running", "passed", "failed", "error")
  • exit_code (integer, one of 0, 1, 2) — Absent while running
  • items (integer, required)
  • passed_items (integer, required)
  • pass_rate (number)
  • min_pass_rate (number, required)
  • runs_per_item (integer)
  • pass_threshold (integer)
  • dataset_as_of (string (date-time))
  • assertions (array of object, required, max items 20)
    • name (string)
    • passed (integer)
    • judged (integer)
    • pass_rate (number)
  • failed_items (array of object, required, max items 2000)
    • item_id (string)
    • trials (integer)
    • passed_trials (integer)
    • pass_threshold (integer)
    • failing (array of string, max items 30)

Type: object

V20 global-reader binding-write capability: administrator and current model permission/license, independent of operational activation. Live normalized before/after guards remain authoritative.

  • write (boolean, required)

Type: object

  • key ("models[].system_prompt", required)
  • group ("models", required)
  • kind ("enforced_system_prompt", required)
  • default (null, required)
  • capabilities (["chat"], required)
  • prompt_source ("registry", required)
  • publication ("current_published_revision", required)
  • owner ("authenticated_team", required)
  • schema_profile ("flat_strings_v1", required)
  • roles (["system"], required)
  • variables (false, required)
  • prompt_id ({"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"}, required)
  • owner_team ({"max_bytes":128}, required)
  • revision ({"minimum":1,"maximum":100}, required)
  • position ({"default":"replace","values":["replace","prepend"]}, required)
  • auto_route (false, required)
  • sources (["yaml","console"], required)
  • restart_required (false, required)
  • yaml_requires_restart (true, required)

Type: object

Optional private Chat-only mandatory static system-only current-publication reference. Owner must equal authenticated team. Null/unknown/duplicate/case aliases are invalid; no variables. Flag-off fails closed. Compatible semantic fallbacks retain identical normalized reference; operator can preserve, only administrator can change binding.

  • prompt_id (string, required, pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$)
  • owner_team (string, required, min length 1, max length 128) — Exact existing registry owner, at most128UTF-8bytes; nonempty valid registry team text.
  • revision (integer, required, min 1, max 100)
  • position (string, one of "replace", "prepend", default "replace")

m7gtwcontact@m7gtw.com