API schemas: A
AccessGroup
Section titled “AccessGroup”Type: object
At least one model or MCP server is required.
id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)name(string, required, min length 2, max length 128)description(string, max length 512)models(array of string, max items 100) — Existing model aliases; no wildcard and no nested groupmcp_servers(array of string, max items 100) — Registry server IDs the group grants. A server takes part only when its own scopes require group:<id>, so team scopes and boot execution trust still apply; a team policy must also reference the group.mcp_tools(array of string, max items 200) — Optional toolset as server/tool for listed servers. Only narrows: a server with a toolset exposes and runs only those tools, still intersected with boot execution grants.disabled(boolean) — A disabled group grants nothing to its references
ActiveResilienceParameterDefinition
Section titled “ActiveResilienceParameterDefinition”Type: object
key("resiliency", required)group("resilience", required)kind("active_resilience", required)fields([{"key":"state_timeout","kind":"duration","default":"2s","minimum":"100ms","maximum":"1m"},{"key":"state_retention","kind":"duration","default":"24h","minimum":"10m","maximum":"720h"},{"key":"health_checks.interval","kind":"duration","default":"30s","minimum":"1s","maximum":"1h"},{"key":"health_checks.timeout","kind":"duration","default":"5s","minimum":"100ms","maximum":"1m"},{"key":"health_checks.stale_after","kind":"duration","default":"90s","minimum":"1s","maximum":"24h"},{"key":"health_checks.max_concurrent","kind":"integer","default":"4","minimum":"1","maximum":"64"},{"key":"health_checks.failure_threshold","kind":"integer","default":"2","minimum":"1","maximum":"100"},{"key":"health_checks.success_threshold","kind":"integer","default":"1","minimum":"1","maximum":"100"},{"key":"health_checks.unknown_policy","kind":"enum","default":"deny","values":["deny","allow"]},{"key":"shared_circuit.half_open_lease","kind":"duration","default":"30s","minimum":"1s","maximum":"10m"}], required)sources(["yaml","console"], required)restart_required(false, required)yaml_requires_restart(true, required)
AdaptiveAliasStatus
Section titled “AdaptiveAliasStatus”Type: object
alias(string, required)history(integer, required)failure_threshold(integer, required)cooldown(string, required)decisions(integer, required, min 0)targets(array of object, required)index(integer, required)provider_id(string, required)model_id(string, required)outcomes(integer, required, min 0)failures(integer, required, min 0)failure_share(number, required, min 0, max 1)consecutive_failures(integer, required, min 0)cooling_until(string or null (date-time), required)keys_exhausted(boolean, required) — Every key of the provider’s credential pool coolingin_flight(integer, required, min 0)header_latency_ms(number or null, required)selected(integer, required, min 0)recovery_trial_until(string or null (date-time), required)
recent_decisions(array of object, required, max items 64) — Newest firstat(string (date-time), required)target(integer, required)reason(string, required, one of"best_health","unobserved","recovery_trial","all_cooling")eligible(integer, required)cooling(integer, required)
AdaptiveRoutingPolicy
Section titled “AdaptiveRoutingPolicy”Type: object
Process-local passive provider/key health ordering (adaptive_routing) for Chat, embeddings, moderations or rerank aliases with two or more targets. Excludes target weights, latency_routing, auto_route and routing strategies other than ordered; validated even when the flag is off. Never sends a request of its own.
history(integer, required, min 10, max 1000) — Outcomes kept per targetfailure_threshold(integer, required, min 1, max 100) — Consecutive failures (transport, 401, 403, 408, 429, 5xx) before cooldowncooldown(string, required) — Go duration from 1s through 10m; afterwards one real request may try the target
AdminConfig
Section titled “AdminConfig”Type: object
prompt_author_teams(array of string, max items 20) — Current admitted team IDs for scoped draft creation. IDs are advisory and grant neither content nor team-inventory access; every write revalidates live authority.custom_role_id(CustomRoleID)custom_permissions(array of CustomRolePermission, max items 64) — Ceiling metadata only; actual team, route, flag and plan rights remain cumulative.parameter_catalog(ParameterCatalog) — Public compiled schema metadata for restricted roles; no applied infrastructure values.key_policy_view(KeyApplicablePolicy)key_metadata_access(KeyFeatureAccess)scheduled_rotation_access(KeyFeatureAccess)provider_credential_access(ProviderCredentialAccess)provider_network_access(ProviderNetworkAccess)resilience_access(ResilienceAccess)target_health_access(TargetHealthAccess)passthrough_access(PassthroughAccess)infrastructure(InfrastructureSnapshot)version(integer (int64), required)admin_role(string, required, one of"admin","viewer","team_viewer","team_admin","operator","user")permissions(array of string, required) — Explicit resource action grants; unknown actions are deniedadmin_user_id(string, required) — Named user ID; empty for bootstrap credentialsviewer_team_ids(array of string, required) — Active memberships for scoped roles; empty for global rolesadmin_team_ids(array of string) — Teams where this session may manage keys (team_admin). Under membership_roles only admin memberships.can_manage(boolean, required) — Whether this session can manage global control-plane resourcescan_manage_keys(boolean, required) — Whether this session can create, revoke and delete keys in its authorized teamsdocs_site_url(string, max length 2048) — Root of the separately published documentation site (ADR 0218): docs_site.url, or /docs/ when the gateway serves an operator build from docs_site.dir; empty when there is none. Documentation links are this root plus a page path. The console links its Documentation item there and hides it when empty.durable_queues(DurableQueuesSettings)provider_metrics(ProviderMetricsSettings)provider_request_labels(ProviderRequestLabelsSettings)local_inference(object) — T203: whether the Local inference screen shows, the five flags, the number of pools and whether this gateway may start model servers. The pools and replicas come from GET /api/v1/admin/local-inference.enabled(boolean)flags(object)- any other key: boolean
pools(integer)supervise(boolean)
client_source_metadata(ClientSourceMetadataSettings)provider_errors(ProviderErrorRedactionSettings)mcp_execution(MCPExecutionView)feature_access(object or null) — Scoped-session visibility ceiling from own-team/organization plans when feature_plan_entitlements is enabled. Operational features remain unchanged; the union is not an authorization grant for a selected team.- any other key: boolean
features(object, required)- any other key: boolean
inference_capability_flags(object, required) — Canonical capability to operational flag mapping. Missing or false flags deny that operation.- any other key: string
rate_policies(array of RatePolicy, required)rate_policy_access(RatePolicyAccess)target_condition_access(TargetConditionAccess)system_prompt_access(SystemPromptAccess)quota_policy_access(QuotaPolicyAccess or QuotaPolicyAccessV2 or QuotaPolicyAccessV3 or QuotaPolicyAccessV4)- One of (1): QuotaPolicyAccess
- One of (2): QuotaPolicyAccessV2
- One of (3): QuotaPolicyAccessV3
- One of (4): QuotaPolicyAccessV4
price_book(array of ManualPrice, required) — Operator-reviewed advisory USD rates for exact provider connection and upstream model; empty when manual_price_catalog is disabled or the session is team-scoped. Never implies actual spend.feature_catalog(array of object, required)id(string, required)group(string, required)description(string, required)enabled(boolean, required)base_enabled(boolean, required)source(string, required, one of"default","yaml","console")runtime_mutable(boolean, required)
keys(array of object, required) — Key metadata only when api_access_catalog is enabled; empty array otherwise. No hashes or bearer values.id(string, required)expires_at(string (date-time)) — Declarative absolute expiry only; omission means Never. No boot-relative TTL.principal(string, required)team(string, required)kind(string, required, one of"virtual","service_account")allowed_models(array of string, required)scopes(array of string, required)allowed_source_cidrs(SourceCIDRList)source_cidr_version(0) — YAML source policy is read-only.
providers(array of object, required)network_policy(ProviderNetworkFacts)network(ProviderNetworkProfile or null) — V21 authorized writers only; selected refs, never resolved material.- One of (1): ProviderNetworkProfile
- One of (2): null
network_references(ProviderNetworkReferences)network_proxy_pools(array of string, max items 32) — Writers only: proxy pools this provider may require (its YAML pool and pools that list it under providers).id(string, required)protocol(string, required)base_url(string (uri), required)api_version(string)preset(string) — The provider preset the YAML names (GET /provider-presets); absent when noneheaders(object) — Fixed provider headers; never credentials- any other key: string
forward_client_headers(array of string) — Client headers forwarded to this provider (T130); absent when nonehttp_version(string) — Declared HTTP version policy (empty means auto)effective_http(string, one of"http1","http2") — HTTP version actually used after auto resolutionmetrics_path(string) — T195: the path of the model server’s own metrics scraped on this connection’s host; absent when not scrapedmetrics_credential(boolean) — T195: whether the connection’s bearer secret is sent with the scrape; present with metrics_pathmetrics_scrape(object) — T195: the answering replica’s last scrape of this connection, present with metrics_path while provider_metrics_scrape is on and at least one scrape ran. Each replica scrapes on its own.provider_id(string)up(boolean) — The last scrape succeeded; false drops the connection’s series from /metricsreason(string, one of"transport","timeout","status","too_large","redirect","credential","invalid_answer","empty_answer") — Why the last scrape failed; absent while upseries(integer, min 0) — Series kept from the last scrapedropped_series_total(integer (int64), min 0) — Series left out for a bound since the process startedscrapes_total(integer (int64), min 0)failed_scrapes_total(integer (int64), min 0)last_scrape_at(string (date-time))last_success_at(string (date-time))
source(string, required, one of"yaml","console")declared(boolean, required)credential_configured(boolean, required) — Whether a provider credential is present at this instant; no secret is returnedbatch(ProviderBatchStorage)credentials(array of ProviderCredentialPoolEntryView, max items 16)primary_credential_id(string)credential_cooldown_statuses(array of integer, max items 32)credential_selection_max_body_bytes(integer, min 1024, max 1048576)credential_pool_source(string, one of"default","yaml","console") — Configured metadata provenance, not runtime health.credential_cooldown_statuses_source(string, one of"default","yaml","console")credential_selection_max_body_bytes_source(string, one of"default","yaml","console")custom_endpoint(boolean) — Read only: a bedrock connection to a host other than AWS, declared in the YAML (ADR 0172); the credential goes to base_urlallow_insecure_http(boolean) — Read only: the custom endpoint may use plain HTTP to a local host (tests and mocks)
models(array of AdminModel, required)mcp_servers(array of object, required)id(string, required)name(string, required)transport("streamable_http", required)url(string (uri), required)scopes(array of string, required)disabled(boolean, required)source(string, required, one of"yaml","console")declared(boolean, required)execution_trusted(boolean) — Enabled server whose URL matches a boot execution trust entry; health checks run only for these
configuration_sources(object, required)- any other key: string
AdminModel
Section titled “AdminModel”Type: object
passthrough(PassthroughPolicy or null) — Native action policy; omitted on PUT preserves the current value, explicitnull clears subject to full alias validation.- One of (1): PassthroughPolicy
- One of (2): null
system_prompt(SystemPromptPolicy)hub(ModelHubPublication or null) — Full model replacement; omission or null clears publication metadata.- Any of (1): ModelHubPublication
- Any of (2): null
context_window_fallback(string) — semantic_fallbacks (ADR 0107): alias that answers once when the provider refuses a chat request for context length (400/413 with context_length_exceeded, exceed context size and similar). The alias is admitted like a direct request of the same key (allowed models, team policy, organization ceiling, plan entitlements, rate limits, budgets/TPM, guardrails), with the client X-Gateway-End-User, X-Gateway-Session-Id, X-Gateway-Tags and X-Gateway-Cache headers; one hop only; the response carries X-Gateway-Fallback: context_window:<alias>. When the alias refuses before any provider answers, the original provider error is returned with X-Gateway-Fallback-Refused: context_window:<code>.content_policy_fallback(string) — semantic_fallbacks: alias that answers once when the provider refuses for content policy (content_filter, content_policy_violation). Same rules as context_window_fallback.routing_strategy(string, one of"ordered","cost","least_busy") — routing_strategies flag. cost puts the cheapest resolved price first (price book and published catalogs, input plus output per million; unknown prices last); least_busy puts the destination with fewest in-flight requests first in this process. Needs two or more targets and no weights, latency_routing or auto_route. Only the order changes: fallbacks, admission and breakers apply, and Responses keeps the declared order.auto_route(object) — Auto routing (auto_routing flag). The alias has no targets; each request goes to the alias its strategy picks, else to default. It serves the capabilities it declares among chat, messages and responses (chat when it declares none); every routed alias must serve them all, and stored Responses state (previous_response_id, conversation) answers 422 stateful_route_unsupported. Only routes whose target the key may call compete. Responses include X-Gateway-Auto-Route; the trajectory strategy adds X-Gateway-Auto-Route-Reason and, with a session, X-Gateway-Auto-Route-Transition.strategy(string, one of"semantic","complexity","trajectory") — semantic (default) needs embedding_model and routes; complexity scores the prompt locally (code, reasoning, technical and simple keywords in English and Portuguese, length, multi-step, questions; default weights and 0.15/0.35/0.60 boundaries) and needs tiers. trajectory (tool_aware_routing flag) reads the newest tool results of the conversation and moves the session one tier up or down across tiers; it needs two or more tiers and a default that is the alias of one of them. No model call unless classifier is set.trajectory(object) — trajectory only (tool_aware_routing). Every field has a default.window(integer, min 0, max 20) — Newest tool results scored; 0 means 3confidence_threshold(number, min 0, max 1) — How far from zero the signed score must be to move the tier; 0 means 0.5. Inside the band the turn is undecided.overrides(object)tool_classes(object) — Tool names added to the built-in coding list. Exact name, case-insensitive, with or without an mcp__server__ prefix; a name may appear once across the four lists.hold(object) — Per session (organization, team, key, alias and the header value), kept in the routing state: per replica, and shared across replicas and restarts with shared_routing_state.
classifier(object) — complexity, and trajectory with mode ambiguous (ADR 0173, T205): a chat alias rates the last user message into a tier; for trajectory it also gets the shape of the recent tool results (class and outcome, never their output) and its answer moves the session one tier towards it. It runs through the gateway as the caller restricted to that alias (quota, RPM, ledger; request ID <id>.classify) and only an exact tier name is accepted. The chosen tier still needs the key’s permission (else default). Keyword rules skip it. A timeout or a 5xx skips the classifier on this replica for 30 s, then one request probes it.mode(string, required, one of"model","local_first","near_boundary","ambiguous") — model: every request. local_first: the local score decides up to max_local_tier. near_boundary: the model decides only when the score is within boundary_margin of a tier limit. A prompt where no dimension fired always goes to the model. ambiguous (trajectory only, and its only mode): the model decides only a turn with tool results whose score is inside the confidence band, outside a hold.model(string, required) — Chat alias that is not auto-routed or a wildcardtimeout_ms(integer, min 0, max 30000) — 0 means 3000; otherwise 100 to 30000max_local_tier(string, one of"simple","medium","complex") — local_first onlyboundary_margin(number, min 0, max 0.5) — near_boundary only; 0 means 0.05fallback(string, one of"local","default") — When the classifier fails: local (the scored tier, default) or default (the default alias). trajectory accepts only default.
stall_escalation(object) — complexity and trajectory (ADR 0173): when the newest assistant tool call (name and arguments) repeats repeat_threshold times among the last window tool calls of the conversation, the tier goes up to the next configured tier. Stateless: read from the request’s messages.window(integer, min 0, max 50) — 0 means 6; otherwise 2 to 50repeat_threshold(integer, min 0, max 50) — 0 means 3; otherwise 2 up to window
tiers(object) — complexity: tier to alias. A missing tier uses the next more capable configured tier.simple(string)medium(string)complex(string)reasoning(string)
boundaries(object)simple_medium(number, required)medium_complex(number, required)complex_reasoning(number, required)
keyword_rules(array of object, max items 32) — complexity: a prompt containing any keyword goes to the tier before scoringkeywords(array of string, required, min items 1, max items 100)tier(string, required, one of"simple","medium","complex","reasoning")
embedding_model(string)default(string, required)max_input_chars(integer, min 0, max 20000) — Characters of the prompt embedded; 0 means 2000routes(array of object, min items 1, max items 32) — semantic onlyname(string, required, max length 64)target(string, required)description(string, max length 500)utterances(array of string, required, min items 1, max items 100)threshold(number, min 0, max 1) — 0 means 0.5
request_timeout(string) — Buffered/legacy-stream provider-operation deadline including permitted attempts and consumption; Go duration 100ms..30m. Empty inherits startup network.request_timeout. Enabled independent stream clocks use stream_timeouts instead.attempt_timeout(string) — attempt_timeouts (T218): how long each provider attempt of this model may take to start answering (from the send to the response headers); Go duration 100ms..30m, below the model’s effective request_timeout. When it fires the attempt ends, the next target is tried inside the total deadline, or the request answers 504; the same target is not retried and an answer that has started is never cut. Empty is off. Stored, validated and inactive while the attempt_timeouts flag is off.stream_timeouts(null or StreamTimeouts) — Optional per-model clocks; null or an empty object inherits all network clocks.- One of (1): null
- One of (2): StreamTimeouts
latency_routing(LatencyRoutingPolicy or null)- One of (1): LatencyRoutingPolicy
- One of (2): null
adaptive_routing(AdaptiveRoutingPolicy or null)- One of (1): AdaptiveRoutingPolicy
- One of (2): null
affinity(RoutingAffinityPolicy or null)- One of (1): RoutingAffinityPolicy
- One of (2): null
canary(CanaryPolicy or null)- One of (1): CanaryPolicy
- One of (2): null
prompt_compression(PromptCompressionPolicy or null)- One of (1): PromptCompressionPolicy
- One of (2): null
context_overflow(ContextOverflowPolicy or null)- One of (1): ContextOverflowPolicy
- One of (2): null
retry(RetryPolicy or null)- One of (1): RetryPolicy
- One of (2): null
cache(ExactCachePolicy or null)- One of (1): ExactCachePolicy
- One of (2): null
semantic_cache(SemanticCachePolicy)id(string, required)capabilities(array of string)disabled(boolean) — Exclude alias from listing and inference while retaining its declarationalias_of(string) — model_aliases (T103): ID of the canonical model this entry is another client name for. Such an entry declares only id, alias_of and disabled (targets empty or omitted); it serves the canonical model’s targets and policies. The canonical model must exist, must not be an alias itself (no chains or cycles) nor a wildcard; guardrails and model quota policies name the canonical model. Granting the canonical model grants its aliases; granting the alias grants only the alias. Validated with the flag off; with it off the alias resolves to nothing (404).follows(object) — model_follows (T149, requires model_aliases): a moving alias. The entry declares only id (letters, digits, dot, dash or underscore, 1-128 characters), follows and disabled, never together with alias_of. It serves the newest eligible declared model: exact, enabled, not auto_route or passthrough, no context_window_fallback or content_policy_fallback, every target on provider with the same upstream model whose version part (numbers, then an optional date stamp and revision; words such as latest or preview never match) fits family. Highest version, then date, then revision, then lowest model id. Resolved once per published configuration, never from a remote catalog; access is by the moving name only and policies cannot name it. Usage records the resolved model as model and the moving name as requested_model; each change is logged and recorded as the model_follow_changed alert event. With the flag off it is validated and resolved but serves nothing (404).family(string, required, min length 1, max length 200) — Upstream model ID pattern; one * marks the version (gemini--flash), otherwise the version follows after a dash (claude-sonnet means claude-sonnet-)provider(string, required) — providers[] ID every target of a candidate must use
follow_resolution(object, read-only) — Admin configuration view only, never accepted on writes: what the moving alias resolves to in the published configuration.alias(string)family(string)provider(string)model(string) — Resolved canonical model; absent when nothing qualifiesupstream_model(string)version(string)reason(string, one of"no_eligible_model")enabled(boolean) — model_aliases and model_follows on and the alias not disabledserving(boolean) — enabled and a model resolvedcandidates(array of object)model(string)upstream_model(string)version(string)skipped(string, one of"disabled","auto_route","passthrough","semantic_fallback","targets_outside_provider_or_version") — Why the candidate is not eligible; absent when it is
unsupported_parameters(string, one of"refuse","drop", default"refuse") — request_parameter_policy (T101): refuse answers 422 unsupported_on_provider before any provider call when a translated target (Anthropic, Gemini, Bedrock, Cohere, OCI or the Responses API) declares a request field unsupported; drop removes such fields instead and names them in X-Gateway-Dropped-Parameters and the upstream_attempt log. A value the target cannot honor (for example reasoning_effort minimal on Anthropic) is still refused.max_request_body_mib(integer, min 1, max 64) — T121: request body limit of this alias in MiB on every inference route (Chat Completions, Messages, Responses, Gemini, embeddings, images, audio and the other operations, and token counting), instead of network.max_request_body_mib or the built-in 1 MiB (chat) and 8 MiB (other routes). Omitted inherits. A larger body is refused with 413 request_too_large before any provider call. An alias_of entry uses its canonical model’s value and cannot set it.codex(object) — codex_model_catalog (T148): this alias’s entry in the Codex CLI model catalog (CodexModelCatalog). Settable here and in YAML only; the console keeps it on save. Not allowed on an alias_of entry, which uses its canonical model’s value.base_instructions(string, required, min length 1, max length 65536) — Replaces the base prompt the client uses with this alias: the client’s own prompt for a model its catalog knows (removing that entry’s model_messages.instructions_template, which the client would otherwise prefer) or its generic prompt for any other. Non-empty UTF-8 without NUL; at most 65536 bytes.
speech(object) — T198: delivery and declared voices of an alias with the audio_speech capability. Validated whatever the flags say. Not allowed on an auto route or an alias_of entry.delivery(string, one of"stream","buffer", default"stream") — stream relays the clip as the provider sends it. buffer, read only while the speech_buffer flag is on, delivers only whole clips with their length and answers 502 for a clip the provider cut.buffer_max_mib(integer, default32, min 1, max 256) — Largest clip buffer keeps in memory, in MiB; a longer clip answers 502 speech_buffer_exceededvoices(array of string, max items 256) — Voices voice discovery (speech_voices) lists for this alias instead of the provider’s or the built-in list
file_defaults(FileDefaults)stream_usage(string, one of"client","inject", default"client") — T114, applied while the stream_usage flag is on: client leaves stream_options.include_usage to the client; inject asks a Chat Completions stream for its usage when the client did not (stream_options absent, null, or include_usage absent, null or false), meters it for the request log, budgets, TPM, valuation and request events, and removes the usage-only chunk and every chunk’s usage member from the client’s stream. Chat aliases only; refused on auto_route and alias_of entries.batch(string, one of"gateway","provider", default"gateway") — T215, applied while the provider_batches flag is on: provider sends a batch file of this alias to its provider’s own batch API at the batch price. Needs exactly one target of an OpenAI, Anthropic, Gemini API, Vertex AI or Bedrock provider (Vertex AI and Bedrock with providers[].batch storage), and no auto_route, canary, affinity, latency or adaptive routing or fallbacks.source(string, one of"yaml","console", read-only)declared(boolean, read-only)targets(array of object, min items 0) — Required unless auto_route or alias_of is set; an auto-routed alias or a model alias has an empty list.provider(string, required)model(string, required)tags(object) — tag_routing (ADR 0106): the target serves only requests whose usage tags (X-Gateway-Tags and team defaults) carry every key=value; untagged targets are the general pool; no eligible target answers 403 no_target_for_tags. Values must be permitted usage tags.- any other key: string
health_check(TargetHealthCheck or null) — Optional explicit endpoint check. Full model PUT replaces target policy; omission removes it under live before/after mutation guards.- One of (1): TargetHealthCheck
- One of (2): null
when(TargetWhen) — Optional typed target eligibility. Full-model PUT omission removes it under before/after authorization; explicit null is invalid. Flag-off conditional alias refuses before cache or provider.paths(object)- any other key: string
weight(integer, min 1, max 10000) — Optional smooth weighted selection for stateless operations when enabledadmission(TargetAdmission)api(string, one of"chat_completions","responses","auto") — openai targets only (ADR 0172): the OpenAI wire API. Default responses on a responses alias, chat_completions otherwise; responses sends Chat Completions, Messages and GenerateContent to /responses, chat_completions serves a responses alias from /chat/completions. auto (T112) uses Responses for a request Chat Completions refuses (reasoning_effort max or in its object form, function tools with a reasoning effort other than none) when the translation carries every field, and Chat Completions otherwise; a native /v1/responses request stays on Responsesrequest_defaults(RequestParameterValues)request_overrides(RequestParameterValues) — request_parameter_policy (T101): set on every attempt to this target, replacing the client’s value (for example store false). A name cannot also be in request_defaults or drop_parameters.- All of (1): RequestParameterValues
max_output_tokens(integer, min 1, max 10000000) — request_parameter_policy (T101): ceiling on max_tokens/max_completion_tokens (Chat Completions and translated routes), max_tokens (native Messages) and max_output_tokens (native Responses). A larger client value is lowered (any JSON number with a whole value: 500, 500.0, 5e2); a limit that is not a positive whole number is refused with 422 before any provider call; a request without a limit, or with only null limits, gets max_completion_tokens (max_output_tokens on native Responses, max_tokens on native Messages) set to it.drop_parameters(array of string, max items 32) — request_parameter_policy (T101, paths T218): fields removed from the body this target receives, before translation: Chat Completions names on /v1/chat/completions and on every translated route, Messages or Responses names on the native routes. An entry is a top-level field name or a path below one: a dot enters an object and [] every element of a list (tools[].input_examples, metadata.user_id); at most 8 steps, ending in a member name; the member is removed and its parent stays. model, messages, input, contents, stream, store and stream_options cannot be dropped, nor anything below them. Reported in X-Gateway-Dropped-Parameters (in the client’s names) and the upstream_attempt log.drop_presets(array of string, max items 1) — request_parameter_policy (T218): ready-made lists added to drop_parameters. sampling removes temperature, top_p and top_k, which the Claude models from Opus 4.7 on refuse. Removed and reported like drop_parameters; a name a preset removes cannot also be in request_defaults or request_overrides.thinking_mode(string, one of"budget","adaptive", default"budget") — T218, anthropic and bedrock targets only: how a Chat Completions reasoning_effort reaches Claude. budget sends thinking enabled with a token budget (low, medium, high). adaptive sends adaptive thinking with output_config.effort (low, medium, high, xhigh, max), which the Claude models that removed the token budget require. Not part of request_parameter_policy and not behind a flag: it states which request shape the target’s model accepts.prompt_cache(TargetPromptCache)max_input_tokens(integer, min 1, max 100000000) — context_window_check (T139), chat, messages, responses and generate_content aliases only: the most input tokens this target accepts. Omitted means unknown, and the target is called as before. Before Chat Completions, Messages, Responses or GenerateContent (native or translated) calls this target, the gateway estimates the request’s input tokens from below (text only: images, audio and files count zero); when the estimate exceeds this limit by more than max_input_tokens_margin_percent, the target is skipped without a provider call (logged as upstream_attempt_skipped with reason context_window_exceeded and as context_window_exceeded with the estimate). The next target is tried; when none is left, a chat-pipeline request goes to the alias’s context_window_fallback (semantic_fallbacks), otherwise the client gets 400 with code context_length_exceeded in its route’s error shape. Hot-reloaded with the model.max_input_tokens_margin_percent(integer, default10, min 0, max 100) — context_window_check (T139): how far, in percent, the input estimate must exceed max_input_tokens before the target is skipped. Requires max_input_tokens. The estimate stays at or below the real count on every measured tokenizer; the margin covers one that was not measured.
AdminSession
Section titled “AdminSession”Type: object
custom_role_id(CustomRoleID)authenticated(true, required)csrf_token(string, required)role(string, required, one of"admin","viewer","team_viewer","team_admin","operator","user")permissions(array of string, required) — Explicit resource action grants; presentation only, enforced on every server routeuser_id(string, required) — Named user ID; empty for bootstrap credentialsteam_ids(array of string, required) — Active memberships for scoped roles
AdmissionIntegerParameterDefinition
Section titled “AdmissionIntegerParameterDefinition”Type: object or object or object or object or object or object
- One of (1): object
key("network.max_inflight_requests")minimum_positive("1")maximum("100000")fallback("512")zero_behavior("default")
- One of (2): object
key("network.max_buffered_request_mib")minimum_positive("8")maximum("65536")fallback("256")zero_behavior("automatic_when_stream_admission")
- One of (3): object
key("network.max_relay_streams")minimum_positive("1")maximum("100000")fallback("2048")zero_behavior("automatic")
- One of (4): object
key("network.max_relay_buffer_mib")minimum_positive("16")maximum("65536")fallback("256")zero_behavior("automatic")
- One of (5): object
key("network.admission_memory_percent")minimum_positive("1")maximum("100")fallback("50")zero_behavior("default")
- One of (6): object
key("network.stream_reservation_kib")minimum_positive("80")maximum("65536")fallback("80")zero_behavior("default")
key(string, required)group("network", required)kind("admission_integer", required)default("0", required)minimum_positive(string, required)maximum(string, required)fallback(string, required)zero_behavior(string, required, one of"default","automatic","automatic_when_stream_admission")sources(array of string, required, min items 2, max items 2)restart_required(true, required)
AdvisoryCostEstimateInput
Section titled “AdvisoryCostEstimateInput”Type: any and any or any or any
- All of (1): any
- All of (2): any or any or any
- One of (1): any or any
- Any of (1): any
- Any of (2): any
- One of (2): any
- One of (1): any or any
source(string, required, one of"openrouter","deepinfra","cost_map","modelsdev","configured")model_id(string, required, min length 1, max length 4096) — At most4096 UTF-8 bytes.alias(string, min length 1, max length 4096) — At most4096 UTF-8 bytes.provider_id(string, min length 1, max length 4096) — At most4096 UTF-8 bytes.input_tokens(string, pattern^(0|[1-9][0-9]{0,17})$)output_tokens(string, pattern^(0|[1-9][0-9]{0,17})$)quantity(string, pattern^(0|[1-9][0-9]{0,17})(\.[0-9]{1,9})?$)unit(string, one of"per_image","per_character","per_audio_second","per_video_second")requests_per_day(string, default"1", pattern^(0|[1-9][0-9]{0,17})$)expected_basis_id(string, pattern^[0-9a-f]{64}$)service_tier(string, one of"default","priority","flex","batch","provisioned") — T110: the service tier to price, text quantities only. default (or omitted) is the standard rate; another tier uses its own published price and stays unknown (service_tier_unpriced) when no source publishes it. provisioned (T077.005) is priced only by a manual price book entry.
AdvisoryCostQuote
Section titled “AdvisoryCostQuote”Type: object
status(string, required, one of"available","partial","unknown","conflict")currency("USD", required)basis_id(string, required, pattern^[0-9a-f]{64}$) — Deterministic rate/provenance identity; not a signed authorization.source(string, required, one of"openrouter","deepinfra","cost_map","modelsdev","configured") — Selection source echoed from the request.rate_source(string) — Actual pricing provenance for a configured target.model_id(string, required)provider_id(string)alias(string)source_url(string)fetched_at(string (date-time))effective_from(string (date-time))manual_fallback(boolean) — The manual price book supplied this price; an entry in effect wins over every automatic price. The name predates that rule and is keptoverride(boolean) — Present and true when the manual price replaced an automatic price that was availablestale(boolean, required)confidence(string)unit(string, required, one of"per_million_text_tokens","per_image","per_character","per_audio_second","per_video_second")input_per_million(string, pattern^[0-9]+(\.[0-9]+)?$)output_per_million(string, pattern^[0-9]+(\.[0-9]+)?$)unit_price(string, pattern^[0-9]+(\.[0-9]+)?$)input_tokens(string)output_tokens(string)quantity(string)requests_per_day(string, required)known_subtotal_usd(string, pattern^[0-9]+(\.[0-9]+)?$)total_usd(string, pattern^[0-9]+(\.[0-9]+)?$)daily_usd(string, pattern^[0-9]+(\.[0-9]+)?$)thirty_day_usd(string, pattern^[0-9]+(\.[0-9]+)?$)known_daily_subtotal_usd(string, pattern^[0-9]+(\.[0-9]+)?$)known_thirty_day_subtotal_usd(string, pattern^[0-9]+(\.[0-9]+)?$)reason(string)service_tier(string, one of"priority","flex","batch","provisioned") — T110: the service tier this quote prices; omitted for the standard tier.warnings(array of string, required)coverage(array of string, required)
AffinityAliasStatus
Section titled “AffinityAliasStatus”Type: object
alias(string, required)mode(string, required, one of"session","key")header(string)ttl_seconds(integer, required, min 60)max_entries(integer, required, min 100)entries(integer, required, min 0)hits(integer, required, min 0) — Answers from the pinned targetmisses(integer, required, min 0) — Requests with a usable subject and no live pinmoves(integer, required, min 0) — Pins moved to another target that answeredevictions(integer, required, min 0)expired(integer, required, min 0)
Type: object
One agents[] entry as the admin API serves it: the YAML fields under their own names (url and card_url without credentials or query strings) plus where it came from.
id(string, required)name(string, required)description(string)url(string, required)card_url(string)auth_header(string)secret_env(string)teams(array of string, required)disabled(boolean, required)source(string, required) — yaml or console (a console override).declared(boolean, required) — True when the YAML declares this agent, so deleting the console override reverts to it.credential_configured(boolean, required)
AgentCheck
Section titled “AgentCheck”Type: object
name(string, required, max length 80)kind(string, required, one of"predicate","judge","command")passed(boolean or null) — null when the check could not rundetail(string, max length 500)
AgentClientRule
Section titled “AgentClientRule”Type: object
One client rule of agent_recognition.clients (T186.019). A rule matches when any identity field matches (user_agent_prefixes, identity_headers, system_prompt_contains); every other field applies only to a request the rule matched. Header names are case-insensitive and never a credential header; text matches are exact prefixes or substrings, never patterns. Lists hold at most 16 entries of 1-256 characters.
name(string, required, pattern^[a-z0-9._-]{1,64}$) — The agent name recorded for the clientuser_agent_prefixes(array of string, max items 16) — Identity: the User-Agent starts with one of theseidentity_headers(array of string, max items 16) — Identity: the request carries one of these headerssystem_prompt_contains(array of string, max items 16) — Identity: the system prompt (its first 64 KiB) contains one of theserun_headers(array of string, max items 16) — Headers that carry the client’s own run ID; the first present winsrun_body_fields(array of string, max items 16) — Body fields tried after run_headers, as dotted paths; > reads a string field as a JSON documentagent_headers(array of string, max items 16) — Headers that carry the ID of the agent inside the run; a value other than the run ID is a subagentparent_agent_headers(array of string, max items 16) — Headers that name the agent that spawned this oneagent_type_headers(array of string, max items 16) — Headers that carry a subagent’s declared typeparent_run_headers(array of string, max items 16) — Headers that name the run that spawned this one, for a client that gives every agent its own run IDclass_header(string, max length 64) — Header whose value classes the request through class_valuesclass_values(object)- any other key: string
subagent_system_contains(array of string, max items 16) — System prompt text that marks a subagent’s requestauxiliary_system_prefixes(array of string, max items 16) — System prompt prefixes of a helper call that is not a step of the runcontext_prefixes(array of string, max items 16) — A user text block that starts with one of these is context the client added, not typed texttask_wrappers(array of string, max items 16) — Tag names the client wraps a task in; the tags are droppedspawn_tools(array of string, max items 16) — Tools the client starts a subagent withspawn_prompt_fields(array of string, max items 16) — Input fields of a spawn tool that carry the subagent’s taskcompaction_request_prefixes(array of string, max items 16) — The last user text of a request that asks for a summary of the conversation starts with onecontinuation_prefixes(array of string, max items 16) — After compacting, the conversation restarts with a user text that starts with onesource(string, max length 512) — Where the rule’s facts come from; shown with the rule
AgentClientRuleView
Section titled “AgentClientRuleView”Type: AgentClientRule and object
- All of (1): AgentClientRule
- All of (2): object
origin(string, required, one of"yaml","builtin") — yaml: agent_recognition.clients. builtin: shipped with the gateway.
AgentEval
Section titled “AgentEval”Type: object
id(string, required)team_id(string, required)name(string, required)description(string)dataset_id(string, required)dataset_name(string, required)dataset_as_of(string (date-time), required)trials(integer, required)task_ids(array of string, required)runner(object)targets(array of AgentTarget, required)created_at(string (date-time), required)
AgentEvalCreate
Section titled “AgentEvalCreate”Type: object
name(string, required, min length 1, max length 120)description(string, max length 1000)dataset_name(string, required, min length 1, max length 120)trials(integer, default1, min 1, max 10)tasks(array of object, max items 500)id(string, required, pattern^[A-Za-z0-9_.-]{1,64}$)input(any, required) — Any JSON value of at most 64 KiB (the task prompt)expected_output(any) — Any JSON value of at most 64 KiBmetadata(object)
task_ids(array of string, max items 500)targets(array of AgentTarget, required, min items 1, max items 10)runner(object) — The runner’s name and version (at most 512 bytes)
AgentEvalScorecardRead
Section titled “AgentEvalScorecardRead”Type: object
agent_eval(AgentEval, required)scorecard(object, required)targets(array of AgentTargetScore, required)recommended(string)recommended_reason(string)
trials(array of object)task_id(string)trial(integer)outcome(string)failure_class(string)error(string)latency_ms(integer)tool_calls(integer)trace_id(string)judge_trace_id(string)checks(array of AgentCheck)agent(object)judge(object)
AgentFigure
Section titled “AgentFigure”Type: object
T186.011b: one team’s agent, or one version of it, over a time range.
team_id(string, required)agent(string, required)version(string)requests(integer, required)errors(integer, required)spans(integer, required) — Spans of the traces of the agent’s requestsversions(integer, required)p95_duration_us(integer, required)tokens(integer)cost_state(string, one of"known","partial","unknown","none")cost_usd(string)first_at(string (date-time), required)last_at(string (date-time), required)
AgentGraphGroup
Section titled “AgentGraphGroup”Type: object
id(string, required)basis(string, required, one of"observed","asserted") — Traces are observed; agents and turns are asserted.steps(array of integer, required)first_at(string (date-time), required)last_at(string (date-time), required)
AgentInput
Section titled “AgentInput”Type: object
The agents[] entry of the YAML, as the console writes it (same names). secret_env names the environment variable holding the credential; the credential is never stored or returned.
id(string, required, pattern^[a-z0-9][a-z0-9_-]{0,62}$)name(string, required, max length 120)description(string, max length 1000)url(string, required) — The agent’s JSON-RPC endpoint.card_url(string) — Defaults to the agent-card.json under the URL’s origin.auth_header(string) — Header that carries the credential; goes with secret_env.secret_env(string)teams(array of string) — Teams that may invoke the agent; empty means nobody.disabled(boolean)
AgentLatency
Section titled “AgentLatency”Type: object
mean_ms(number or null)p50_ms(integer or null)p95_ms(integer or null)
AgentLedgerCost
Section titled “AgentLedgerCost”Type: object
state(string, required, one of"known","partial","unknown","none")known_usd(string, required) — Exact decimal sum of the known amountsrequests(integer, required)unvalued_requests(integer, required)
AgentRecognitionSettings
Section titled “AgentRecognitionSettings”Type: object
The effective agent_recognition block (T186.019), read on every request.
enabled(boolean, required) — agent_recognition, agent_sessions and session_tracking are all ontranscript_ingest(boolean, required) — POST /v1/traces is served: enabled, agent_transcript_ingest and span_storebuiltin_clients(boolean, required, defaulttrue) — The shipped rules apply after the operator’sunknown_client(string, required, one of"none","user_agent_product", default"none") — What a request no rule matches is calledderive_run(boolean, required, defaulttrue) — A run ID is derived for a recognized client that sent nonetask_capture(string, required, one of"off","preview","full", default"off")task_capture_chars(integer, required, one of0,200,2000) — Characters of the task the mode keepstask_capture_state(string, required, one of"off","ready","content_capture_off","content_key_missing") — Whether task text can be kept. ready still needs an active content capture policy of the team that keeps requests.link_window_minutes(integer, required, default30, min 1, max 1440)max_tool_steps(integer, required, default32, min 1, max 256)retention_days(integer, required, default30, min 1, max 3650)transcript_ingest_limits(AgentTranscriptIngestLimits, required)clients(array of AgentClientRuleView, required) — The rules in the order they are trieddigest_key(string, required) — The secret that keys derived run IDs and task hashes. process means none is configured: every replica and every restart derives other IDs, so derived runs split.sources(object, required) — Per field of the block: clients, builtin_clients, unknown_client, derive_run, task_capture, link_window_minutes, max_tool_steps, retention_days, transcript_ingest.max_request_bytes, transcript_ingest.max_spans- any other key: string
restart_required(boolean, required, one offalse)
AgentResults
Section titled “AgentResults”Type: object
results(array of object, required, min items 1, max items 100)target(string, required)task_id(string, required)trial(integer, required, min 1, max 10)outcome(string, required, one of"pass","fail","error")failure_class(string, pattern^[a-z][a-z0-9_]{0,39}$)output(string, max length 65536)error(string, max length 2000)latency_ms(integer, min 0, max 86400000)tool_calls(integer, min 0, max 100000)trace_id(string, pattern^[0-9a-f]{32}$)judge_trace_id(string, pattern^[0-9a-f]{32}$)checks(array of AgentCheck, max items 20)
AgentRun
Section titled “AgentRun”Type: object
One recognized coding-agent run (T186.019), a row of gateway_agent_runs with what the reader may see of its task.
team_id(string, required)organization_id(string) — The organization the run was recorded under; absent with organizations offrun_id(string, required, max length 128)key_id(string, required) — The key that began the run. Only this key sets the run’s parent or moves its start; another key of the team that sends the same run ID adds steps and counters onlyprincipal(string, required) — The user or service account of that keyagent(string, required, max length 64) — The recognized client (the rule’s name), or the agent a transcript namedagent_type(string, max length 64) — A subagent’s declared type, when the client sends onerun_basis(string, required, one of"client","declared","derived","transcript") — How the run ID was known. client: the client’s own ID, read from its request. declared: X-Gateway-Session-Id. derived: a keyed digest the gateway computed (derived-<32 hex>); a later run of the same key that begins with the same bytes, after the earlier one was answered, takes the next generation (-g2, -g3, …). transcript: only a transcript upload named the run.parent_run_id(string, max length 128) — The run that spawned this oneparent_basis(string, one of"client","declared","inferred","transcript") — How the parent was known. inferred: a tool call of the parent that starts a subagent carried the task this run began with; only for a run of the same key that did not begin before the parent and is not the parent’s own parent.continues_run_id(string, max length 128) — For a derived run that starts from a compaction summary: the earlier run it continues, named only when exactly one candidate existsfirst_at(string (date-time), required)last_at(string (date-time), required)model_calls(integer, required)tool_steps(integer, required) — Tool steps the client reported, each counted once by its call ID however many requests carried itturns(integer, required)compactions(integer, required)errors(integer, required) — Model calls answered with status 400 or above, or transcript spans with error status. Such a model call adds no turn and no tool steps: the request that succeeds brings themfrom_traffic(boolean, required) — The gateway served at least one request of the runfrom_transcript(boolean, required) — A transcript upload named the runfirst_request_id(string)first_trace_id(string)children(integer, required) — Runs this one spawned; counted in lists onlytask(AgentRunTask, required)
AgentRunPage
Section titled “AgentRunPage”Type: object
runs(array of AgentRun, required, max items 200)next_cursor(string, required) — Empty on the last pageagents(array of string, required, max items 100) — Distinct agent names of the reader’s runs in the rangefrom(string (date-time), required)to(string (date-time), required)task_capture(string, required, one of"off","preview","full") — Effective agent_recognition.task_capturetool_names_shown(boolean, required) — Whether the session holds content_structure:read
AgentRunStep
Section titled “AgentRunStep”Type: object
One step of a run’s thread (T186.019).
kind(string, required, one of"model_call","tool","turn","transcript_call","compaction") — model_call: a request the gateway served. tool: a tool step the client reported or a transcript named. turn: a turn of a transcript. transcript_call: a model call a transcript named. compaction: where the client replaced its context with a summary.run_id(string, required)at(string (date-time), required)source(string, required, one of"traffic","transcript")duration_ms(integer, required) — 0 for a reported tool step: the gateway did not see it runstatus(string, required)http_status(integer)trace_id(string, required)span_id(string, required)parent_span_id(string)request_id(string)model(string)provider(string)input_tokens(integer (int64))output_tokens(integer (int64))cost_usd(string) — Only for a reader who sees costsclass(string, one of"main","subagent","compaction","auxiliary") — Request class of a model_callturn(integer) — Typed user messages in the context window the request was built fromturn_start(boolean) — The first model call after the user typedwindow(string) — Keyed digest naming the context window; changes after a compaction. A compacted window is named by the summary it began with, so it stays the same while it growstool(string) — Tool name; only for a reader with content_structure:read of the run’s teamtool_failed(boolean)basis(string, required, one of"observed","reported","uploaded")
AgentRunTask
Section titled “AgentRunTask”Type: object
What the reader gets of a run’s task (T186.019).
state(string, required, one of"shown","withheld","hash_only","expired","unreadable","none") — shown: text follows. withheld: text is kept and the reader lacks content_sent:read of the run’s team, or content_capture is off, or the read could not be audited. hash_only: no text is kept (task capture kept none, or the text was erased, or it expired and was removed). expired: the text passed its retention and is not removed yet. unreadable: its content key is not configured. none: the run shows no task.text(string, max length 2000) — The task the user typed to start the run, cut to what task_capture keeps; only with state shownchars(integer) — Characters kept; with shown and unreadable
AgentRunThread
Section titled “AgentRunThread”Type: object
run(AgentRun, required)parent(AgentRun)branches(array of AgentRun, required, max items 100) — Runs this run spawned, directly or through its subagentscontinuations(array of AgentRun, required, max items 20)steps(array of AgentRunStep, required)steps_truncated(boolean, required) — Only the latest 1,000 spans of a run are readbranches_truncated(boolean, required)source(string, required, one of"database","analytics_store") — The engine the spans were read fromtool_names_shown(boolean, required)valuation_shown(boolean, required)gaps(array of object, required)code(string, required) — content_not_recorded, tool_steps_reported, steps_truncated, no_spans, run_derived, tool_names_withheld or branch_steps_omittedstage(string, required)message(string, required)
basis(object, required) — What each basis value means, in words- any other key: string
AgentTarget
Section titled “AgentTarget”Type: object
label(string, required, pattern^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$)kind(string, required, one of"model","claude_agent_sdk","openai_agents_sdk","custom")model(string, max length 120) — The gateway model alias the target calls (a label; calls are authorized at inference)settings(object) — Harness settings kept for the comparison (at most 2 KiB). Never credentials.run_id(string, read-only)
AgentTargetScore
Section titled “AgentTargetScore”Type: object
label(string, required)kind(string, required)model(string)run_id(string, required)planned(integer, required)recorded(integer, required)passed(integer, required)failed(integer, required)errors(integer, required)missing(integer, required)pass_rate(number, required)pass_at_k(number, required)pass_all_k(number, required)agent_cost(AgentLedgerCost, required)judge_cost(AgentLedgerCost, required)total_cost(AgentLedgerCost, required)cost_per_success_usd(string or null, required)cost_per_success_state(string, required, one of"known","partial","unknown","none")input_tokens(integer)output_tokens(integer)model_calls(integer)tool_calls(integer)latency(AgentLatency)model_latency(AgentLatency)failure_classes(object, required)- any other key: integer
metrics_complete(boolean, required)tasks(array of object, required)task_id(string)recorded(integer)passed(integer)errors(integer)
AgentTranscriptIngestLimits
Section titled “AgentTranscriptIngestLimits”Type: object
Effective agent_recognition.transcript_ingest bounds of one POST /v1/traces upload.
max_request_bytes(integer, required, default4194304, min 1024, max 33554432)max_spans(integer, required, default1000, min 1, max 10000)
AgentVersion
Section titled “AgentVersion”Type: AgentFigure and object
- All of (1): AgentFigure
- All of (2): object
declared(boolean, required)models(array of string, required)instructions_hashes(array of string, required)tools_hashes(array of string, required)tools(array of string, max items 64)tools_shown(boolean, required)
Type: object
id(string, required)rule_id(string, required)rule_name(string, required)source(string, required) — rule, or the name of another feature that raised it (evaluation_monitor).scope(string, required, one of"global","organization","team")organization_id(string)team_id(string)group(string) — The group_by value of this alert.severity(string, required, one of"info","warning","critical")state(string, required, one of"open","acknowledged","resolved")title(string, required)detail(object, required) — Bounded metadata of the latest finding: kind (realtime, scheduled, spike or deprecated_model), signal, metric, operator, threshold, value, rows, window_from, window_to, filters, group_by, group, read_store, samples (up to 5 AlertSample), and for the built-in rules baseline, multiplier, minimum_increase, baseline_days, series (daily values), deprecation_date, deprecation_source, upstream_model, last_request_at and registry.occurrences(integer (int64), required)first_seen_at(string (date-time), required)last_seen_at(string (date-time), required)notified_at(string (date-time))notifications(integer, required)acknowledged_at(string (date-time))acknowledged_by(string)resolved_at(string (date-time))resolved_by(string) — A console user, system (the condition cleared) or rule_deleted.muted_until(string (date-time))muted_by(string)
AlertChannelView
Section titled “AlertChannelView”Type: object
id(string, required)name(string, required)kind(string, required, one of"webhook","slack","teams","email","pagerduty")events(array of string, required)disabled(boolean, required)digest(AlertDigestPolicy)rule_organizations(array of string) — T202: organizations that may attach the channel to their alert rules.rule_teams(array of string) — T202: teams that may attach the channel to their alert rules.source(string, required, one of"yaml","console")declared(boolean, required)url_env(string) — YAML channels: environment variable holding the URLsigning_secret_env(string)previous_signing_secret_env(string) — YAML webhooks (T168): variable holding the secret being retired during a rotation; deliveries carry its v1 signature too while it is set and alert_signing_rotation is onurl_configured(boolean, required)url_origin(string) — Scheme and host only; path and query are secretssigning_secret_configured(boolean, required)previous_signing_secret_configured(boolean) — A previous secret is still within its overlap (T168); it signs only while alert_signing_rotation is onprevious_signing_secret_until(string (date-time)) — Console channels: database-clock end of the overlapheaders(array of AlertHeader, max items 10) — Webhooks, alert_webhook_headers (T186.010 follow-up): the channel’s own headers; a value_env is a variable name, its value is never returnedheader_status(array of object) — One entry per header with value_env: set when the variable holds a value safe to send, allowed false for a console channel whose variable alerting.webhook_header_envs no longer lists (the delivery is then refused)name(string, required)set(boolean, required)allowed(boolean, required)
stats(object, required)pending(integer, required)delivered(integer, required)failed(integer, required)last_delivered_at(string (date-time))
AlertDelivery
Section titled “AlertDelivery”Type: object
channel_id(string, required)alert_id(string, required)event(string, required) — Source event, or reserved alert_digest for an additive immutable periodic summary; alert_digest is not a channel subscription choice.status(string, required, one of"pending","delivered","failed")attempts(integer, required)next_attempt_at(string (date-time), required)last_http_status(integer)last_error_class(string, one of"credentials_unavailable","destination_rejected","payload_invalid","timeout","network","upstream_retryable","upstream_rejected","source_unavailable")created_at(string (date-time), required)delivered_at(string (date-time))digest(AlertDigestSummary)
AlertDigestPolicy
Section titled “AlertDigestPolicy”Type: object
Optional additive summary policy; omission preserves individual-only channel behavior. Validated even while disabled; materialization and claims require alert_digests and enabled channel/policy. Pausing preserves cursor, immutable snapshots and retry identities; reenable resumes bounded catch-up after first activation. Changes apply to the next window after the captured current window drains.
enabled(boolean, defaultfalse)interval(string, default"24h") — Whole-second Go duration from1m through168h; omission or empty string uses24h. Observation windows begin at the first enabled materialization check, not a calendar or invoice period.max_alerts(integer, default100, min 0, max 500) — Maximum source references per immutable digest; omitted or zero uses100. Overflow remains queued for subsequent bounded batches.
AlertDigestSnapshot
Section titled “AlertDigestSnapshot”Type: object
Immutable bounded digest snapshot, at most192KiB compact JSON with reserve under the256KiB stored JSONB text ceiling. A group/window may have multiple parts; each part respects source-count and byte bounds. Sources are original eligible already-queued alerts, never raw source details or monetary totals. Membership and this snapshot commit with the outbox row; retries preserve its content.
id(string, required)channel_id(string, required)window_start(string (date-time), required)window_end(string (date-time), required)alert_count(integer, required, min 1, max 500)group_type(string, required) — quota_subject/<subject>, event_subject_team/<event>, or source_event when ownership cannot be provengroup_id(string, required) — Exact quota subject ID, compact JSON [sourceSubject, explicitTeam], or source alert ID, respectivelysources(array of AlertDigestSource, required, min items 1, max items 500)request_id(string, required, max length 128)traceparent(string, required, pattern^00-[a-f0-9]{32}-[a-f0-9]{16}-01$)
AlertDigestSource
Section titled “AlertDigestSource”Type: object
id(string, required) — Immutable source alert identityevent(string, required)subject(string, required) — Original source subject; owner identity is separately carried by the digest groupcreated_at(string (date-time), required)request_id(string, max length 128) — Optional original source request ID when safely availabletrace_id(string, pattern^[a-f0-9]{32}$) — Optional nonzero original W3C trace ID
AlertDigestSummary
Section titled “AlertDigestSummary”Type: object
Metadata-only immutable digest identity and observation window, never financial totals or a completeness claim for all source history. Exact owners remain separate; an unprovable owner is isolated by source-event identity.
id(string, required)window_start(string (date-time), required)window_end(string (date-time), required)alert_count(integer, required, min 1, max 500)group_type(string, required)group_id(string, required)
AlertDigestWebhook
Section titled “AlertDigestWebhook”Type: object
Outbound generic-webhook envelope, not an inference endpoint or a subscribable source event. Idempotency-Key matches delivery_id; retry timestamps/signatures may change while digest remains immutable. At-least-once delivery.
event("alert_digest", required)delivery_id(string, required)sent_at(string (date-time), required)digest(AlertDigestSnapshot, required)message(string, required)
AlertHeader
Section titled “AlertHeader”Type: object
A webhook channel’s own header (T186.010 follow-up, alert_webhook_headers): exactly one of value and value_env. Names the gateway or HTTP set (Content-Type, Content-Length, Content-Encoding, Host, User-Agent, Idempotency-Key, traceparent, tracestate, baggage, Cookie, hop-by-hop headers, X-Gateway-*) are refused, as is a repeated name; a credential-like name (Authorization, Proxy-Authorization, or containing token, secret, key, auth, password, signature, session or credential) takes value_env only.
name(string, required, pattern^[A-Za-z0-9!#$%&'*+.^_`|~-]{1,64}$)value(string, max length 1024) — Visible ASCII, no line break; shown back by the APIvalue_env(string, pattern^[A-Za-z_][A-Za-z0-9_]{0,127}$) — The gateway’s environment variable holding the value, read at each send; a console channel may name only a variable alerting.webhook_header_envs lists (422 otherwise)
AlertingSettings
Section titled “AlertingSettings”Type: object
The alerting.* settings the console shows (T183), under the YAML block’s name and the YAML leaf names. Both are read at boot or at each evaluation; a change is a configuration rollout.
signing_overlap(string, required) — Effective alerting.signing_overlap (T168): how long a rotated console signing secret keeps signing next to the new one. Go duration, default 24h0m0s.operational(OperationalAlertsSettings, required)webhook_header_envs(array of string) — alerting.webhook_header_envs (T186.010 follow-up): the environment variable names a console webhook channel may send as a header value (value_env); names only, never valueswebhook_headers(object) — Custom webhook headers (alert_webhook_headers): whether they are sent, the most a channel may have, and the headers the gateway always sends (shown read-only)enabled(boolean)max(10)gateway_headers(array of string)
AlertPreview
Section titled “AlertPreview”Type: object
mode(string, required)from(string (date-time), required)to(string (date-time), required)read_store(string, required, one of"database","analytics_store")bucket_seconds(integer (int64), required)matches(integer (int64), required) — Rows the filters matched.fired(integer, required) — Windows (per group) in which the rule would have fired; for a realtime rule, the matches.windows(array of object, required, max items 500)from(string (date-time), required)group(string)value(number or null, required)rows(integer (int64), required)fired(boolean, required)
samples(array of AlertSample, required, max items 20)truncated(boolean, required)findings(array of object) — Built-in rules: what the rule would raise now.group(string)title(string, required)value(number, required)detail(object, required)
note(string)
AlertRule
Section titled “AlertRule”Type: object
An alert rule (T202). A custom rule sets mode and signal; a built-in rule sets builtin and its tuning instead. Empty optional fields take the defaults shown; GET returns the effective values under applied.
id(string, read-only) — Assigned by the gateway for stored rules; chosen by the operator for YAML rules.name(string, required, min length 1, max length 120)description(string, max length 500)scope(string, required, one of"global","organization","team") — global covers every team (alert_rules:global to read or write); organization covers the teams of organization_id as they are at each scan; team covers team_id.organization_id(string)team_id(string)disabled(boolean, defaultfalse)mode(string, one of"realtime","scheduled") — realtime matches each request or span as it is recorded (filters only, at least one). scheduled scans a window.signal(string, one of"requests","spans","prompts","experiments") — requests is the request log. spans is the span store (features.span_store). prompts is the prompt events (T186.013, features.prompt_events): a realtime rule only, matched on each prompt event of its own team or organization, over the fields event, prompt_id, team, path and revision; it has no backtest (409 backtest_unavailable) and is refused with the flag off (409 feature_disabled). experiments is the finished experiment runs (T186.012, features.experiment_traces): a realtime rule only, matched on each experiment_finished event of its own team or organization, over team, status, dataset_id, model, suite_id, verdict, items, failed and duration_ms; no backtest, refused with the flag off.filters(array of AlertRuleFilter, max items 10)query(string, max length 4096) — T186.007, requires trace_query; scheduled custom rules only. A query in the gateway’s query language, joined by AND to the filters: the logs scope for signal requests (a span field keeps the requests that have such a span, an evaluation term those whose trace has such a result), the spans scope for signal spans (no child. or parent. terms). A rule has no reader, so a word or phrase (captured content) is refused. With trace_query off the rule is not scanned (error class query_disabled) rather than run without its query.metric(string, one of"count","error_count","error_rate","avg_latency_ms","p50_latency_ms","p95_latency_ms","p99_latency_ms","spend_usd","total_tokens", default"count") — Scheduled only. Computed over every matching row. spend_usd and total_tokens apply to requests; spend_usd sums known valuations and is unknown, never zero, when no row is priced.operator(string, one of"gt","gte","lt","lte", default"gte")threshold(number, min 0) — Scheduled only. A count with threshold 0 and gte means any match (1); any other metric with gte 0 is refused, since it is always true. error_rate is a ratio from 0 to 1.min_samples(integer, min 0, max 1000000) — Matching rows a rate or latency metric needs before it is judged.window(string, default"5m") — Scheduled only: a Go duration of whole seconds from 1m to 744h.group_by(string) — One groupable field: the condition is judged per value and each value gets its own alert (the 50 highest values per scan, the 50 lowest for lt and lte, at most 20 alerts).schedule(string) — Five-field cron expression in UTC (minute hour day-of-month month day-of-week; *, numbers, ranges, lists and steps). Set schedule or every, not both.every(string, default"1m") — Fixed interval, a Go duration from 30s to 24h.severity(string, one of"info","warning","critical", default"warning")cooldown(string, default"15m") — Minimum time between two notifications of the same rule and group, 1m to 168h. Matches in between add to the active alert.channels(array of string, max items 8) — Alert channel IDs that carry the alert_rule event and are open to the rule’s scope.builtin(string, one of"spend_spike","traffic_spike","latency_spike","error_rate_spike","deprecated_model_traffic") — A built-in rule: always scheduled over requests, with a fixed metric and window.multiplier(number, min 1.1, max 1000) — Spike rules: fires when the last 24 hours reach multiplier times the daily baseline.minimum_increase(number, min 0) — Spike rules: and exceed the baseline by this much (USD, requests, milliseconds or a ratio).baseline_days(integer, default7, min 2, max 28)deprecated_models(array of object, max items 100) — deprecated_model_traffic: gateway model IDs or upstream model names the operator declares deprecated, next to the ones the model registry publishes.model(string, required)date(string (date))
source(string, one of"yaml","console", read-only)
AlertRuleFilter
Section titled “AlertRuleFilter”Type: object
field(string, required) — A field of the rule’s signal. Requests: team, model, requested_model, provider, operation, status, status_class, error_code, origin, key_id, principal, end_user, guardrail, timeout_kind, service_tier, duration_ms, input_tokens, output_tokens, attempts. Spans: team, kind, subkind, name, origin, status, http_status, error_code, model, provider, key_id, principal, duration_ms.op(string, one of"eq","neq","gt","gte","lt","lte", default"eq") — eq and neq take 1-20 values (any of, none of). gt, gte, lt and lte take one whole number on a numeric field (status, http_status, duration_ms, input_tokens, output_tokens, attempts).values(array of string, required, min items 1, max items 20)
AlertRuleList
Section titled “AlertRuleList”Type: object
alert_rules(object, required) — The rules and the scheduler tick, under the names of the YAML block alerting.alert_rules.tick(string, required) — Effective alerting.alert_rules.tick: how often each replica looks for due scheduled rules and reloads the realtime ones (5s-5m, default 30s; YAML only, applied without a restart).items(array of AlertRuleView, required)
catalog(object, required)signals(object, required)- any other key: object
builtin(array of object, required)id(string, required)name(string, required)description(string, required)metric(string)multiplier(number)minimum_increase(number)baseline_days(integer)min_samples(integer)schedule(string, required)cooldown(string, required)severity(string, required)
operators(array of string, required)filter_ops(array of string, required)severities(array of string, required)limits(object, required)- any other key: integer
write(object, required)scopes(array of string, required)teams(array of string, required)organization(string, required)all(boolean, required)
delivery(boolean, required) — features.alert_channels: off means alerts are recorded but no channel receives them.span_store(boolean, required)channels(array of object, required)id(string, required)name(string, required)kind(string, required)global(boolean, required)organization(boolean, required) — Open to the organization this session administers.teams(array of string, required) — The session’s own teams the channel is open to; never another tenant’s.rule_organizations(array of string) — Only for a session with alert_rules:global: the channel’s owner list.rule_teams(array of string) — Only for a session with alert_rules:global: the channel’s owner list.
AlertRuleState
Section titled “AlertRuleState”Type: object
next_due_at(string (date-time))scanning(boolean, required) — A replica holds the rule’s scan lease now.evaluated_at(string (date-time))outcome(string, one of"ok","firing","no_data","error")error_class(string) — timeout, canceled, span_store_disabled, invalid_scan or storage_unavailable.value(number) — The highest value the last scan saw.duration_ms(integer)read_store(string, one of"database","analytics_store")muted_until(string (date-time))muted_by(string)
AlertRuleView
Section titled “AlertRuleView”Type: AlertRule and object
- All of (1): AlertRule
- All of (2): object
version(integer (int64)) — Stored rules only.created_by(string)updated_by(string)created_at(string (date-time))updated_at(string (date-time))applied(object, required) — The rule’s effective values, defaults filled in.mode(string, required)signal(string, required)metric(string)operator(string)threshold(number, required)window(string)schedule(string)every(string)severity(string, required)cooldown(string, required)multiplier(number)minimum_increase(number)baseline_days(integer)min_samples(integer)
state(AlertRuleState, required)can_manage(boolean, required) — Whether this session may edit and delete the rule; false for YAML rules.can_mute(boolean, required) — Whether this session may mute the rule; also true for a YAML rule inside its scope.
AlertSample
Section titled “AlertSample”Type: object
One request or span a rule matched: metadata and identifiers, never content.
at(string (date-time), required)request_id(string)trace_id(string)span_id(string)team(string)name(string) — The operation of a request, or the name of a span.model(string)provider(string)status(integer)error_code(string)duration_ms(integer (int64), required)
AlertSendResult
Section titled “AlertSendResult”Type: object
delivered(boolean, required)http_status(integer)error_class(string)latency_ms(integer (int64), required)
AliasGuardrail
Section titled “AliasGuardrail”Type: object
A guardrail as an alias’s Used by lists it (T186.015): what it is and where it runs, never its configuration
id(string, required)name(string, required)type(string, required) — local, or the provider type (judge, moderation, …)mode(string, required)stages(array of string, required)order(integer, required) — Its place in the configured order, from 1evaluator_id(string)evaluator_name(string)on_error(string, one of"block","allow")disabled(boolean)
AnalyticsBreakdown
Section titled “AnalyticsBreakdown”Type: object
name(string, required)requests(integer, required, min 0)success(integer, required, min 0)errors(integer, required, min 0)input_tokens(integer, required, min 0)output_tokens(integer, required, min 0)token_reports(integer, required, min 0) — Persisted events reporting at least one input or output counter, including explicit zero. Does not assert both counters or complete billing usage.average_latency_ms(number, required, min 0)p95_latency_ms(number, required, min 0)p95_unavailable(boolean) — True when complete days came from rollups (analytics_rollup_reads); p95_latency_ms is then 0 and is not a latency
AnalyticsPoint
Section titled “AnalyticsPoint”Type: object
time(string (date-time), required)requests(integer, required, min 0)success(integer, required, min 0)errors(integer, required, min 0)input_tokens(integer, required, min 0)output_tokens(integer, required, min 0)token_reports(integer, required, min 0) — Persisted events reporting at least one input or output counter, including explicit zero. Does not assert both counters or complete billing usage.average_latency_ms(number, required, min 0)p95_latency_ms(number, required, min 0)p95_unavailable(boolean) — True when complete days came from rollups (analytics_rollup_reads); p95_latency_ms is then 0 and is not a latency
AnalyticsReport
Section titled “AnalyticsReport”Type: object
Authorized persisted metadata. Aggregations use bounded queries, not a complete traffic ledger. Percentiles are computed from events and must not be averaged across buckets or groups.
tag_dimension(string) — Optional requested historical tag nameby_tag(array of AnalyticsBreakdown, max items 20)from(string (date-time), required)to(string (date-time), required)bucket_seconds(integer, one of3600,86400) — UTC buckets; hourly through 7 days, daily above. Missing buckets contain no persisted events.dimension_limit(20)truncated_dimensions(array of string) — Dimensions with additional groups beyond the returned top 20, ranked by persisted request count.summary(AnalyticsSummary, required)previous_summary(AnalyticsSummary) — Optional preceding equal-duration interval with identical filters; requires analytics_comparison.timeline(array of AnalyticsPoint, required, max items 2161)by_model(array of AnalyticsBreakdown, required, max items 20)by_provider(array of AnalyticsBreakdown, required, max items 20)by_principal(array of AnalyticsBreakdown, required, max items 20)by_team(array of AnalyticsBreakdown, required, max items 20)by_key(array of AnalyticsBreakdown, required, max items 20)by_operation(array of AnalyticsBreakdown, required, max items 20)by_status(array of AnalyticsBreakdown, max items 20)by_origin(array of AnalyticsBreakdown, max items 7) — evaluation_tracing (T186.004): calls by origin, every row of each, helper calls and fallback attempts included, so requests here counts calls; a row with no origin is app. Omitted with the flag off.by_helper_kind(array of AnalyticsBreakdown, max items 21) — evaluation_tracing (T186.004 S3b): helper calls by sub-kind (requests counts calls); a helper row written without one is unspecified. Omitted with the flag off.recent(array of UsageEvent, required, max items 50)rollup_coverage(object) — Present when analytics_rollup_reads answered complete, settled UTC days [from, to) from rollups; edges, the 50 recent events and end-user/tag rankings still read raw eventsfrom(string (date-time), required)to(string (date-time), required)days(integer, required, min 1)built_at(string (date-time), required) — Oldest build time among the covered days
read_store(ReadStore)
AnalyticsSummary
Section titled “AnalyticsSummary”Type: object
requests(integer, required, min 0)success(integer, required, min 0)errors(integer, required, min 0)input_tokens(integer, required, min 0)output_tokens(integer, required, min 0)token_reports(integer, required, min 0) — Persisted events reporting at least one input or output counter, including explicit zero. Does not assert both counters or complete billing usage.average_latency_ms(number, required, min 0)p95_latency_ms(number, required, min 0)p95_unavailable(boolean) — True when complete days came from rollups (analytics_rollup_reads); p95_latency_ms is then 0 and is not a latency
AnalyticsView
Section titled “AnalyticsView”Type: object
id(string, required, pattern^av_[a-f0-9]{24}$)name(string, required)description(string, required)owner(string, required) — Console user ID or bootstrap identity of the ownerown(boolean, required)team(string or null, required)share_effective(boolean, required) — The team currently sees this view; false while the owner cannot act for the teamdefinition(AnalyticsViewDefinition, required)version(integer, required, min 1)created_at(string (date-time), required)updated_at(string (date-time), required)can_edit(boolean, required)can_delete(boolean, required)
AnalyticsViewDefinition
Section titled “AnalyticsViewDefinition”Type: object
Schema version 1 of a saved analytics view (T034.005). Unknown fields are refused. Filters use the same names and bounds as GET /api/v1/admin/analytics and are validated again when the view is loaded.
schema(1, required)filters(object, required)range(string, required, one of"15m","1h","24h","7d","30d","90d","custom")from(string (date-time)) — Only with range customto(string (date-time)) — Only with range custom; after from, at most 90 days laterprincipal(string, max length 256)model(string, max length 256)team(string, max length 256)provider(string, max length 256)key_id(string, max length 256)operation(string, max length 256)end_user(string, max length 128)tags(string, max length 1024) — Usage tag filter text as typed in the consoletag_dimension(string, pattern^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$)
widgets(array of object, required, min items 1, max items 8)title(string, required, min length 1, max length 80)measure(string, required, one of"requests","tokens","error_rate","latency")group_by(string, required, one of"time","model","provider","team","principal","key","operation")chart(string, required, one of"line","bar","table") — line exactly when group_by is time; bar or table otherwiselimit(integer, min 1, max 20) — Groups shown; dimension widgets only, default 10
AnalyticsViewWrite
Section titled “AnalyticsViewWrite”Type: object
name(string, required, min length 1, max length 120)description(string, max length 500)team(string or null, min length 1) — Team to share with read-only; null or omitted is privatedefinition(AnalyticsViewDefinition, required)version(integer, min 1) — Required on update only
ApplicationConditionalIntegerParameterDefinition
Section titled “ApplicationConditionalIntegerParameterDefinition”Type: object
- One of (1): object
key("secret_manager.refresh_seconds", required)group("secret_manager", required)kind("defaulted_integer", required)default("300", required)minimum("10", required)maximum("86400", required)zero_is_default(true, required)sources(array of string, required, min items 2, max items 2)restart_required(true, required)yaml_requires_restart(true, required)validation_feature("secret_manager", required)
ApplicationDefaultedIntegerParameterDefinition
Section titled “ApplicationDefaultedIntegerParameterDefinition”Type: object or object or object or object or object
- One of (1): object
key("metadata_retention.batch_size", required)group("metadata_retention", required)kind("defaulted_integer", required)default("250", required)minimum("1", required)maximum("1000", 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("realtime.max_sessions_per_key", required)group("realtime", required)kind("defaulted_integer", required)default("100", required)minimum("1", required)maximum("100000", required)zero_is_default(true, required)sources(array of string, required, min items 2, max items 2)restart_required(true, required)yaml_requires_restart(true, required)
- One of (3): object
key("realtime.default_max_output_tokens", required)group("realtime", required)kind("defaulted_integer", required)default("4096", required)minimum("1", required)maximum("100000", required)zero_is_default(true, required)sources(array of string, required, min items 2, max items 2)restart_required(true, required)yaml_requires_restart(true, required)
- One of (4): object
key("log_destinations[].flush_seconds", required)group("log_destinations", required)kind("defaulted_integer", required)default("10", required)minimum("1", required)maximum("300", required)zero_is_default(true, required)sources(array of string, required, min items 2, max items 2)restart_required(true, required)yaml_requires_restart(true, required)
- One of (5): object
key("log_destinations[].max_batch", required)group("log_destinations", required)kind("defaulted_integer", required)default("500", required)minimum("1", required)maximum("5000", required)zero_is_default(true, required)sources(array of string, required, min items 2, max items 2)restart_required(true, required)yaml_requires_restart(true, required)
ApplicationDurationParameterDefinition
Section titled “ApplicationDurationParameterDefinition”Type: object or object
- One of (1): object
key("metadata_retention.interval", required)group("metadata_retention", required)kind("managed_duration", required)default("10m", required)minimum("1m", required)maximum("24h0m", required)presence("default", required)inherit_from(null, required)creation_preset(null, required)maximum_text_length(null, required)minimum_from(null, 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("realtime.max_session", required)group("realtime", required)kind("managed_duration", required)default("30m", required)minimum("1m", required)maximum("24h0m", required)presence("default", required)inherit_from(null, required)creation_preset(null, required)maximum_text_length(null, required)minimum_from(null, required)sources(array of string, required, min items 2, max items 2)restart_required(true, required)yaml_requires_restart(true, required)
ApplicationEnumParameterDefinition
Section titled “ApplicationEnumParameterDefinition”Type: object
- One of (1): object
key("logging.level", required)group("logging", required)kind("managed_enum", required)default("info", required)values(["info","warn","error"], required)sources(array of string, required, min items 2, max items 2)restart_required(true, required)yaml_requires_restart(true, required)
AppliedManagedKeyCachePolicy
Section titled “AppliedManagedKeyCachePolicy”Type: ManagedKeyCachePolicy and object
Canonical durations and filled effective capacities, without changing the reviewed raw override or source.
- All of (1): ManagedKeyCachePolicy
- All of (2): object
max_entries(any, min 1)max_bytes_mib(any, min 1)
AppTraceTotals
Section titled “AppTraceTotals”Type: object
The application’s own model spans of a trace that the gateway did not serve (T186.016); their cost is counted in the trace totals only for these (T186.016b)
model_spans(integer, min 0)served_by_gateway(integer, min 0)input_tokens(integer or null)output_tokens(integer or null)total_tokens(integer or null)cost_usd(string) — Declared or price-book cost of the unserved spanscost_state(string, one of"known","partial","unknown","none")
AskAIProposal
Section titled “AskAIProposal”Type: object
T150. A change proposed by m7 ai and waiting for confirmation: the exact admin request the server built and the card the console shows.
id(string, required, pattern^askp_[0-9a-f]{32}$) — Also the idempotency key: it can run at most onceaction(string, required, one of"key_create","key_revoke","team_create","budget_set","team_member_add","team_member_remove")method(string, required, one of"POST","PUT")path(string, required) — The admin route, without the /v1 prefix, e.g. /api/admin/keysbody(object) — The exact JSON body; absent for a revocationstate(string, required, one of"pending")expires_at(string (date-time), required) — 10 minutes after the proposal, on the database clockcard(object, required)title(string, required)target(string, required)destructive(boolean) — Revocations and membership removalschanges(array of object, required)field(string, required)before(any, required) — Current value read with the asker’s session; null when the field is newafter(any, required) — Value after the change
notes(array of string)
AttributedModelRankings
Section titled “AttributedModelRankings”Type: object
source("epoch_eci", required)source_url("https://epoch.ai/eci", required)data_url("https://epoch.ai/data/benchmark_data.zip", required)license("CC BY 4.0", required)license_url("https://creativecommons.org/licenses/by/4.0/", required)attribution(string, required) — Creator/source credit and transformation notice.method(string, required) — Source metric and gateway sort/tie rules.window(string, required) — Cumulative source snapshot; no local usage or trial window.unit("eci_points", required)data_sha256(string, required, pattern^[0-9a-f]{64}$) — Original downloaded archive identity; not a signature.fetched_at(string (date-time), required) — Successful capture time, not evaluation recency.stale(boolean, required)warnings(array of string, required)models(array of object, required, max items 5000)rank(integer, required, min 1, max 5000)model(string, required) — Exact source identity; never an inferred route or provider model ID.name(string, required)organization(string)score(string, required, pattern^-?[0-9]+(\.[0-9]+)?$) — ECI points, not a percentage or ceiling of100.ci_low(string, pattern^-?[0-9]+(\.[0-9]+)?$) — Optional source credible-interval lower bound; paired with ci_high.ci_high(string, pattern^-?[0-9]+(\.[0-9]+)?$)source_date(string (date), required) — Date reported in source row; not the capture/evaluation timestamp.
AttributionGroupPolicy
Section titled “AttributionGroupPolicy”Type: object
groups(array of object, max items 256)id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)kind(string, required, one of"application","harness","repository","custom")team_id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)name(string, max length 120)
rules(array of object, max items 512)id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)group(string, required)precedence(integer, required, min 1, max 100000)key_ids(array of string, max items 64)models(array of string, max items 32)
teams(array of object, max items 128)team_id(string, required, pattern^[a-z][a-z0-9_-]{1,63}$)unmatched(string, required, one of"unattributed","default_group","deny")default_group(string) — Required with unmatched default_group; a group of the same team
AttributionReport
Section titled “AttributionReport”Type: object
from(string (date-time), required)to(string (date-time), required)truncated(boolean, required)coverage(object, required)events(integer (int64), required)by_rule(integer (int64), required)team_default(integer (int64), required)unmatched(integer (int64), required)not_evaluated(integer (int64), required)versions(array of integer (int64), required)
groups(array of object, required, max items 500)team(string, required)group(string, required) — Empty for unmatched requestssource(string, required, one of"rule","team_default","unmatched")requests(integer (int64), required)input_tokens(integer (int64), required)output_tokens(integer (int64), required)estimated_usd(string, required) — Sum of known valuations only; an estimate, not a provider chargevalued_known(integer (int64), required)valued_partial(integer (int64), required)valued_unknown(integer (int64), required)not_valued(integer (int64), required)tokens_unknown(integer (int64), required) — Requests without a reported token count; token sums exclude themrule_versions(integer (int64), required)budget_charge(BudgetChargeSummary)
AttributionRequirement
Section titled “AttributionRequirement”Type: object
What every inference request must declare (attribution_requirements, T140). Set on a key and on a team; the request must meet their union, so a key adds to its team’s requirement and never relaxes it. Checked for every request admitted under a route:<capability> scope except route:models, before rate limits, guardrails, routing, quota reservation and any provider call; a request that lacks something answers 400 missing_attribution, naming each missing item and whether the team or the key policy requires it.
end_user(boolean, defaultfalse) — Require the X-Gateway-End-User header (the OpenAI user body field does not count). Needs end_user_tracking.tags(array of string, default[], max items 8) — Usage tag names the request’s merged tags (X-Gateway-Tags plus the team defaults) must contain. Each must be in usage_tags.allowed_values when written; needs usage_tags.
AttributionRuleSet
Section titled “AttributionRuleSet”Type: object
version(integer (int64), required)source(string, required, one of"yaml","console")fingerprint(string, required, pattern^[a-f0-9]{64}$)policy(AttributionGroupPolicy, required)actor(string, required)request_id(string, required)created_at(string (date-time), required)
AttributionRuleSetSnapshot
Section titled “AttributionRuleSetSnapshot”Type: object
orphaned_group_policies(array of string, required) — IDs of enabled group quota policies whose group this version does not define; they match no requestorphaned_group_policies_unknown(boolean, required) — True when the quota catalog could not be read; the orphan list then proves nothingversion(integer (int64), required)source(string, required, one of"yaml","console")fingerprint(string, required)policy(AttributionGroupPolicy, required)created_at(string (date-time), required)base_fingerprint(string, required)base_differs(boolean, required)group_kinds(array of string, required)
AttributionRuleSetSummary
Section titled “AttributionRuleSetSummary”Type: object
version(integer (int64), required)source(string, required, one of"yaml","console")fingerprint(string, required)groups(integer, required)rules(integer, required)teams(integer, required)actor(string, required)request_id(string, required)created_at(string (date-time), required)
AuditChainFailure
Section titled “AuditChainFailure”Type: object
kind(string, required, one of"missing","duplicate","altered","beyond_head","head_mismatch","head_missing","anchor_mismatch","anchor_unattested","below_anchor","expected_mismatch","expected_beyond_head","anchor_unexpected")seq(integer (int64), required, min 0) — Chain position where verification stoppedsource(string, one of"identity","control")row_id(integer (int64))detail(string, required)
AuditChainReport
Section titled “AuditChainReport”Type: object
status(string, required, one of"ok","tampered","not_started")verified_rows(integer (int64), required, min 0)head_seq(integer (int64), required, min 0)head_hash(string, required) — Hex SHA-256 of the newest seal; keep a copy outside the database to detect a full rewriteanchor_seq(integer (int64), required, min 0)anchor_hash(string, required)unsealed(integer (int64), required, min 0) — Committed audit rows not sealed yet: pending, not verifiedfailure(null or AuditChainFailure, required)- One of (1): null
- One of (2): AuditChainFailure
verified_at(string (date-time), required)expected(object) — Present when the request carried expectseq(integer (int64), required, min 0)hash(string, required)result(string, one of"match","mismatch","purged")
expected_anchor(object) — Present when the request carried expect_anchorseq(integer (int64), required, min 0)hash(string, required)result(string, one of"match","mismatch")
mcp_executions(object) — T168, present with mcp_execution_chain: the MCP execution chain, verified in the same request. status tampered there does not change the audit chain’s own status.status(string, required, one of"ok","tampered","not_started")verified_rows(integer (int64), required, min 0)head_seq(integer (int64), required, min 0)head_hash(string, required) — Hex SHA-256 of the newest MCP seal, also logged as mcp_execution_chain_sealedanchor_seq(integer (int64), required, min 0)anchor_hash(string, required)unsealed(integer (int64), required, min 0) — Closed records not sealed yetopen(integer (int64), required, min 0) — Records still open (started or dispatched); they are sealed once closedfailure(null or AuditChainFailure, required)- One of (1): null
- One of (2): AuditChainFailure
verified_at(string (date-time), required)
AuditChainStatus
Section titled “AuditChainStatus”Type: object
started(boolean, required)started_at(string or null (date-time))head_seq(integer (int64), required, min 0)head_hash(string, required)sealed_at(string or null (date-time))anchor_seq(integer (int64), required, min 0)anchor_hash(string, required)unsealed(integer (int64), required, min 0)last_verified_at(string or null (date-time))last_verify_status(string, required, one of"","ok","tampered")last_verify_rows(integer (int64), min 0)last_failure(null or AuditChainFailure)- One of (1): null
- One of (2): AuditChainFailure
checkpoints(array of object, required, max items 20)kind(string, required, one of"genesis","purge")through_seq(integer (int64), required, min 0)chain_hash(string, required)purged(integer (int64), required, min 0)request_id(string, required)created_at(string (date-time), required)
AuditPage
Section titled “AuditPage”Type: object
items(array of object, required)at(string (date-time), required)source(string, required, one of"identity","control")action(string, required)target_id(string, required)actor(string, required)request_id(string, required)version(integer) — Version of the audited resource or control snapshot as defined by the action; absent for identity events. Not a globally comparable sequence across resources.
has_more(boolean, required)next_offset(integer, required, min 0)
AuditRetentionPolicy
Section titled “AuditRetentionPolicy”Type: object
retain_days(integer, min 0, max 3650) — 0 preserves (only without a ceiling); otherwise minimum_days..maximum_days or 3650minimum_days(integer, min 0, max 3650) — Contractual floor 30..3650; 0 means 365maximum_days(integer, min 0, max 3650) — Contractual ceiling; 0 means nonebatch_size(integer, min 0, max 5000) — Rows per audit table per batch; 0 means 500interval(string) — Go duration 1m..24h; empty means 1h
AuditRetentionPreview
Section titled “AuditRetentionPreview”Type: object
policy_version(integer (int64), min 0)retain_days(integer, min 0, max 3650)cutoff(string or null (date-time))sample_limit(10000)eligible_identity_sample(integer, min 0, max 10000)eligible_control_sample(integer, min 0, max 10000)oldest(string or null (date-time))truncated(boolean)preserving(boolean)active_legal_holds(integer, min 0)blocked(boolean)
AuditRetentionSettings
Section titled “AuditRetentionSettings”Type: object
The YAML block audit_retention as the view reports it (T183), under the block’s name and the YAML key.
revision(integer (int64), required, min 0) — audit_retention.revision of the YAML in force; an override stays tied to the revision it was saved against.
AuditRetentionView
Section titled “AuditRetentionView”Type: object
audit_retention(AuditRetentionSettings)base_fingerprint(string, pattern^[a-f0-9]{64}$)base(AuditRetentionPolicy)effective(AuditRetentionPolicy)source(string, one of"yaml","console")version(integer (int64), min 0)base_conflict(boolean)next_run_at(string or null (date-time))last_run_at(string or null (date-time))last_cutoff(string or null (date-time))last_skip(string, one of"","legal_hold","chain_broken") — chain_broken: the audit hash chain prefix due for purge did not verify, so nothing sealed was deleted (T063 tamper evidence)deleted_identity(integer, min 0) — Rows removed from the identity audit table by the last batchdeleted_control(integer, min 0) — Rows removed from the control audit table by the last batchtotal_deleted(integer, min 0)purged_through(string or null (date-time)) — Newest occurred_at ever purgedactive_legal_holds(integer, min 0)