Skip to content

API schemas: I

Type: object

  • kind (string, required, one of "keys", "teams", "users")
  • id (string, required)
  • from (string (date-time), required)
  • to (string (date-time), required)
  • key (KeyInventoryItem)
  • team (TeamInventoryItem) — Team metadata is also included for managed key details
  • user (ConsoleUser)
  • operational_gates (object, required) — Capability operational flags only; does not grant model or route access
    • any other key: boolean
  • policy (object, required)
    • state (string, required, one of "configured", "console_role", "missing")
    • enforced (boolean, required) — Whether the team ceiling is currently enforced; not a permission grant
    • source (string, required, one of "none", "yaml", "console", "key")
    • allowed_models (array of string, required)
    • scopes (array of string, required)
    • console_permissions (array of string, required) — Configured console role actions only; disabled state and role flags still apply
    • note (string, required)
  • usage (object, required)
  • audit (object, required)
    • state (IdentityDetailSectionState, required)
    • items (array of object, required, max items 50)
      • 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)
    • note (string, required)
  • limits (object, required)

Type: string, one of "available", "disabled", "restricted", "unavailable"

Type: object

  • group (string, required, min length 1, max length 256) — Exact group ID: an OIDC claim value, a SAML attribute value, or a SCIM group’s externalId (displayName when it has none)
  • team (string, required, max length 128) — An existing team ID

Type: object

  • version (integer (int64))
  • source (string, one of "console", "yaml", "none")
  • effective (object)
    • source (string, one of "login", "scim")
    • oidc_groups_claim (string)
    • saml_groups_attribute (string)
    • mappings (array of IdPTeamMapping)
  • base (object)
  • error (string)
  • note (string)
  • updated_by (string)
  • updated_at (string (date-time))

Type: object

The image_inputs.* settings (T168, T183), effective, under the YAML block’s name and leaf names. Read at startup; a change is a configuration rollout.

  • reference_prefixes (array of string, required) — image_inputs.reference_prefixes: the gs:// and s3:// prefixes a caller may name; empty means none.
  • download (object, required) — image_inputs.download, the server-side download bounds with their defaults applied.
    • max_bytes (integer, required)
    • timeout (string, required)
    • max_redirects (integer, required)
    • max_images (integer, required)

Type: object

Effective startup infrastructure settings for global console roles. Endpoints, secret references, certificate paths and credentials are never returned. Changing startup trust requires an operator rollout.

  • source (string, required)
  • source_ip (SourceIPStartupPolicy)
  • key_rotation (KeyRotationStatus)
  • admin (object) — The admin block as read at startup (token_login, token_bearer, login_lockout) and the console sign-in methods they leave. Read-only; changing it needs a rollout.
    • token_login (boolean, required) — Whether the shared admin and viewer tokens may open a console session.
    • source (string, required, one of "default", "yaml")
    • default (true, required)
    • restart_required (true, required)
    • methods (array of string, required)
    • token_bearer (boolean, required) — Whether the shared admin and viewer tokens authenticate the admin API as Authorization Bearer.
    • token_bearer_source (string, required, one of "default", "yaml")
    • token_bearer_default (false, required)
    • login_lockout (object) — admin.login_lockout as read at startup (T137). After max_failures wrong console tokens from one client address within window, that address gets 429 on every token sign-in, the right token included, until lockout ends. Per process, in memory.
      • enabled (boolean, required) — false when max_failures is 0.
      • max_failures (integer, required) — 0 (off) or 3-1000; default 10
      • window (string, required) — Go duration, 1m-24h; default 10m0s
      • lockout (string, required) — Go duration, 1m-24h; default 15m0s
      • source (string, required, one of "default", "yaml")
  • inference_http (object) — Inference HTTP settings as read at startup; changing them requires a rollout.
    • restart_required (true, required)
    • cors (object) — T131: server.cors for the inference API (/v1/* and /v1beta/), never the console or the admin API. Off until allowed_origins names an origin; a preflight is answered before authentication; ‘’ only without allow_credentials. allowed_headers is the applied list (the built-in defaults when none is configured); an entry ending in -* matches a header prefix.
      • enabled (boolean, required)
      • allowed_origins (array of string, required, max items 100)
      • allowed_headers (array of string, required, max items 100)
      • max_age (string, required) — Applied preflight cache time as a Go duration.
      • allow_credentials (boolean, required)
    • response_headers (object) — T138: server.response_headers, each part off by default. provider_rate_limits relays the provider’s six x-ratelimit-* budget headers; attempts adds X-Gateway-Attempts; served_target adds X-Gateway-Served-Model (plain model names only); cost adds X-Gateway-Cost-USD when the valued cost is known (a header on a held answer, else an HTTP trailer), never an estimate.
      • provider_rate_limits (boolean, required)
      • attempts (boolean, required)
      • served_target (boolean, required)
      • cost (boolean, required)
      • stream_cost (boolean, required) — T164.011: also writes the cost on a stream’s final usage event (the usage-only Chat Completions chunk, response.completed or response.incomplete, the Messages message_delta) as the top-level member gateway_cost_usd, a decimal string, for clients that cannot read HTTP trailers. Same value and unknown rule as the trailer: absent when not known. Requires cost.
    • client_keepalive (object) — T123: network.client_keepalive_interval. After this much silence on a 200 text/event-stream inference response, the gateway writes the SSE comment ‘: keepalive’ at an event boundary. Null interval is off (the default).
      • interval (string or null, required) — Applied interval as a Go duration; null when off.
      • source (string, required, one of "default", "yaml")
      • min ("1s", required)
      • max ("5m0s", required)
    • request_body (object, required) — T121: request body limits of aliases without models[].max_request_body_mib. chat_mib is Chat Completions, other_mib every other inference route; both are network.max_request_body_mib when set (source yaml), else the built-in 1 and 8 MiB (source default). min_mib and max_mib bound an explicit value.
      • chat_mib (integer, required, min 1, max 64)
      • other_mib (integer, required, min 1, max 64)
      • source (string, required, one of "default", "yaml")
      • min_mib (1, required)
      • max_mib (64, required)
  • network (object, required)
    • request_timeout (string, required)
    • response_header_timeout (string, required)
    • connect_timeout (string, required)
    • proxy_configured (boolean, required)
    • custom_ca_configured (boolean, required)
    • client_certificate_configured (boolean, required)
    • force_ipv4 (boolean, required)
    • max_request_body_mib (integer, min 0, max 64) — network.max_request_body_mib as configured; 0 keeps the route defaults (1 MiB for Chat Completions, 8 MiB for the other inference routes). The applied limits are in inference_http.request_body.
    • client_keepalive_interval (string) — network.client_keepalive_interval as configured; empty or 0s sends no keepalive comment. The applied interval is in inference_http.client_keepalive.
    • max_inflight_requests (integer, required, min 1) — Concurrent inference requests admitted per instance (ADR 0110).
    • max_buffered_request_mib (integer, required, min 8) — Request body memory reserved across admitted inference requests.
    • inflight_wait (string, required) — How long a request waits for admission before 503 overloaded.
    • stream_timeouts_enabled (boolean, required) — Applied independent-clock flag captured by new requests.
    • stream_first_byte_timeout (string or null, required) — Applied wait from provider headers to first byte; null when disabled.
    • stream_idle_timeout (string or null, required) — Applied blocked-read idle limit; explicit 0s disables it. Null when disabled.
    • stream_max_duration (string or null, required) — One maximum duration across provider queues and attempts; null when disabled.
    • client_write_stall_timeout (string or null, required) — Applied deadline for each client Write and Flush; null when disabled.
    • stream_timeout_sources (object, required) — Source of each active clock; empty when independent clocks are disabled.
      • any other key: string
    • stream_admission_enabled (boolean, required) — Applied boot flag; changing it requires a rollout.
    • max_relay_streams (integer or null, required, min 0, max 100000) — Applied detached relay count; zero retains generation slots. Null when disabled.
    • max_relay_buffer_mib (integer or null, required, min 16, max 65536) — Logical retained relay buffer budget; not a hard RSS guarantee. Null when disabled.
    • admission_memory_percent (integer or null, required, min 1, max 100) — Applied memory share percentage; null when disabled.
    • stream_reservation_kib (integer or null, required, min 80, max 65536) — Applied nominal per-relay reservation before translator buffers; null when disabled.
    • over_memory_share (boolean or null, required) — Explicit budgets exceed the detected memory share; null when disabled.
    • memory_limit_mib (integer, required, min 0) — Detected boot cgroup memory limit; zero means no limit was detected.
    • admission_sources (object, required)
      • max_buffered_request_mib (string, required, one of "default", "derived", "yaml")
      • max_relay_streams (string, one of "default", "derived", "yaml")
      • max_relay_buffer_mib (string, one of "default", "derived", "yaml")
      • admission_memory_percent (string, one of "default", "derived", "yaml")
      • stream_reservation_kib (string, one of "default", "derived", "yaml")
  • database (object, required) — The main database (storage.database). engine is what serves it (postgres, the only engine today; an omitted storage.database.engine means postgres) and engine_source says whether it was written in the YAML. admission_timeout bounds each database step of one inference request’s admission and quota settlement (fail-closed). Startup configuration, not health.
    • engine (string, required, one of "postgres")
    • engine_source (string, required, one of "default", "yaml")
    • configured (boolean, required)
    • max_connections (integer, required, min 1, max 1000)
    • min_connections (integer, required, min 0, max 1000)
    • connect_timeout (string, required)
    • acquire_timeout (string, required)
    • admission_timeout (string) — storage.database.admission_timeout, 250ms to 30s (default 2s). Present only when the request selects parameter_catalog_version 26 or later.
    • failover_warning (null or object) — Present (object or null) only with parameter_catalog_version 26 or later. Not null when the connection URL lists several hosts and connect_timeout is not below the request bound (the smaller of acquire_timeout and admission_timeout): after a failover, requests that need a fresh connection fail until the pool refills in the background. The host count and durations only, never the URL.
      • One of (1): null
      • One of (2): object
    • tls_mode (string, required, one of "dsn", "verify_full", "disable")
  • cache (object, required)
    • backend (string, required, one of "memory", "redis", "memcached")
    • shared (boolean, required)
    • enabled (boolean, required)
    • semantic_shared (boolean) — semantic_cache and distributed_semantic_cache are both on: the chat answer cache is kept in this Redis backend instead of PostgreSQL (T111). Flags only; it does not prove the backend is reachable.
  • parameter_catalog (ParameterCatalog)
  • settings (array of HTTPBootSetting, min items 3, max items 4) — When boot_settings_view is enabled: exactly the three captured inbound HTTP budgets, plus the server.listen_backlog row only when the request selects parameter_catalog_version 25 or later (every earlier selector, including the default 1, keeps exactly three rows); omitted when disabled. Null value/source means this programmatic factory did not capture a listener. Read-only; changes require restart. The backlog takes effect on Windows only; elsewhere the kernel limit applies and the row reports the requested value. No URLs or environment names.
  • healthcheck_target (HealthcheckTargetSummary)
  • lifecycle_settings (array of LifecycleBootSetting, min items 2, max items 2) — Exactly the two captured lifecycle budgets when boot_settings_view is enabled; omitted when disabled. Null value/source means uncaptured. Read-only; changes require restart. No environment names.
  • runtime_settings (RuntimeBootSummary)
  • pool_settings (array of PoolBootSetting, min items 3, max items 3) — Exactly three captured connection-pool rows when boot_settings_view is enabled; omitted when disabled. Null value/source means unknown or not opened. HTTP zero adds no per-transport/host ceiling; PostgreSQL values are client pool bounds, not live counts or health.
  • cache_settings (CacheSettingsSummary)
  • realtime_settings (DomainPolicySettings and object)
  • vector_settings (DomainPolicySettings and object)
  • model_rankings_settings (object) — Safe effective fetch/cache metadata under boot_settings_view for global config readers. The dedicated settings API is the versioned writer; no source URL or credentials are configurable here.
    • effective (ModelRankingsPolicy, required)
    • defaults (ModelRankingsPolicy, required)
    • sources (object, required)
      • fetch_timeout (string, required, one of "default", "yaml", "console")
      • cache_ttl (string, required, one of "default", "yaml", "console")
    • fetch_timeout_minimum ("1s", required)
    • fetch_timeout_maximum ("2m", required)
    • cache_ttl_minimum ("1m", required)
    • cache_ttl_maximum ("24h", required)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • model_registry_settings (object) — Safe effective fetch/cache/source metadata under boot_settings_view for global config readers. The dedicated settings API is the versioned writer; no source URL or credentials are configurable here.
    • effective (ModelRegistryPolicy, required)
    • defaults (ModelRegistryPolicy, required)
    • sources (object, required)
      • fetch_timeout (string, required, one of "default", "yaml", "console")
      • cache_ttl (string, required, one of "default", "yaml", "console")
      • sources (string, required, one of "default", "yaml", "console")
    • fetch_timeout_minimum ("1s", required)
    • fetch_timeout_maximum ("2m", required)
    • cache_ttl_minimum ("1m", required)
    • cache_ttl_maximum ("24h", required)
    • restart_required (false, required)
    • yaml_requires_restart (true, required)
  • integration_settings (IntegrationPolicySettings)
  • logging_settings (array of LoggingBootSetting, min items 1, max items 1) — One captured owned JSON-handler threshold when boot_settings_view is enabled; omitted when disabled. Null value/source means no trusted main capture. The fixed JSON format is not a configurable setting or a claim about injected loggers. Read-only; restart required.
  • database_settings (DatabaseBootSummary)
  • network_settings (array of NetworkBootSetting, min items 9, max items 9) — Exactly nine safe captured network rows when boot_settings_view is enabled; omitted when disabled. Null value/source means no trustworthy startup capture. request_timeout is the global operation default and inflight_wait is admission policy; the other seven describe owned normal/HTTP1 transport construction, not live connections or every request. Model and stream-clock overrides remain separate. Force IPv4 governs the gateway TCP dial, including a proxy first hop, not a proxy’s downstream connection. Read-only; restart required.
  • telemetry (object, required)
    • logs (OTLPSignalBootSummary, required)
    • traces (OTLPSignalBootSummary, required)
    • metrics (OTLPSignalBootSummary, required)
    • otlp (object) — telemetry.otlp: the resource attributes every exported signal carries (T186.010 follow-up), read at startup, under the YAML names
      • service_name ("ai-gateway", required)
      • service_version (string, required) — service.version; empty only when the configured value was not valid
      • service_version_source (string, required, one of "", "build", "yaml", "environment")
      • deployment_environment (string, required) — deployment.environment.name; empty when not set (not exported)
      • deployment_environment_source (string, required, one of "", "yaml", "environment")
      • console_url (string) — telemetry.otlp.console_url read at startup (T186.016b): the base of every exported span’s gateway.console.url; empty exports no link
  • logging (LoggingSnapshot, required)

Type: object

  • secret_manager (object, required)
    • enabled (boolean, required)
    • configured (boolean or null, required) — A manager is declared in decoded boot policy; never resolution/connectivity status.
    • kind (string or null, required, one of "hashicorp_vault", "cyberark_conjur", "aws_secrets_manager", "gcp_secret_manager", "azure_key_vault", null)
    • settings (array of DomainPolicySetting, required, min items 1, max items 1)
  • log_destinations (object, required)
    • enabled (boolean, required)
    • configured_count (integer or null, required, min 0, max 10)
    • entries (array of object, required, max items 10) — Declaration order only, without destination IDs or targets; not installed workers/delivery health.
      • type (string or null, required, one of "s3", "gcs", "azure_blob", "langfuse", "datadog", "http", null)
      • settings (array of DomainPolicySetting, required, min items 2, max items 2)

Type: object

T168 invitation e-mail settings. effective and base are null when not configured.

  • version (integer (int64))
  • source (string, one of "console", "yaml", "none")
  • effective (InvitationEmailSettings or null)
  • base (InvitationEmailSettings or null)
  • trust (object)
    • allow_plaintext_loopback (boolean)
    • allowed_private_cidrs (array of string)
    • require_verified_email (boolean) — T168: admin.invitation_email.require_verified_email (YAML only, default true); an SSO claim then needs a verified e-mail from the identity provider
  • sso_only (boolean)
  • error (string) — Why the effective settings cannot be used now
  • note (string)
  • updated_by (string)
  • updated_at (string (date-time))

Type: object

  • host (string)
  • port (integer)
  • tls (string, one of "starttls", "implicit", "plaintext")
  • username (string)
  • from (string)
  • console_url (string)
  • default_expiry_hours (integer)
  • password_configured (boolean)

m7gtwcontact@m7gtw.com