Skip to content

API schemas: E

Type: object

  • interval (string, required) — Default30s;1s–1h; whole-millisecond Go duration; empty uses default.
  • timeout (string, required) — Default5s;100ms–1m; whole-millisecond Go duration; empty uses default.
  • stale_after (string, required) — Default90s; at least interval+timeout, at most24h; whole-millisecond Go duration; empty uses default.
  • max_concurrent (integer, required, min 1, max 64)
  • failure_threshold (integer, required, min 1, max 100)
  • success_threshold (integer, required, min 1, max 100)
  • unknown_policy (string, required, one of "deny", "allow")

Type: QuotaSettings and any

Effective bounds with all seven numeric values present, including valid zero alert defaults. Stored configuration keeps its sparse encoding.

Type: object

  • half_open_lease (string, required) — Resolved half-open lease; whole-millisecond Go duration; empty uses default.

Type: object

  • usage_events (integer, min 0) — Request-log rows whose end_user is cleared
  • durable_receipts (integer, min 0) — Finalized receipts whose end_user is cleared
  • content_captures (integer, min 0)
  • eval_captures (integer, min 0)
  • eval_annotations (integer, min 0) — Evaluation scores and review comments attached to those requests
  • client_sources (integer, min 0)
  • customer_records (integer, min 0) — Customer member erasure: member records and override requests deleted
  • alert_events (integer, min 0) — Customer member erasure: alert events whose member was redacted
  • retained_quota_counters (integer, min 0) — Dry run only: budget counters keyed by this end user, kept as financial evidence
  • retained_budget_alerts (integer, min 0) — Dry run only: budget alerts keyed by this end user, kept as financial evidence

Type: object

  • id (string, required, pattern ^eud_[a-f0-9]{32}$)
  • team (string, required)
  • subject (string, one of "end_user", "customer_member")
  • customer_org (string) — The organization of a customer member erasure; the member ID is never returned
  • state (string, required, one of "pending", "held", "waiting_receipts", "settling", "completed") — held: paused by a legal hold; waiting_receipts: receipts inside the 15-minute quiet period or not yet finalized (abandoned after 24 hours); settling: everything found is erased, a final sweep runs after the longest allowed request (stream max_duration or Realtime max_session, plus one minute, at least 15 minutes) to catch requests in flight
  • requested_by (string, required)
  • request_id (string, required)
  • cutoff (string (date-time), required) — Database time of the request; later rows are out of scope
  • created_at (string (date-time), required)
  • updated_at (string (date-time), required)
  • completed_at (string or null (date-time), required)
  • counts (EndUserDeletionCounts, required)
  • deferred_receipts (integer, required, min 0)
  • attempts (integer, required, min 0)
  • last_error (string, one of "", "batch_failed")

Type: object

  • scope ("users", required)
  • from (string (date-time), required)
  • to (string (date-time), required)
  • query (string, required)
  • engine (string, required, one of "database", "analytics_store")
  • data (array of object, required, max items 200)
    • team_id (string, required)
    • end_user (string, required)
    • declared (true, required) — The end user is what the client declared, never authenticated
    • first_at (string (date-time), required)
    • last_at (string (date-time), required)
    • traces (integer, required)
    • sessions (integer, required)
    • requests (integer, required)
    • errors (integer, required) — Traces in error
    • cost_state (string, one of "known", "partial", "unknown", "none")
    • cost_usd (string)
    • tokens (integer)
    • evaluations (RowEvaluations)
  • has_more (boolean, required)
  • next_cursor (string)
  • valuation_shown (boolean, required)
  • evaluations_shown (boolean, required)
  • evaluations_truncated (boolean)
  • evaluations_unavailable (boolean)
  • evaluation_filter_truncated (boolean)
  • totals (ListTotals)

Type: object

  • version (integer, required, min 0)
  • license (object, required)
    • status (string, required, one of "absent", "valid", "expired", "not_yet_valid", "disabled", "unavailable", "activation_required", "clock_rollback")
    • source (string or null, required, one of "default", "yaml", "console", null)
    • fingerprint (string, pattern ^[a-f0-9]{64}$)
    • license_id (string, pattern ^[A-Za-z0-9_-]{1,128}$)
    • expires_at (integer or null, required, min 1, max 253402300799)
    • enterprise_available (boolean, required)
    • kind (string, one of "trial")
    • activated_at (integer, min 1, max 253402300799)
    • configuration_read_only (boolean) — Terminal trial availability; classified writes remain denied while existing inference continues

Type: object

  • feature_catalog (array of FeaturePlanDefinition, max items 512) — Complete applicability metadata; only tenant IDs may appear in rights. The four legacy rights retain their existing profile unless feature_plan_entitlements is enabled.
  • base_fingerprint (string, required, pattern ^[a-f0-9]{64}$)
  • rights (array of string, required)
  • plans (array of EntitlementPlanView, required, max items 100)
  • team_bindings (array of TeamEntitlementView, required, max items 5000)
  • organization_bindings (array of OrganizationEntitlementView, max items 5000) — Optional additional organization ceilings, visible only with organization_plan_entitlements. Missing means no organization binding; it never supplies a team entitlement.

Type: object

  • id (string, required, pattern ^[a-z][a-z0-9_-]{0,63}$)
  • name (string, required, min length 1, max length 120)
  • rights (array or null, max items 105) — Omitted, null or empty grants no rights
  • disabled (boolean, default false)

Type: object

  • id (string, required, pattern ^[a-z][a-z0-9_-]{0,63}$)
  • name (string, required, min length 1, max length 120)
  • rights (array or null, required, max items 105) — Omitted, null or empty grants no rights
  • disabled (boolean, required, default false)
  • version (integer (int64), required, min 0)
  • source (string, required, one of "yaml", "console", "none")

Type: object or object or object or object

  • One of (1): object
    • key ("keys[].kind", required)
    • group ("identity", required)
    • kind ("schema_enum", required)
    • default (null, required)
    • values (["virtual","service_account"], required)
    • presence ("required", required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (2): object
    • key ("keys[].owner.kind", required)
    • group ("identity", required)
    • kind ("schema_enum", required)
    • default (null, required)
    • values (["user","workload"], required)
    • presence ("required", required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (3): object
    • key ("mcp_servers[].transport", required)
    • group ("mcp", required)
    • kind ("schema_enum", required)
    • default (null, required)
    • values (["streamable_http"], required)
    • presence ("required", required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (4): object
    • key ("prompts[].schema_profile", required)
    • group ("prompts", required)
    • kind ("schema_enum", required)
    • default (null, required)
    • values (["flat_strings_v1"], required)
    • presence ("required", required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)

Type: object or object or object or object

  • One of (1): object
    • key ("keys[].kind", required)
    • group ("identity", required)
    • kind ("schema_enum", required)
    • default (null, required)
    • values (["virtual","service_account"], required)
    • presence ("required", required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (2): object
    • key ("keys[].owner.kind", required)
    • group ("identity", required)
    • kind ("schema_enum", required)
    • default (null, required)
    • values (["user","workload"], required)
    • presence ("required", required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (3): object
    • key ("mcp_servers[].transport", required)
    • group ("mcp", required)
    • kind ("schema_enum", required)
    • default (null, required)
    • values (["streamable_http"], required)
    • presence ("required", required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • One of (4): object
    • key ("prompts[].schema_profile", required)
    • group ("prompts", required)
    • kind ("schema_enum", required)
    • default (null, required)
    • values (["flat_strings_v1","json_schema_v1"], required)
    • presence ("required", required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)

Type: object

  • error (object, required)
    • code (string, required)
    • message (string, required)

Type: object

  • id (string)
  • team_id (string)
  • name (string)
  • description (string)
  • input_schema (object)
  • expected_schema (object)
  • item_count (integer)
  • created_at (string (date-time))

Type: object

  • id (string)
  • dataset_id (string)
  • input (any) — Any JSON value
  • expected_output (any) — Any JSON value
  • metadata (object)
  • valid_from (string (date-time))

Type: object

  • page (integer)
  • limit (integer)
  • total_items (integer)
  • total_pages (integer)

Type: object

  • team_id (string) — On create; a suite’s team never changes
  • name (string, required, min length 1, max length 120)
  • description (string, max length 1000)
  • dataset_id (string) — On create; a dataset of the team
  • model (string, required) — An enabled chat alias
  • prompt_id (string)
  • prompt_revision (integer, min 1, max 100)
  • judge_model (string) — The chat alias that judges sentence assertions
  • assertions (array of object, required, min items 1, max items 20)
    • name (string, required, min length 1, max length 80)
    • evaluator_id (string)
    • text (string, max length 1000)
  • runs_per_item (integer, default 1, min 1, max 5)
  • pass_threshold (integer, min 1, max 5)
  • min_pass_rate (number, default 1, min 0, max 1)

Type: object

  • name (string, required)
  • source (string, required)
  • pass (integer, required)
  • fail (integer, required)
  • none (integer, required)
  • total (integer, required)
  • mean (number)
  • labels (array of object, max items 12)
    • value (string, required)
    • count (integer, required)

Type: object

A stored evaluation result (T186.003): a score with what it judged, its verdict, typed value, run status, producer and the judged traffic’s identity.

  • id (string)
  • team_id (string)
  • name (string)
  • data_type (string)
  • metric_type (string, one of "boolean", "score", "categorical", "json", "text")
  • value (number)
  • string_value (string)
  • value_json (any)
  • comment (string)
  • source (string, one of "llm", "code", "human", "api", "feedback", "eval", "annotation")
  • target_type (string)
  • target_id (string)
  • run_id (string)
  • config_id (string)
  • metadata (object)
  • scope (string, one of "span", "trace", "session", "run_item", "run")
  • trace_id (string)
  • span_id (string)
  • request_id (string)
  • session_id (string)
  • assessment (string, one of "pass", "fail", "none")
  • status (string, one of "ok", "error", "skipped", "pending")
  • status_reason (string)
  • error (object)
  • evaluator_id (string)
  • evaluator_version (integer)
  • judge_trace_id (string, pattern ^[0-9a-f]{32}$) — evaluation_tracing (T186.004): the trace of the judge run that produced the result. Its root is the judge span, whose span ID is the first 16 characters of this ID. Omitted with the flag off, for a team whose plan lacks it, and on results no traced judge produced.
  • judge_request_id (string) — The judge request that produced the verdict; for an error result of a traced run, the last request the judge tried.
  • judge_cost_usd (string) — evaluation_tracing: the exact known cost of every model call the judge run made (retries included), read from the ledger. Absent when unknown: unknown is never zero. Shown to readers who may see costs (usage_valuation and analytics:read).
  • judge_cost_state (string, one of "known", "partial", "unknown") — known: every judge request is valued; partial: some amount is known; unknown: none is.
  • submitter (string)
  • join_key (string)
  • origin (string, one of "app", "experiment")
  • model (string)
  • key_id (string)
  • principal (string)
  • organization_id (string)
  • valid (boolean)
  • revision (integer)
  • edited (boolean)
  • updated_at (string (date-time))
  • updated_by (string)
  • assessment_backfilled (boolean) — The assessment was derived by the migration of an older score.
  • created_by (string)
  • created_at (string (date-time))
  • redacted_reason (string)
  • reasoning (string)
  • reasoning_state (string, one of "shown", "reader_grant_required", "expired", "stored")

Type: object

One result (T186.003). Exactly one target: target, span_id with trace_id, trace_id, session_id, request_id or join_key. Without evaluation_results only id, name, data_type, value, string_value, comment, metadata and target (request, session, run_item, run) are accepted.

  • id (string, max length 128)
  • name (string, required, max length 80)
  • data_type (string, one of "numeric", "boolean", "categorical", "text", "correction", "json")
  • metric_type (string, one of "boolean", "score", "categorical", "json", "text")
  • value (number)
  • string_value (string, max length 2000)
  • value_json (any) — A JSON value up to 8 KiB (metric_type json).
  • comment (string, max length 2000)
  • metadata (object)
  • target (object)
    • type (string, required, one of "request", "session", "run_item", "run", "span", "trace") — span ids are <trace_id>/<span_id>
    • id (string, required)
  • trace_id (string, pattern ^[0-9a-fA-F]{32}$)
  • span_id (string, pattern ^[0-9a-fA-F]{16}$)
  • session_id (string)
  • request_id (string)
  • join_key (string, max length 200) — Matches every request of the key’s team (up to the 100 newest) that carried this X-Gateway-Feedback-Key, one result on each (a batch-shaped answer when several); only when none did, a request tagged with the usage tag feedback_key (compatibility).
  • assessment (string, one of "pass", "fail", "none")
  • status (string, one of "ok", "error", "skipped")
  • status_reason (string, pattern ^[a-z][a-z0-9_]{0,63}$)
  • error (object)
    • type (string, required)
    • message (string, required, max length 1000)
  • source (string, one of "api", "feedback", "human") — Keys write api (default) or feedback; the console writes human.
  • submitter (string, max length 200) — Required with source feedback.
  • evaluator_id (string)
  • evaluator_version (integer)
  • reasoning (string, max length 8000) — Stored encrypted; shown only to content readers.

Type: object

  • evaluation (object, required) — The evaluation block as the gateway applies it.
    • trace_idle (string, required, default "3m0s") — 5s to 24h a trace stays without a new span before a trace evaluator judges it; an evaluator may override it (trace_idle_seconds).
    • session_idle (string, required, default "30m0s") — 5s to 24h the same wait for a session evaluator; an evaluator may override it (session_idle_seconds).
    • span_delay (string, required, default "5s") — 0 to 5m before a span evaluator judges a span, so the request’s captured content is stored first.
    • worker_concurrency (integer, required, default 4, min 1, max 64) — Judge runs one replica makes at a time.
    • test_max_targets (integer, required, default 10, min 1, max 50) — Targets of one automatic test.
    • max_variable_bytes (integer, required, default 65536, min 1024, max 1048576) — Bytes of one variable of a judge prompt; a longer value skips the run with content_truncated.
    • job_retention_days (integer, required, default 30, min 1, max 365) — Days finished evaluation jobs are kept.
    • max_run_targets (integer, default 1000, min 1, max 1000) — T186.009: targets of one on-demand run.
    • evaluators (array of EvaluatorDeclaration, max items 200) — T186.009: the evaluators declared in evaluation.evaluators that this session may read (the same ones the evaluator list answers for it). They are read-only in the API and the console (409 managed_by_configuration).
    • code (object) — T186.009 (code_evaluators): the limits of one run of a code evaluator.
      • timeout_ms (integer, default 500, min 50, max 10000)
      • memory_pages (integer, default 256, min 64, max 4096)
      • heap_bytes (integer, default 8388608, min 1048576, max 134217728)
      • max_program_bytes (integer, default 16384, min 1024, max 262144)
      • max_input_bytes (integer, default 262144, min 4096, max 4194304)
      • max_result_bytes (integer, default 16384, min 1024, max 262144)
      • team_concurrency (integer, default 2, min 1, max 64)
    • remote_experiments (object) — T186.012b (remote_experiments): the bounds of remote experiments and the outbound policy of their endpoints, with defaults applied.
      • timeout_ms (integer, default 30000, min 1000, max 600000)
      • max_timeout_ms (integer, default 120000, min 1000, max 600000)
      • max_retries (integer, default 2, min 0, max 10)
      • max_concurrency (integer, default 8, min 1, max 64)
      • max_batch_items (integer, default 20, min 1, max 100)
      • callback_wait (string, default "10m0s")
      • allowed_private_cidrs (array of string, max items 64)
      • allow_loopback_http (boolean, default false)
    • metrics (object, required) — The label bounds of the evaluation series.
      • max_evaluations (integer, min 1, max 2000) — Evaluation names a replica gives their own label value; any further name is evaluation=“other”. Default 200.
      • max_value_labels (integer, min 0, max 64) — The most labels a boolean or categorical evaluation may have and still carry the value label; 0 never adds it. Default 32.
      • team_label (boolean) — Adds the team label to the evaluation series. Default false.
      • max_teams (integer, min 1, max 500) — Team label values with team_label; any further team is team=“other”. Default 50.
    • monitors (object, required) — The monitor scheduler and the monitors declared in YAML.
      • tick (string) — How often each replica looks for due monitors, 5s to 5m. Default 30s.
      • max_per_team (integer, min 1, max 200) — Monitors one team keeps, YAML and stored together. Default 50.
      • backtest_days (integer, min 1, max 7) — Days a backtest replays. Default 7.
      • console_url (string) — The public address of the console, for the link an alert carries; empty when not set.
      • items (array of Monitor) — The monitors declared in YAML that the session may see.
  • seconds (object, required) — trace_idle, session_idle and span_delay in seconds
    • any other key: integer
  • sources (object, required)
    • any other key: string
  • features (object, required) — evaluators, code_evaluators, evaluation_metrics and evaluation_monitors, each on or off
    • any other key: boolean
  • applies (string, required, one of "restart")

Type: object

T186.009: one evaluator declared in evaluation.evaluators, applied when the gateway starts. A changed definition is a new published version (source yaml); one removed from the list, or no longer valid, is disabled.

  • id (string, required, pattern ^[A-Za-z0-9_-]{1,64}$) — The evaluator’s ID, unique in the list.
  • team_id (string, required) — The team that owns the evaluator.
  • name (string, required) — The evaluator’s name, unique in the team; results and metrics are named after it.
  • description (string)
  • judge_model (string) — The judge route of an LLM judge or a decision model; exactly one of judge_model and code.
  • prompt (string) — The judge’s prompt, with variables.
  • code (string) — A code evaluator’s JavaScript (function evaluate(data)); needs code_evaluators in the team’s plan.
  • output (object, required) — The output, as EvaluatorDefinition.output.
  • scope (string, one of "span", "trace", "session", default "span")
  • filter (string) — The query-language filter; a judge evaluator needs one.
  • sample_rate (number, default 1, max 1, greater than 0)
  • runs_on (string, one of "live", "experiments", "both", default "live")
  • status (string, one of "active", "paused", "disabled", default "active")

Type: object

An evaluator’s definition with what evaluators (T186.008) adds to it. The fields of before (name, judge_model, prompt, output, variables, messages, rule, multimodal, include_reasoning) keep their meaning; a prompt may also read its target by path: {{span.<field>}} (name, kind, subkind, status, origin, model, provider, provider_model, request_id, trace_id, span_id, parent_span_id, session_id, error_code, duration_ms, started_at, http_status, input_tokens, output_tokens, cost_usd, attributes.<name>, tags.<name>), {{trace.id|spans|errors|duration_ms}} and {{metadata.<tag>}} for span and trace evaluators (never in an experiment run, which judges dataset items), {{spans[].<field>}}, {{spans[kind:<kind>].<field>}} and {{spans[<index>].<field>}} for trace evaluators, {{session.id|turns|transcript}} and {{session.traces[|<index>].input|output|request_id}} for session evaluators.

  • team_id (string, required)
  • name (string, min length 1, max length 80) — Also the name of the results and of the evaluation.<name> query field; unique in the team
  • description (string, max length 500)
  • judge_model (string) — A chat or decision alias of the gateway the team may call: a judge always goes through routing, quota and the ledger
  • prompt (string)
  • output (object) — data_type boolean, numeric (min, max) or categorical (categories), pass criteria (pass: op and value, or labels); for a decision model also question (up to 1000 characters, what it asks) and options (category -> up to 300 characters of what it covers) (T186.009)
  • variables (object)
  • messages (array of object)
  • rule (object)
  • code (string, max length 262144) — T186.009 (code_evaluators): the JavaScript source of function evaluate(data), up to evaluation.code.max_program_bytes (16 KiB by default), compiled when saved. A code evaluator has no judge_model, prompt, rule, variables, messages, multimodal or include_reasoning, and no temperature, max_tokens or cost ceiling; its output is boolean, numeric (min below max) or categorical. data is the span ({scope, trace_id, span_id, request_id, session_id, span, input, input_text, output, expected, metadata}), the trace ({scope, trace_id, session_id, root, spans[], input, input_text, output}), the session ({scope, session_id, traces[{request_id, input, input_text, output}], input, input_text, output}) or, in an experiment, the item ({scope: item, input, input_text, output, expected, metadata}); a span holds the fields of the path variables plus attributes and tags. Captured content (input, output) is read only when the source names it and the capture holds it. evaluate returns a boolean, a number, a category, null (skipped code_no_result) or {value, assessment, reasoning, metadata}; anything else is an error result code_invalid_result, and a run past its limits code_timeout, code_memory_limit or code_output_limit; a throw is code_error. Built-ins similarity, jsonPath, countTokensApprox and console.log: GET /api/v1/admin/evals/code-builtins.
  • multimodal (boolean)
  • include_reasoning (boolean)
  • type (string, one of "llm_judge", "decision", "rule", "code", read-only) — Computed: code when code is set (T186.009), rule when rule is set, decision for a decision alias, else llm_judge
  • scope (string, one of "span", "trace", "session", default "span") — What one run judges. A rule evaluator’s scope is span.
  • filter (string, max length 4096) — A query of the query language: of spans for a span evaluator, of traces for a trace or session evaluator (a session is in scope when one of its traces matches). Evaluation and text terms are not available, and a span evaluator takes no child. or parent. term. Lists take up to 64 values and a filter up to 256 terms. Required before publishing an evaluator that calls a model.
  • sample_rate (number, default 1, max 1, greater than 0) — Share of the matching targets judged: a keyed hash of the target per evaluator version, the same on every replica
  • runs_on (string, one of "live", "experiments", "both", default "live") — live judges client traffic (origin app), experiments the traffic of experiment runs, both either. Judge runs, tests, replays, helper calls and shadow copies are never judged.
  • tracing (boolean, default true) — Store a judge span for each run; false keeps the result, its judge request and the ledger line
  • temperature (number, min 0, max 2) — LLM judges; 0 when omitted
  • max_tokens (integer, min 16, max 8192) — LLM judges; 600 when omitted
  • max_daily_cost_usd (string, pattern ^[0-9]{1,7}(\\.[0-9]{1,6})?$) — Ceiling of the evaluator’s own judge spend per UTC day, from the ledger: once reached, runs are skipped with judge_budget_refused and the evaluator pauses with cost_ceiling_reached
  • trace_idle_seconds (integer, min 5, max 86400) — Trace evaluators: overrides evaluation.trace_idle
  • session_idle_seconds (integer, min 5, max 86400) — Session evaluators: overrides evaluation.session_idle

Type: object

What an evaluator’s filter selects and what running it costs (T186.008).

  • scope (string, required, one of "span", "trace", "session")
  • filter (string, required)
  • unit (string, required, one of "spans", "traces", "sessions")
  • matches (object, required) — 24h and 7d
    • any other key: integer
  • matching_traces (object) — Session scope: the matching traces behind the sessions
    • any other key: integer
  • sampled_weekly (integer, required)
  • captured_7d (integer)
  • truncated (boolean)
  • targets (array of object, required, max items 10)
  • query_scope (string, required, one of "spans", "traces")
  • matching_query (string, required)
  • warnings (array of string, required)
  • cost (object)
    • basis (string, required, one of "measured", "estimated", "none", "unknown")
    • per_run_usd (string)
    • weekly_usd (string)
    • input_tokens_per_run (integer)
    • output_tokens_per_run (integer)
    • input_per_million_usd (number)
    • output_per_million_usd (number)
    • measured_runs (integer)

Type: EvaluatorDefinition and object

An evaluator with its state (T186.008).

  • All of (1): EvaluatorDefinition
  • All of (2): object
    • id (string, required)
    • version (integer, required) — The latest version
    • created_at (string (date-time))
    • status (string, required, one of "draft", "active", "paused", "disabled")
    • paused_reason (string)
    • published_version (integer) — The version live traffic runs
    • managed_by (string, one of "console", "yaml")
    • updated_at (string (date-time))
    • updated_by (string)
    • draft_ahead (boolean)
    • effective_idle_seconds (integer)

Type: object

One saved definition of an evaluator (T186.008).

  • version (integer, required)
  • source (string, required, one of "save", "restore", "migration", "recovered_from_run", "rule_fold")
  • note (string)
  • restored_from (integer)
  • created_by (string, required)
  • created_at (string (date-time), required)
  • published (boolean, required)
  • published_at (string (date-time))
  • published_by (string)
  • spec (object) — The definition, without identity or state
  • spec_text (string) — The readable spec

Type: object

  • enabled (boolean, required)
  • ttl (string, required) — Go duration 1s–5m. Only embeddings/moderations with a single target and X-Gateway-Cache: allow can reuse an exact response.

Type: object

  • backend (string, one of "memory", "redis", "memcached")
  • capacity_strategy (string, one of "lru", "fixed_slots")
  • usage_known (boolean) — False for shared backends; occupancy is unknown, not zero
  • available (boolean)
  • scope (string, required, one of "process", "shared")
  • process_instance_id (string, required)
  • observed_at (string (date-time), required)
  • entries (integer, required, min -1) — Minus one means shared occupancy is unknown
  • accounted_bytes (integer, required, min -1) — Minus one means shared occupancy is unknown
  • max_bytes (integer, required, min 0)
  • max_entries (integer, required, min 0)
  • max_response_bytes (integer, required, min 0)
  • counters (object, required)
    • hits (integer, min 0)
    • misses (integer, min 0)
    • stores (integer, min 0)
    • evictions (integer, min 0)
    • expired (integer, min 0)
    • purges (integer, min 0)
    • resets (integer, min 0)
  • policies (array of object, required)
    • alias (string)
    • enabled (boolean)
    • ttl_ms (integer)

Type: object

extensions.http, the bounds of the http_call host function. Where it may reach (allow_loopback_http, allowed_private_cidrs) is boot trust and is not served.

  • max_calls (integer, required) — extensions.http.max_calls (default 4): http_call uses per execution.
  • timeout_ms (integer, required) — extensions.http.timeout_ms (default 2000): one outbound call.
  • max_response_bytes (integer, required) — extensions.http.max_response_bytes (default 256 KiB): one answer read.

Type: object

The extension inventory (T058). data holds every plugin with its versions and bindings; the other keys are described in the operation.

  • data (array of object, required)
  • trusted_keys (array of object, required) — One identifier and fingerprint per configured signing key; the keys themselves are boot trust and are not served.
    • any other key: string
  • extensions (ExtensionsConfig, required)
  • counters (object, required) — Outcome counters of this replica
    • any other key: integer
  • abi (string, required)
  • host_functions (array of string, required)
  • features (object, required)
    • any other key: boolean
  • javascript_runtime (object) — Present with extension_javascript: source, sha256 and license of the pinned QuickJS runtime.

Type: object

Canonical plugin manifest; lists sorted and unique. Every field is signed.

  • id (string, required, pattern ^[a-z][a-z0-9-]{1,63}$)
  • version (string, required, pattern ^(0|[1-9][0-9]{0,5})\.(0|[1-9][0-9]{0,5})\.(0|[1-9][0-9]{0,5})$)
  • name (string, required, min length 1, max length 120)
  • description (string, max length 500)
  • kind (string, required, one of "guardrail")
  • runtime (string, one of "javascript") — Omitted for a WebAssembly module; javascript for JavaScript source run by the pinned QuickJS engine (T058.001), which needs limits.memory_pages of at least 32
  • abi (string, required, one of "aigw-ext-v1")
  • host_functions (array of string, required, max items 4)
  • egress (array of string, required, max items 16)
  • secrets (array of string, required, max items 16)
  • limits (object, required)
    • memory_pages (integer, required, min 1, max 65536) — 64 KiB pages; capped by extensions.max_memory_pages
    • timeout_ms (integer, required, min 1, max 60000) — capped by extensions.max_timeout_ms
    • max_output_bytes (integer, required, min 1, max 16777216) — capped by extensions.max_output_bytes
    • max_http_calls (integer, min 0, max 64) — capped by extensions.http.max_calls

Type: object

The extensions boot settings (T058), effective and read-only; every value is a ceiling a plugin manifest may only lower. trusted_keys, http.allow_loopback_http and http.allowed_private_cidrs are boot trust and are not served.

  • max_module_bytes (integer, required) — extensions.max_module_bytes (default 16 MiB): an uploaded module.
  • max_memory_pages (integer, required) — extensions.max_memory_pages (default 1024): a plugin’s linear memory in 64 KiB pages.
  • max_timeout_ms (integer, required) — extensions.max_timeout_ms (default 1000): one call; interrupted at its deadline.
  • max_input_bytes (integer, required) — extensions.max_input_bytes (default 1 MiB): what enters the sandbox.
  • max_output_bytes (integer, required) — extensions.max_output_bytes (default 1 MiB): what leaves the sandbox.
  • max_concurrency (integer, required) — extensions.max_concurrency (default 32): calls one replica runs at once; past it a call is refused and counted, never queued.
  • team_max_concurrency (integer, required) — extensions.team_max_concurrency (default 4): the same per team.
  • audit_retention_days (integer, required) — extensions.audit_retention_days (default 30): execution records are pruned after this.
  • http (ExtensionHTTPConfig, required)
  • code_mode (CodeModeConfig, required)

Type: object

Detached Ed25519 signature (base64) over “ai-gateway extension signature v1\n” followed by the hex SHA-256 of {“manifest”: <canonical manifest>, “module_sha256”: <hex>}; made offline with cmd/extsign by a key listed in extensions.trusted_keys.

  • key_id (string, required, pattern ^[a-z0-9][a-z0-9._-]{0,63}$)
  • value (string, required)

Type: object

Exactly one payload: module_base64 for a WebAssembly manifest, source for a manifest with runtime javascript.

  • manifest (ExtensionManifest, required)
  • module_base64 (string) — The WebAssembly module, base64; at most extensions.max_module_bytes decoded
  • source (string) — The JavaScript source as UTF-8 text, without NUL; at most extensions.max_module_bytes. It defines function guardrail(request) returning a verdict object
  • signature (ExtensionSignature)
  • activate (boolean) — Administrator upload only: also activate the version
  • team_id (string, max length 128) — Submissions only - the administered team that owns the plugin
  • notes (string, max length 500)

Type: object

  • source (string, required)
  • source_url (string, required) — Original catalog endpoint; does not authorize egress or routing.
  • fetched_at (string (date-time), required)
  • stale (boolean, required) — True only when an expired successful snapshot is served after refresh failure.
  • models (array of object, required)
    • id (string, required)
    • name (string, required)
    • source (string, required)
    • provider (string)
    • mode (string)
    • context_length (integer)
    • input_modalities (array of string)
    • output_modalities (array of string)
    • tags (array of string)
    • parameters (array of string)
    • pricing (any) — Unmodified published pricing in the source’s own units.
    • metadata (any) — Allowlisted published advisory metadata.
    • active (boolean)
    • deprecated (boolean or number or string or null)
    • shutdown_date (string)
    • expiration_date (string) — Provider-published expiration; absence is not a promise of continued availability.
    • replaced_by (string) — Published successor ID; never retargets an alias.

m7gtwcontact@m7gtw.com