Skip to content

Routing status API

GET /api/v1/admin/file-inputs · operation fileInputsStatus

Requires providers:read and at least one of gemini_file_inputs, gemini_file_defaults and gemini_interactions (T199). Read-only view of file inputs on Gemini targets, the three flags, the effective file_inputs block (YAML) and the aliases that set a default slice (models[].file_defaults, edited on the model). files_api_references is false when organizations share the provider project, where a Files API URI is refused whatever the prefixes say.

Authentication: adminSession

Responses

Status Description Body
200 Flags, effective settings and aliases with defaults application/json: object
401 Missing or invalid bearer key application/json: Error
403 Model not allowed application/json: Error
404 Feature disabled application/json: Error

Response 200 fields:

  • application/json: object
    • gemini_file_inputs (boolean, required)
    • gemini_file_defaults (boolean, required)
    • gemini_interactions (boolean, required)
    • file_inputs (FileInputsSettings, required)
    • files_api_references (boolean, required)
    • aliases (array of object, required)
      • id (string, required)
      • file_defaults (FileDefaults, required)

GET /api/v1/admin/image-inputs · operation imageInputsStatus

Requires providers:read and image_input_translation or image_url_download (T168). Read-only view of image input translation per target and of the server-side download bounds (YAML image_inputs.download). With image_input_translation, a data URL becomes the provider’s bytes, a reference the provider fetches passes through (an https URL to Anthropic; gs:// to Gemini or s3:// to Bedrock, with an image extension, only under image_inputs.reference_prefixes, since the provider reads them with the gateway’s credentials; Gemini Files API URIs are refused with image_reference_not_allowed), and any other URL to a target that needs bytes is refused with 400 image_url_requires_download unless image_url_download fetches it (https on port 443 only, every resolved address public and pinned for the connection, redirects checked again, max_bytes, 32 MiB per request in total, an image content type confirmed by the bytes, timeout, max_images per request).

Authentication: adminSession

Responses

Status Description Body
200 Flags and effective download bounds application/json: object
401 Missing or invalid bearer key application/json: Error
403 Model not allowed application/json: Error
404 Feature disabled application/json: Error

Response 200 fields:

  • application/json: object
    • image_input_translation (boolean, required)
    • image_url_download (boolean, required)
    • image_inputs (ImageInputsSettings, required)
    • references (object, required) — The image references each provider family fetches itself.
      • any other key: string

GET /api/v1/admin/routing-status · operation routingAdmissionStatus

Requires providers:read (global admin/viewer/operator) and one of weighted_routing, routing_strategies, adaptive_routing, routing_affinity, canary_routing, shared_routing_state, or destination_limits or latency_routing. Passive latency measures time to headers, never TTFT or complete-response duration. Unknown or stale scores are null. State is per process unless shared_routing_state adds the other replicas’ latency, in-flight counts and pins (see shared_state). FIFO admission shares provider connection/model across aliases and operations.

Authentication: adminSession

Responses

Status Description Body
200 Successful operation; metadata is private and not cached. application/json: RoutingStatus
400 Invalid input application/json: Error
401 Missing or invalid bearer key application/json: Error
403 Model not allowed application/json: Error
404 Feature disabled application/json: Error
409 Version changed or lifecycle conflict —
503 Storage or configuration unavailable —

m7gtw[email protected]