Skip to content

API schemas: D

Type: object

  • id (string, required, pattern ^(db_[a-f0-9]{24}|dbb_[a-z]{2,24})$)
  • 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 dashboard, or the one a team’s dashboard was shared in
  • definition (DashboardDefinition)
  • widgets (integer, required) — Number of widgets
  • version (integer, required, min 1)
  • created_at (string (date-time), required)
  • updated_at (string (date-time), required)
  • updated_by (string, required)
  • can_edit (boolean, required)
  • can_delete (boolean, required)
  • builtin (boolean) — A dashboard the product maintains: read-only, without versions, copied to be changed
  • library (object) — On a read of one dashboard: the library widgets its definition links, by ID, among those shared with the dashboard’s whole audience that the caller itself sees; a link that is not here does not hold for the caller

Type: object

  • schema (integer, required, one of 1)
  • range (string, required, one of "1h", "6h", "24h", "7d", "30d", "90d", "custom")
  • from (string (date-time)) — With range custom; at most 90 days before to
  • to (string (date-time))
  • timezone (string, max length 64) — IANA zone of calendar buckets; absent is UTC
  • widgets (array of DashboardWidget, required, max items 60) — In the order they are laid out; at most dashboards.widgets_per_dashboard (default 24)

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
  • definition (DashboardDefinition, required)

Type: object

  • id (string, required, pattern ^lw_[a-f0-9]{24}$)
  • name (string, required) — The widget’s title
  • owner (string, required)
  • own (boolean, required)
  • visibility (string, required, one of "private", "team", "organization")
  • team (string)
  • organization (string)
  • definition (DashboardWidget, required)
  • version (integer, required, min 1)
  • created_at (string (date-time), required)
  • updated_at (string (date-time), required)
  • updated_by (string, required)
  • can_edit (boolean, required)
  • can_delete (boolean, required)

Type: object

  • 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
  • widget (DashboardWidget, required) — What the library widget shows: a widget without id, size or library

Type: object

  • version (integer, required, min 1)
  • name (string, required)
  • description (string, required)
  • definition (DashboardDefinition)
  • widgets (integer, required)
  • restored_from (integer) — The version a restore saved again
  • saved_at (string (date-time), required)
  • saved_by (string, required)
  • current (boolean, required)

Type: object

One widget of a custom dashboard (T210). Either a link to the widget library (id, library and size alone: what it shows is the library widget’s, read with the dashboard), or the widget itself, which takes type and title. markdown takes text; time_series, single_metric and table take a source: usage (metric, group_by, filters, bucket) reads the usage query; experiments reads the same query over the results of experiment runs alone and takes an evaluation metric; traces (metric, scope, query, group_by) reads the trace explorer’s chart. A table takes group_by (its rows), limit and, for usage or experiments, metrics (its columns).

  • id (string, pattern ^w_[a-z0-9]{4,24}$) — Distinct within the dashboard; assigned when absent
  • type (string, one of "time_series", "single_metric", "table", "markdown")
  • title (string, min length 1, max length 80)
  • description (string, max length 300)
  • size (string, one of "small", "medium", "large", "full") — A third, a half, two thirds or the full width; default small for single_metric, medium for time_series and table, full for markdown
  • source (string, one of "usage", "traces", "experiments")
  • metrics (array of string, min items 1, max items 6) — table of source usage or experiments: its columns, all over requests or all over evaluation results; the rows are the largest groups by the first
  • limit (integer, default 10, min 1, max 50) — table: its rows; at most 8 (the default there) for source traces
  • library (string, pattern ^lw_[a-f0-9]{24}$) — A link to a library widget; a shared dashboard links only what its whole audience reads (a team’s dashboard the team’s and its organization’s library widgets, an organization’s the organization’s)
  • metric (string) — source usage: a metric of GET /analytics/query, over requests or over evaluation results; source traces: count, errors, duration, tokens or cost
  • group_by (string) — time_series (optional) and table (required). source usage and experiments: one dimension of the usage query (experiment_run among those of evaluation results), or tag:<name>; source traces: status, origin, team or model
  • filters (object) — source usage: exact values per dimension (tag.<name> for a usage tag)
    • any other key: array of string
  • bucket (string, one of "minute", "hour", "day", "week", "month") — time_series of source usage; absent follows the range
  • chart (string, one of "line", "bar", default "line") — time_series only
  • scope (string, one of "traces", "spans", default "traces") — source traces
  • query (string, max length 4096) — source traces: a query in the query language; empty reads every row
  • text (string, max length 4000) — markdown: headings, lists, bold, italic, code and http(s) links

Type: object

  • widget (string, required)
  • dashboard (string)
  • version (integer)
  • type (string, required, one of "time_series", "single_metric", "table")
  • source (string, required, one of "usage", "traces", "experiments")
  • metric (string, required)
  • unit (string, required, one of "count", "tokens", "usd", "ms", "us", "ratio", "score") — us is microseconds; ratio is a fraction from 0 to 1
  • from (string (date-time), required)
  • to (string (date-time), required)
  • timezone (string, required)
  • scope (object, required)
    • visibility (string, required, one of "private", "team", "organization")
    • team (string)
    • organization (string)
  • value (number or string, nullable) — single_metric: the figure as its read wrote it (a number, or an exact decimal string for money); null when there is none
    • One of (1): number
    • One of (2): string
  • bucket (string) — time_series of source usage: the calendar unit drawn
  • step_seconds (integer) — time_series of source traces: the width of a bucket
  • group_by (string)
  • series (array of object, max items 5)
    • key (string, required) — The group; empty without a breakdown
    • total (number or string, nullable)
      • One of (1): number
      • One of (2): string
    • points (array of object, required)
      • at (string (date-time), required)
      • value (number or string, required, nullable)
  • groups_total (integer) — source usage: the groups the breakdown has in all
  • groups_shown (integer)
  • more_groups (boolean) — source traces: groups exist past those drawn
  • truncated (boolean)
  • query (string) — source traces: the query as read, with the term of the dashboard’s team or organization
  • trace_scope (string, one of "traces", "spans")
  • columns (array of string) — table: the group, then each metric
  • rows (array of array of number or string) — table: one row per group, in the order of columns
    • One of (1): number
    • One of (2): string
  • units (object) — table: the unit of each metric
    • any other key: string
  • reads (array of string, required) — The API reads the figure came from, as paths with their query

DatabaseAdmissionTimeoutParameterDefinition

Section titled “DatabaseAdmissionTimeoutParameterDefinition”

Type: object

Bound of each database step of one inference request’s admission (managed key and JWT identity lookup, team and organization ceilings, entitlements, rate limits, budget precheck and reservation, realtime and video admission) and of its quota settlement. Fail-closed: a step that does not finish in time refuses the request with 503 and the provider is not called.

  • key ("storage.database.admission_timeout", required)
  • group ("database", required)
  • kind ("duration", required)
  • default ("2s", required)
  • minimum ("250ms", required)
  • maximum ("30s", required)
  • sources (array of string, required, min items 2, max items 2)
  • restart_required (true, required)

Type: object

Safe successful-startup metadata when boot_settings_view is enabled; omitted when disabled. Configured rows are typed policy/options, not health, live sessions or negotiated TLS. Connection startup parameters may override the two typed session fallbacks. Unopened/uncaptured factories remain unavailable. No DSN, host, environment names or paths.

  • configured (array of DatabasePolicySetting, required, min items 11, max items 12) — Eleven rows; the twelfth, storage.database.admission_timeout, only when the request selects parameter_catalog_version 26 or later (every earlier selector, including the default 1, keeps exactly eleven).
  • session_defaults (object, required) — Selected client startup parameters, not current server SHOW values. Only canonical decimal millisecond inputs within 0..86400000 are displayable; opaque or outside-range inputs stay unchanged in the connection but project null/null. Policy selection reflects existing whole-millisecond conversion.
  • restart_required (true, required)

Type: object or object or object or object or object or object or object

  • One of (1): object
    • key ("storage.database.max_connection_lifetime")
    • default ("30m")
  • One of (2): object
    • key ("storage.database.max_connection_idle_time")
    • default ("5m")
  • One of (3): object
    • key ("storage.database.health_check_period")
    • default ("1m")
  • One of (4): object
    • key ("storage.database.connect_timeout")
    • default ("5s")
  • One of (5): object
    • key ("storage.database.acquire_timeout")
    • default ("2s")
  • One of (6): object
    • key ("storage.database.startup_timeout")
    • default ("10s")
  • One of (7): object
    • key ("storage.database.migration_timeout")
    • default ("1m")
  • key (string, required)
  • group ("database", required)
  • kind ("duration", required)
  • default (string, required)
  • minimum ("1ms", required)
  • maximum ("24h0m", required)
  • sources (array of string, required, min items 2, max items 2)
  • restart_required (true, required)

Type: object or object

Eleven typed constructed policy/options, twelve from catalog V26. Seven durations are 1ms..24h; session fallbacks also allow zero; admission_timeout is 250ms..30s. TLS is dsn, verify_full or disable policy, never proof of negotiated TLS or security. auto_migrate is ‘true’ or ‘false’: whether the opened store could apply migrations or only verified the schema; GATEWAY_DATABASE_AUTO_MIGRATE overrides it (source environment).

  • All of (1): any
  • All of (2): any
  • All of (3): any
  • All of (4): any
  • All of (5): any
  • All of (6): any
  • All of (7): any
  • All of (8): any
  • All of (9): any
  • All of (10): any
  • All of (11): any
  • All of (12): any
  • One of (1): object
    • value (null)
    • source (null)
  • One of (2): object
    • value (string)
    • source (string)
  • key (string, required, one of "storage.database.max_connection_lifetime", "storage.database.max_connection_idle_time", "storage.database.health_check_period", "storage.database.connect_timeout", "storage.database.acquire_timeout", "storage.database.startup_timeout", "storage.database.migration_timeout", "storage.database.statement_timeout", "storage.database.idle_in_transaction_timeout", "storage.database.tls.mode", "storage.database.auto_migrate", "storage.database.admission_timeout")
  • group ("database", required)
  • value (string or null, required)
  • default (string, required, one of "30m", "5m", "1m", "5s", "2s", "10s", "60s", "dsn", "true")
  • source (string or null, required, one of "default", "yaml", "environment", null)
  • restart_required (true, required)

Type: object or object

  • One of (1): object
    • value (null)
    • source (null)
  • One of (2): object
    • value (string)
    • source (string)
  • value (string or null, required) — Normalized duration from 0s through 24h, with whole-millisecond precision; unavailable is null.
  • source (string or null, required, one of "policy", "connection", null) — Connection includes preexisting DSN, pgx environment or service configuration; it never identifies or exports that private input.

DatabaseUnlimitedDurationParameterDefinition

Section titled “DatabaseUnlimitedDurationParameterDefinition”

Type: object or object

  • One of (1): object
    • key ("storage.database.statement_timeout")
  • One of (2): object
    • key ("storage.database.idle_in_transaction_timeout")
  • key (string, required)
  • group ("database", required)
  • kind ("duration", required)
  • default ("60s", required)
  • minimum ("1ms", required)
  • maximum ("24h0m", required)
  • sources (array of string, required, min items 2, max items 2)
  • restart_required (true, required)
  • zero_is_unlimited (true, required)

Type: object

  • count (integer, required)
  • reprocessed (array of string)
  • purged (array of string)

Type: object

  • ids (array of string, max items 500)
  • all (boolean) — Every dead letter of the queue instead of ids
  • error_class (string, pattern ^[a-z][a-z0-9_]{0,63}$) — With all, only this class
  • limit (integer, default 500, min 1, max 500)
  • confirm (boolean) — Required true for a purge with all

Type: object or object or object or object or object

  • One of (1): object
    • key ("cache_backend.max_entries", required)
    • group ("cache", required)
    • kind ("defaulted_integer", required)
    • default ("256", required)
    • minimum ("1", required)
    • maximum ("256", required)
    • zero_is_default (true, required)
    • sources (array of string, required, min items 3, max items 3)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (2): object
    • key ("cache_backend.max_bytes", required)
    • group ("cache", required)
    • kind ("defaulted_integer", required)
    • default ("33554432", required)
    • minimum ("2048", required)
    • maximum ("33554432", required)
    • zero_is_default (true, required)
    • sources (array of string, required, min items 3, max items 3)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (3): object
    • key ("cache_backend.max_response_bytes", required)
    • group ("cache", required)
    • kind ("defaulted_integer", required)
    • default ("65536", required)
    • minimum ("256", required)
    • maximum ("65536", required)
    • zero_is_default (true, required)
    • sources (array of string, required, min items 3, max items 3)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (4): object
    • key ("cache_backend.max_concurrency", required)
    • group ("cache", required)
    • kind ("defaulted_integer", required)
    • default ("16", required)
    • minimum ("1", required)
    • maximum ("64", required)
    • zero_is_default (true, required)
    • sources (array of string, required, min items 3, max items 3)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (5): object
    • key ("models[].semantic_cache.max_input_chars", required)
    • group ("cache", required)
    • kind ("defaulted_integer", required)
    • default ("2000", required)
    • minimum ("1", required)
    • maximum ("8000", required)
    • zero_is_default (true, required)
    • sources (array of string, required, min items 3, max items 3)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)

Type: object

Bounded decoded boot policy, not live sessions, content or integration health. Unknown factories report paired nulls. No identifiers, endpoints, paths or secret references.

  • key (string, required, one of "realtime.max_session", "realtime.max_sessions_per_key", "realtime.key_session_limits", "realtime.default_max_output_tokens", "vector_stores.max_stores_per_team", "vector_stores.max_documents", "vector_stores.max_bytes", "vector_stores.max_chunks", "vector_stores.chunk_chars", "vector_stores.chunk_overlap", "secret_manager.refresh_seconds", "log_destinations.flush_seconds", "log_destinations.max_batch")
  • group (string, required, one of "realtime", "vector_stores", "secret_manager", "log_destinations")
  • value (string or null, required, max length 32)
  • default (string, required, one of "30m", "100", "0", "4096", "20", "1000", "52428800", "5000", "150", "300", "10", "500")
  • source (string or null, required, one of "default", "yaml", null)
  • restart_required (true, required)

Type: object

  • enabled (boolean, required) — Existing operational flag; policy metadata neither enables the feature nor proves health.
  • settings (array of DomainPolicySetting, required)

Type: object

  • name (string, required)
  • description (string, required)
  • workload_ready (boolean, required)
  • profile (QueueProfile, required)
  • stats (QueueStats, required)

Type: object

The durable_queues boot settings (T056, T183), defaults applied, keyed by queue name as in the YAML; read-only, a configuration rollout changes them. Also served per queue with its counts by GET /queues.

  • poll_interval_ms (integer, required) — durable_queues.poll_interval_ms: how often a replica looks for due jobs.
  • log_delivery (QueueProfile, required)
  • alert_delivery (QueueProfile, required)
  • fx_refresh (QueueProfile, required)

Type: object

  • tags (UsageTagMap)
  • internal_event_id (string, required)
  • request_id (string, required)
  • trace_id (string, required)
  • principal (string, required)
  • key_id (string, required)
  • team (string, required)
  • operation (string, required)
  • model (string, required)
  • provider (string, required)
  • reason (string, required)
  • accepted_at (string (date-time), required)
  • lease_until (string (date-time), required)
  • updated_at (string (date-time), required)
  • finalized_at (string or null (date-time), required)
  • state (string, required, one of "pending", "completed", "indeterminate")
  • status (integer or null (int64), required)
  • duration_ms (integer or null (int64), required)
  • input_tokens (integer or null (int64), required)
  • output_tokens (integer or null (int64), required)
  • quota_reservation_id (string, pattern ^[a-f0-9]{32}$) — single_charge_settlement (T160.001): the quota reservation the request was admitted under; omitted when unlinked (requests admitted with the flag off are never linked).
  • charge_resolution (string, one of "finalized", "decided_elsewhere", "recovered_measurement", "recovered_held") — How the linked reservation was decided - finalized in the receipt’s own transaction; decided_elsewhere when a reconciliation or an earlier settlement had closed it; recovered_measurement or recovered_held when the recovery worker settled it from the recorded measurement or held it as unknown. Omitted while open.

Type: object

  • from (string (date-time), required)
  • to (string (date-time), required)
  • charge_accounting (ChargeAccountingSettings, required)
  • coverage (object, required)
    • events (integer, required, min 0)
    • pending (integer, required, min 0)
    • completed (integer, required, min 0)
    • indeterminate (integer, required, min 0)
  • single_charge (object) — Present only with single_charge_settlement (T160.001). Counts cover the filtered receipts.
    • linked (integer, required, min 0)
    • awaiting_recovery (integer, required, min 0) — Final receipts whose linked reservation is still open; the worker resumes them after the grace.
    • recovered (integer, required, min 0)
    • held (integer, required, min 0)
  • background_responses (object) — Present only with quota_background_responses (T168). Counts cover every tracked background response of the installation, not the filter.
    • pending (integer, required, min 0) — Background responses whose reservation is still open.
    • settled (integer, required, min 0)
    • released (integer, required, min 0) — Ended by the provider with no output and no usage.
    • unknown (integer, required, min 0) — Ended without a measurement the captured rate accepts; held as unknown.
    • expired (integer, required, min 0) — Never observed ending within max_age_seconds; held as unknown.
  • items (array of DurableUsageReceipt, required, max items 50)
  • has_more (boolean, required)
  • next_offset (integer, required, min 0)

Type: object or object or object or object or object

  • One of (1): object
    • key ("server.read_timeout")
    • group ("server")
    • default ("30s")
    • minimum ("5s")
    • maximum ("5m")
    • sources (array of any, min items 3, max items 3)
  • One of (2): object
    • key ("server.read_header_timeout")
    • group ("server")
    • default ("5s")
    • minimum ("1s")
    • maximum ("1m")
    • sources (array of any, min items 2, max items 2)
  • One of (3): object
    • key ("server.idle_timeout")
    • group ("server")
    • default ("1m")
    • minimum ("1s")
    • maximum ("30m")
    • sources (array of any, min items 2, max items 2)
  • One of (4): object
    • key ("lifecycle.drain_delay")
    • group ("lifecycle")
    • default ("2s")
    • minimum ("0s")
    • maximum ("30s")
    • sources (array of any, min items 3, max items 3)
  • One of (5): object
    • key ("lifecycle.shutdown_timeout")
    • group ("lifecycle")
    • default ("2m10s")
    • minimum ("1s")
    • maximum ("5m")
    • sources (array of any, min items 3, max items 3)
  • key (string, required)
  • group (string, required, one of "server", "lifecycle")
  • kind ("duration", required)
  • default (string, required)
  • minimum (string, required)
  • maximum (string, required)
  • sources (array of string, required)
  • restart_required (true, required)

m7gtw[email protected]