Models and catalog API
GET /v1/registry/quality
Section titled “GET /v1/registry/quality”GET /v1/registry/quality · operation publicRegistryGeneralQuality
Full original public general ECI under independent default-off model_registry_general_benchmarks plus registry/ui. Reuses the existing licensed original parser/cache with PUBLIC registry fetch/cache policy, independently of private catalog/rankings flags, settings and roles. Signed decimal point scores have no percent denominator or100 ceiling. No source-model/private alias join, local benchmark execution, popularity claim or re-ranking of filtered pages. Existing heavy admission precedes clone/fetch/projection; original caller cancellation wins and retained source stale fallback stays explicit. Duplicate/unknown/malformed query fields are400.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q |
query | string, max length 256 | Search original source model/display name/organization; at most256UTF-8 bytes. |
organization |
query | string, max length 4096 | Exact nonempty published source organization; no private tenant identity. |
limit |
query | integer, default 50, min 1, max 200 |
Canonical bounded page size. |
offset |
query | integer, default 0, min 0, max 10000 |
Canonical bounded offset after filtering; original source ranks are not recomputed. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Original source provenance, global ranks and public navigation metadata, no-store and request/trace IDs. | application/json: RegistryGeneralQuality |
400 |
Invalid input | application/json: Error |
404 |
Required registry/UI/general-publication flag disabled. | — |
503 |
Heavy admission/budget exhausted or original source snapshot unavailable. | — |
GET /v1/registry/history
Section titled “GET /v1/registry/history”GET /v1/registry/history · operation publicRegistryHistory
Anonymous exact original listing revision changes; requires model_registry_history and registry/ui. Fixed official source revisions and first parents, licensed immutable source facts, bounded coherent all-or-stale source pages. Never infer historical edits from a current snapshot or compare adjacent path-filtered commits as parent/child. Cache is bounded to one page, with no wrong-page stale fallback. Filters/count/order precede event pagination. No private data, provider experiment, ledger change or runtime git executable.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
page |
query | integer, default 1, min 1, max 1000 |
Original history source page; up to8 source commits per page, each compared to its actual first parent. Not a lifetime or complete date-window guarantee. |
kind |
query | string, one of "all", "listing_added", "listing_removed", "provider_added", "provider_changed", "price_changed", "capability_changed", "lifecycle_changed", "metadata_changed", default "all" |
Match an original listing event category; multiple kinds may apply to an event. |
provider |
query | string, max length 4096 | Exact original provider. |
offer_id |
query | string, max length 4096 | Exact original cost-map listing key, not a private alias. |
model_id |
query | string, max length 4096 | Exact published model label normalized by the admitted original-source profile. |
q |
query | string, max length 256 | Bounded source research search, at most256 UTF-8 bytes. |
limit |
query | integer, default 50, min 1, max 200 |
Event/listing pagination after filtering within this captured source page. |
offset |
query | integer, default 0, min 0, max 10000 |
Canonical bounded offset, distinct from history source page. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Safe original-source research DTO with no-store and request/trace IDs. | application/json: RegistryHistory |
400 |
Invalid input | application/json: Error |
404 |
Required registry/UI or selected research feature disabled. | — |
503 |
Required valid source snapshot unavailable or bounded operation fails; no invented/partial history. | — |
GET /v1/registry/lifecycle
Section titled “GET /v1/registry/lifecycle”GET /v1/registry/lifecycle · operation publicRegistryLifecycle
Anonymous current source-declared deprecation/replacement listings; independent model_registry_lifecycle and registry/ui required. No historical fetch, inferred replacement or actual provider availability claim. UTC source-capture day defines scheduled/date-passed status. Source URLs, license and freshness remain visible; missing metadata stays unknown.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
state |
query | string, one of "all", "declared", "replacement", default "all" |
all includes published date/reference/successor; declared selects date or reference, replacement selects published successor. Missing is unknown. |
provider |
query | string, max length 4096 | Exact original provider. |
offer_id |
query | string, max length 4096 | Exact original cost-map listing key, not a private alias. |
model_id |
query | string, max length 4096 | Exact published model label normalized by the admitted original-source profile. |
q |
query | string, max length 256 | Bounded source research search, at most256 UTF-8 bytes. |
limit |
query | integer, default 50, min 1, max 200 |
Event/listing pagination after filtering within this captured source page. |
offset |
query | integer, default 0, min 0, max 10000 |
Canonical bounded offset, distinct from history source page. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Safe original-source research DTO with no-store and request/trace IDs. | application/json: RegistryLifecycle |
400 |
Invalid input | application/json: Error |
404 |
Required registry/UI or selected research feature disabled. | — |
503 |
Required valid source snapshot unavailable or bounded operation fails; no invented/partial history. | — |
GET /v1/registry/history.rss
Section titled “GET /v1/registry/history.rss”GET /v1/registry/history.rss · operation publicRegistryHistoryRSS
Read-only RSS2 feed of the same filtered original history page; requires model_registry_rss plus history/registry/ui. Fixed absolute original GitHub channel/item links, opaque deterministic GUIDs with isPermaLink=false, XML-escaped source titles and trusted fixed description text. No arbitrary Host/X-Forwarded-Host authority, active source HTML, email/webhook delivery or private fields. Source commit timestamps are not provider announcements.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
page |
query | integer, default 1, min 1, max 1000 |
Original history source page; up to8 source commits per page, each compared to its actual first parent. Not a lifetime or complete date-window guarantee. |
kind |
query | string, one of "all", "listing_added", "listing_removed", "provider_added", "provider_changed", "price_changed", "capability_changed", "lifecycle_changed", "metadata_changed", default "all" |
Match an original listing event category; multiple kinds may apply to an event. |
provider |
query | string, max length 4096 | Exact original provider. |
offer_id |
query | string, max length 4096 | Exact original cost-map listing key, not a private alias. |
model_id |
query | string, max length 4096 | Exact published model label normalized by the admitted original-source profile. |
q |
query | string, max length 256 | Bounded source research search, at most256 UTF-8 bytes. |
limit |
query | integer, default 50, min 1, max 200 |
Event/listing pagination after filtering within this captured source page. |
offset |
query | integer, default 0, min 0, max 10000 |
Canonical bounded offset, distinct from history source page. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Original-source RSS subscription response; no-store, request/trace IDs and explicit stale source warning where applicable. | application/rss+xml: string |
400 |
Invalid input | application/json: Error |
404 |
RSS/history/registry/UI feature disabled. | — |
503 |
Required history source unavailable. | — |
GET /v1/registry/benchmarks
Section titled “GET /v1/registry/benchmarks”GET /v1/registry/benchmarks · operation publicRegistryBenchmarks
Anonymous original Terminal-Bench4 coding or source-reported same-run value. Requires registry/ui and the selected coding/value operator flag, independent of private catalog/rankings and cost planning. Fixed original repository refresh resolves an immutable commit; dataset/license and all bounded submissions are checked coherently before publication. Coding orders exact success/trial ratios; value orders exact successes per100USD from positive source-reported aggregate, unknown last, stable original-run ties. No best-configuration collapse, client pricing, evaluation execution or inference. Cost/time completeness is explicitly unknown. One shared registry operation budget; retained stale source on refresh failure only for a live caller. Duplicate/unknown/invalid queries rejected.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
profile |
query | string, required, one of "coding", "value" |
Required exact profile; independent operator flag for each. |
cohort |
query | "terminal_bench_4", required |
Required explicit original dataset cohort; agent/settings remain separate rows, not controlled head-to-head quality. |
model_id |
query | string, max length 4096 | Exact literal original source_filter.model_name, not private alias or fuzzy family match. |
q |
query | string, max length 256 | Bounded search, at most256 UTF-8 bytes. |
limit |
query | integer, default 50, min 1, max 200 |
Canonical bounded pagination. |
offset |
query | integer, default 0, min 0, max 10000 |
Filter and exact source-profile sort precede pagination. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Bounded original runs/source provenance; no-store and request/trace IDs. Source profile is advisory, not a universal model ranking. | application/json: RegistryBenchmarks |
400 |
Invalid input | application/json: Error |
404 |
Registry/UI or the requested independent benchmark profile is disabled. | — |
503 |
No valid original source snapshot, source schema/license/dataset mismatch or operation budget/admission failure. | — |
POST /v1/registry/cost-comparison
Section titled “POST /v1/registry/cost-comparison”POST /v1/registry/cost-comparison · operation publicRegistryWorkloadComparison
Anonymous read-only base workload planning requiring model_registry_cost_comparison and model_registry/ui, independent of private calculator/price books. Strict source IDs/quantities, exact server rational USD arithmetic and per-offer rate basis yield request/day/thirty-day amounts with explicit partial/missing/excluded scope. Shared bounded heavy-operation admission precedes source clone/math; saturation503 and original caller cancellation precedence. Source lookup and computation share one operation budget. expected_basis_id detects changed source/profile/scope before totals (409); quantities/day/page/capture time are not rate-basis changes. No inference, ledger, private/manual rates, currency conversion, tier guessing or full-invoice claim.
Authentication: None.
Request body (required)
application/json: RegistryWorkloadInput
Responses
| Status | Description | Body |
|---|---|---|
200 |
Exact base quotes or explicit incomplete/unknown/incompatible rows; no-store, request/trace IDs. | application/json: RegistryWorkloadComparison |
400 |
Invalid input | application/json: Error |
404 |
Feature disabled or a selected source model is missing. | — |
409 |
Source/rate/profile/scope basis changed; no totals returned. Review and explicitly recalculate. | — |
413 |
Workload JSON exceeds the16KiB body bound. | — |
503 |
Heavy-operation admission saturated, comparison budget exhausted or no valid required source snapshot. | — |
GET /v1/registry/compare
Section titled “GET /v1/registry/compare”GET /v1/registry/compare · operation publicRegistryComparison
Anonymous selected-source comparison requiring model_registry_compare and model_registry/ui only; independent of private catalog/rankings roles and provider/filter flags. Preserve caller selection order, original offer identity and separately attributed base-rate/limit/date columns. Unknown valid selected IDs return404 without silently dropping columns. Optional original general ECI is explicitly opted in, matches only exact literal source model IDs in known chat/completion modes and preserves score scale/source/interval/full-snapshot rank. No private aliases/configuration, inference, financial mutation, fuzzy join or combined-offer promise. A single registry operation budget covers all required/optional sources, with an additional rankings timeout cap. Genuine caller cancellation wins; internal deadline may serve retained marked-stale originals. Missing optional ECI yields explicit unavailable status/warning while retaining valid primary data.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
models |
query | array of string, required, min items 1, max items 6 | Required comma-separated1–6 unique opaque IDs, at most401ASCII bytes; order is preserved. Empty/repeated/unknown query fields are refused. |
include_general_eci |
query | boolean, default false |
Exact lowercase true/false. false makes no Epoch request; all ineligible modes yield not_applicable without fetching Epoch. The explicit public comparison flag authorizes this optional source publication; private rankings flags do not. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Coherent original-source selection with explicit benchmark coverage, no-store, request/trace IDs. | application/json: RegistryComparison |
400 |
Invalid input | application/json: Error |
404 |
Comparison feature disabled or a valid selected source ID is not present. | — |
503 |
No valid required public source snapshot. | — |
GET /v1/registry/providers
Section titled “GET /v1/registry/providers”GET /v1/registry/providers · operation publicRegistryProviders
Anonymous original-source provider research requiring model_registry_providers and model_registry/ui, independently of advanced filters. Exact provider IDs, safe published endpoints/optional original metadata and native rates; not configured connections or adapter/health/inference certification. Full-snapshot per-column price coverage and endpoint facets stay distinct from filtered/page totals. Compare only known base USD per-token fields within exact nonempty mode/model-label groups with two distinct priced providers; ties explicit. Unknown/duplicate/noncanonical query fields are refused. Sources preserve original hash/time/license and marked stale state; optional metadata failure never becomes successful coverage.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q |
query | string, max length 256 | Case-insensitive exact provider ID or published display-name search; no control characters. |
limit |
query | integer, default 50, min 1, max 200 |
|
offset |
query | integer, default 0, min 0, max 10000 |
|
endpoint |
query | string, min length 1, max length 2048, pattern ^/[A-Za-z0-9/_{}.~:-]+$ |
Exact published model path; double slashes, dot segments, queries and fragments are refused. Unknown valid paths yield no matching providers/offers. |
sort |
query | string, one of "provider", "models", "offers", "input_lowest", "output_lowest", "cache_read_lowest", "cache_write_lowest", default "provider" |
Coverage count ordering; each lowest count retains its eligible denominator, not a universal provider price score. Zero eligible is unknown and stays last for lowest-count sorts. |
direction |
query | string, one of "asc", "desc", default "asc" |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Safe original-source research projection, no-store, request/trace IDs. | application/json: RegistryProviderList |
400 |
Invalid input | application/json: Error |
404 |
Research feature disabled or provider not found. | — |
503 |
No valid required-source snapshot. | — |
GET /v1/registry/providers/{id}
Section titled “GET /v1/registry/providers/{id}”GET /v1/registry/providers/{id} · operation publicRegistryProviderDetail
Anonymous original-source provider research requiring model_registry_providers and model_registry/ui, independently of advanced filters. Exact provider IDs, safe published endpoints/optional original metadata and native rates; not configured connections or adapter/health/inference certification. Full-snapshot per-column price coverage and endpoint facets stay distinct from filtered/page totals. Compare only known base USD per-token fields within exact nonempty mode/model-label groups with two distinct priced providers; ties explicit. Unknown/duplicate/noncanonical query fields are refused. Sources preserve original hash/time/license and marked stale state; optional metadata failure never becomes successful coverage.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required, pattern ^p_[a-f0-9]{64}$ |
|
q |
query | string, max length 256 | Case-insensitive model ID, original offer ID or offer display-name search; no control characters. |
limit |
query | integer, default 50, min 1, max 200 |
|
offset |
query | integer, default 0, min 0, max 10000 |
|
endpoint |
query | string, min length 1, max length 2048, pattern ^/[A-Za-z0-9/_{}.~:-]+$ |
Exact published model path; double slashes, dot segments, queries and fragments are refused. Unknown valid paths yield no matching providers/offers. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Safe original-source research projection, no-store, request/trace IDs. | application/json: RegistryProviderDetail |
400 |
Invalid input | application/json: Error |
404 |
Research feature disabled or provider not found. | — |
503 |
No valid required-source snapshot. | — |
GET /v1/registry/models
Section titled “GET /v1/registry/models”GET /v1/registry/models · operation publicRegistryModels
Anonymous original-source research catalog. Requires model_registry and ui, independent of private catalog permissions. Label-only exact mode/model grouping preserves dates, regions and quantization; it never proves equivalent deployments or inference support. Fixed-source fetches carry IDs, bounded cache and marked stale fallback. No private aliases, account inventory or credentials. Unknown/duplicate/malformed query fields are refused. With model_registry_filters enabled, bounded advanced AND predicates match one offer before grouping/pagination; returned columns carry their own original offer, unit and source. Column minima/maxima do not promise one offer achieves every metric. Unknowns remain last and prices never blend units, tiers or currencies.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q |
query | string, max length 256 | Case-insensitive label/provider search; no control characters. |
limit |
query | integer, default 50, min 1, max 200 |
|
offset |
query | integer, default 0, min 0, max 10000 |
|
provider |
query | string, min length 1, max length 4096 | Exact original offer label; all constraints apply to one offer. Requires model_registry_filters. |
mode |
query | string, min length 1, max length 4096 | Exact original offer label; all constraints apply to one offer. Requires model_registry_filters. |
input_modalities |
query | string, min length 1, max length 519 | Comma-separated1..8 unique nonempty published input labels, each at most64 UTF-8 bytes. AND, without trimming or inferred modalities. Requires model_registry_filters. |
output_modality |
query | string, min length 1, max length 64 | Exact published output modality. Requires model_registry_filters. |
min_input_tokens |
query | integer, min 0, max 9007199254740991 | Canonical nonnegative decimal minimum on the corresponding named published limit; unknown never matches. Requires model_registry_filters. |
min_output_tokens |
query | integer, min 0, max 9007199254740991 | Canonical nonnegative decimal minimum on the corresponding named published limit; unknown never matches. Requires model_registry_filters. |
tools |
query | boolean | Exact lowercase true/false on original supports_function_calling; absent is unknown and matches neither value. Requires model_registry_filters. |
json |
query | boolean | Exact lowercase true/false on original supports_response_schema; absent is unknown and matches neither value. Requires model_registry_filters. |
reasoning |
query | boolean | Exact lowercase true/false on original supports_reasoning; absent is unknown and matches neither value. Requires model_registry_filters. |
cache |
query | boolean | Exact lowercase true/false on original supports_prompt_caching; absent is unknown and matches neither value. Requires model_registry_filters. |
zero_listed_price |
query | boolean | true requires some explicitly zero published USD rate; false requires a known USD rate and no zero USD rate. Any unit may contribute; this is not a free-request guarantee. Missing and DBU-only rates match neither. Requires model_registry_filters. |
deprecation |
query | string, one of "published", "unknown" |
Presence/absence of a published deprecation date, not effective lifecycle status or an inferred release date. Requires model_registry_filters. |
sort |
query | string, one of "model", "release", "input_limit", "output_limit", "input_price", "output_price", "cache_read_price", "cache_write_price", default "model" |
Per-column maximum named limit/latest published date/minimum exact base USD text-token rate across matching offers, with original offer attribution. Unknown last in both directions; stable source identity ties. Requires model_registry_filters. |
direction |
query | string, one of "asc", "desc", default "asc" |
Numeric/date/model sort direction; unknown values stay last. Requires model_registry_filters. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Original-source safe projection; no-store, request and trace IDs. | application/json: RegistryModelList |
400 |
Invalid input | application/json: Error |
404 |
Feature disabled or model not found. | — |
503 |
No valid source snapshot; no fabricated empty success. | — |
GET /v1/registry/models/{id}
Section titled “GET /v1/registry/models/{id}”GET /v1/registry/models/{id} · operation publicRegistryModelDetail
One public source model label and its original provider offers. Stable opaque ID derives from mode and exact model label; discovery never authorizes inference. The same default-off flags, source licensing, explicit unknowns and privacy boundary as the list apply. Query fields are refused.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required, pattern ^m_[a-f0-9]{64}$ |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Original-source safe projection; no-store, request and trace IDs. | application/json: RegistryModelDetail |
400 |
Invalid input | application/json: Error |
404 |
Feature disabled or model not found. | — |
503 |
No valid source snapshot; no fabricated empty success. | — |
GET /api/v1/admin/hub/listings
Section titled “GET /api/v1/admin/hub/listings”GET /api/v1/admin/hub/listings · operation publicHubListings
T153. Effective public hub listings for MCP servers, agents and skills, their source (default, yaml or console), the YAML declaration, whether each kind is publicly on, the registry items that could be listed and the exact preview each public endpoint returns now. Requires public_model_hub, PostgreSQL, config:read and a global admin, viewer or operator role. no-store.
Authentication: adminSession
Responses
| Status | Description | Body |
|---|---|---|
200 |
Listings, provenance, candidates and preview. | 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 |
503 |
Managed storage unavailable. | — |
Response 200 fields:
application/json: objectversion(integer, required, min 0)source(string, required, one of"default","yaml","console")listings(PublicHubListings, required)declared(PublicHubListings, required)cache_defaults(PublicHubCachePolicy, required)features(object, required)mcp_servers(boolean, required)agents(boolean, required)skills(boolean, required)
candidates(object, required)mcp_servers(array of PublicHubCandidate, required)agents(array of PublicHubCandidate, required)skills(array of PublicHubCandidate, required)
candidate_notes(object, required) — Why a candidate list is incomplete: reason skills_unreadable_for_role (the caller’s role cannot read the skill registry) or skills_unavailable; truncated with the total above the cap of 100.mcp_servers(PublicHubCandidateNote, required)agents(PublicHubCandidateNote, required)skills(PublicHubCandidateNote, required)
preview(object, required)mcp_servers(array of PublicHubMCPServer, required)agents(array of PublicHubAgent, required)skills(array of PublicHubSkill, required)
restart_required(false, required)
PUT /api/v1/admin/hub/listings
Section titled “PUT /api/v1/admin/hub/listings”PUT /api/v1/admin/hub/listings · operation setPublicHubListings
T153. Replace the complete listings (all three arrays) as a console override. Requires public_model_hub, global models:manage, CSRF, the current version and commits an atomic audit (public_hub.set). Extra, null, case-variant or duplicate members are refused. Listing an item never changes its registry, access or grants; items that do not exist or are disabled are kept but not listed.
Authentication: adminSession
Request body (required)
application/json: objectversion(integer, required, min 0)listings(PublicHubListings, required)
Responses
| Status | Description | Body |
|---|---|---|
200 |
Listings committed with version and audit. | application/json: object |
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 |
Current control version does not match; no mutation committed. | — |
503 |
Managed storage unavailable. | — |
Response 200 fields:
application/json: objectversion(integer, required, min 1)
DELETE /api/v1/admin/hub/listings
Section titled “DELETE /api/v1/admin/hub/listings”DELETE /api/v1/admin/hub/listings · operation revertPublicHubListings
T153. Remove the console override and restore the YAML declaration (public_hub). Same authority, CSRF, version and audit (public_hub.revert) as PUT; 404 not_found when no override exists.
Authentication: adminSession
Request body (required)
application/json: objectversion(integer, required, min 0)
Responses
| Status | Description | Body |
|---|---|---|
200 |
Override removed with version and audit. | application/json: object |
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 or no override exists. | — |
409 |
Current control version does not match; no mutation committed. | — |
503 |
Managed storage unavailable. | — |
Response 200 fields:
application/json: objectversion(integer, required, min 1)
GET /api/v1/admin/model-registry/settings
Section titled “GET /api/v1/admin/model-registry/settings”GET /api/v1/admin/model-registry/settings · operation modelRegistrySettings
Effective public research fetch/cache/source policy, provenance and optional override. Requires model_registry_management, PostgreSQL and a global config:read role. Source URLs/credentials are never configurable; captured in-flight fetch budgets remain unchanged.
Authentication: adminSession
Responses
| Status | Description | Body |
|---|---|---|
200 |
Safe effective policy and current control version; no-store. | 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 |
503 |
Managed storage unavailable or unsupported; no alternate engine fallback. | — |
Response 200 fields:
application/json: objectversion(integer, required, min 0)override(ModelRegistryPolicy or null, required)- Any of (1): ModelRegistryPolicy
- Any of (2): null
effective(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")
restart_required(false, required)applies_to("new_fetches_and_cache_lookups", required)
PUT /api/v1/admin/model-registry/settings
Section titled “PUT /api/v1/admin/model-registry/settings”PUT /api/v1/admin/model-registry/settings · operation setModelRegistrySettings
Save a complete typed override with model_registry_management, global models:manage, CSRF, current version and atomic audit. Applies to new fetches/cache lookups after replica refresh; no runtime source rebinding or in-flight cancellation. Extra, null, duplicate or noncanonical fields are refused.
Authentication: adminSession
Request body (required)
application/json: objectversion(integer, required, min 0)model_registry(ModelRegistryPolicy, required)
Responses
| Status | Description | Body |
|---|---|---|
204 |
Policy committed with version and audit. | — |
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 |
Current control version does not match; no mutation committed. | — |
503 |
Managed storage unavailable or unsupported. | — |
DELETE /api/v1/admin/model-registry/settings
Section titled “DELETE /api/v1/admin/model-registry/settings”DELETE /api/v1/admin/model-registry/settings · operation revertModelRegistrySettings
Remove only the managed registry policy override and restore YAML/default settings. Requires the same management authority, CSRF, current version and atomic audit as PUT. No schema or data rollback.
Authentication: adminSession
Request body (required)
application/json: objectversion(integer, required, min 0)
Responses
| Status | Description | Body |
|---|---|---|
204 |
Override removed with version and audit. | — |
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 or no managed override exists. | — |
409 |
Current control version does not match; no mutation committed. | — |
503 |
Managed storage unavailable or unsupported. | — |
GET /api/v1/admin/model-rankings/settings
Section titled “GET /api/v1/admin/model-rankings/settings”GET /api/v1/admin/model-rankings/settings · operation modelRankingsSettings
Effective typed rankings fetch/cache policy, source and optional override. Requires model_rankings_management, its feature dependencies, PostgreSQL and global config:read; settings never select an arbitrary source URL. Captured in-flight fetch budgets remain unchanged.
Authentication: adminSession
Responses
| Status | Description | Body |
|---|---|---|
200 |
Safe effective policy and current control version; no-store. | 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 |
503 |
Managed storage unavailable or unsupported; no alternate engine fallback. | — |
Response 200 fields:
application/json: objectversion(integer, required, min 0)override(ModelRankingsPolicy or null, required)- Any of (1): ModelRankingsPolicy
- Any of (2): null
effective(ModelRankingsPolicy, required)sources(object, required)fetch_timeout(string, required, one of"default","yaml","console")cache_ttl(string, required, one of"default","yaml","console")
restart_required(false, required)applies_to("new_fetches_and_cache_lookups", required)
PUT /api/v1/admin/model-rankings/settings
Section titled “PUT /api/v1/admin/model-rankings/settings”PUT /api/v1/admin/model-rankings/settings · operation setModelRankingsSettings
Save a complete typed override with model_rankings_management, global models:manage, CSRF, current version and atomic audit. Applies to new fetches/cache lookups after replica refresh; no runtime source rebinding or in-flight cancellation. Extra, null, duplicate or noncanonical fields are refused.
Authentication: adminSession
Request body (required)
application/json: objectversion(integer, required, min 0)model_rankings(ModelRankingsPolicy, required)
Responses
| Status | Description | Body |
|---|---|---|
204 |
Policy committed with version and audit. | — |
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 |
Current control version does not match; no mutation committed. | — |
503 |
Managed storage unavailable or unsupported. | — |
DELETE /api/v1/admin/model-rankings/settings
Section titled “DELETE /api/v1/admin/model-rankings/settings”DELETE /api/v1/admin/model-rankings/settings · operation revertModelRankingsSettings
Remove only the managed rankings policy override and restore YAML/default settings. Requires the same management authority, CSRF, current version and atomic audit as PUT. No schema or data rollback.
Authentication: adminSession
Request body (required)
application/json: objectversion(integer, required, min 0)
Responses
| Status | Description | Body |
|---|---|---|
204 |
Override removed with version and audit. | — |
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 or no managed override exists. | — |
409 |
Current control version does not match; no mutation committed. | — |
503 |
Managed storage unavailable or unsupported. | — |
GET /api/v1/admin/model-rankings
Section titled “GET /api/v1/admin/model-rankings”GET /api/v1/admin/model-rankings · operation attributedModelRankings
Read-only external Epoch general ECI snapshot, requiring model_rankings, external_model_catalog and global catalog:read. Cumulative source data, not local usage/quality or popularity. Exact decimal scores sorted descending with source-identity ties, source intervals/dates and explicit CC BY4.0 attribution. No alias mapping, inference, financial mutation or publication. Successful capture freshness is distinct from evaluation recency; stale fallback preserves original capture/hash and Warning110. Unknown or duplicate query parameters are refused.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
source |
query | string, one of "epoch_eci", default "epoch_eci" |
The external ranking to read; epoch_eci is the only one. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Complete bounded attributed snapshot; no-store, request and trace IDs. | application/json: AttributedModelRankings |
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 |
503 |
No valid successful source snapshot; no synthetic or silently truncated rows. | — |
POST /api/v1/admin/pricing/estimate
Section titled “POST /api/v1/admin/pricing/estimate”POST /api/v1/admin/pricing/estimate · operation estimateAdvisoryModelCost
Read-only exact base-rate quote requiring advisory_cost_calculator, external_model_catalog and global catalog:read. Select an exact public source/model or a configured alias/connection/model (also requiring automatic_price_catalog). No client prices or URLs are accepted. Canonical string quantities and server-side rational USD arithmetic retain unknown/partial/conflict/stale provenance. expected_basis_id detects changed rate identity with409; it is not a payment or budget authorization. Optional daily count produces explicit daily/30-day projections. Cache/context tiers, image-token dimensions, tools, discounts and taxes are excluded and identified in coverage/warnings. A quote prices one service tier, the standard one or the service_tier named in the request at its own published price (T110), unknown when no source prices it. No inference, ledger mutation or historical repricing.
Authentication: adminSession
Request body (required)
application/json: AdvisoryCostEstimateInput
Responses
| Status | Description | Body |
|---|---|---|
200 |
Exact covered amounts or explicit partial/unknown/conflict; no complete total for missing coverage. | application/json: AdvisoryCostQuote |
400 |
Invalid input | application/json: Error |
401 |
Missing or invalid bearer key | application/json: Error |
403 |
Model not allowed | application/json: Error |
404 |
Required feature disabled or exact catalog/configured model not found. | — |
409 |
Reviewed price basis changed; explicitly review the current source before recalculating. | — |
422 |
Requested unit/profile does not match the published supported rate. | — |
503 |
Direct public source has no usable snapshot; configured targets preserve the resolver’s unknown result unless a manual price book entry prices them. | — |
POST /api/v1/admin/models/{id}/unpublish
Section titled “POST /api/v1/admin/models/{id}/unpublish”POST /api/v1/admin/models/{id}/unpublish · operation unpublishAdminModel
Narrow privacy revocation. Requires live global models:manage, admin_model_editor, public_model_hub and ui. Copies the current model and only sets its existing Hub publication false; all routing and other metadata remain unchanged. This exact restrictive operation remains available after enterprise license expiry, while generic model writes stay protected. Existing optimistic version/audit/refresh semantics apply.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required | |
X-CSRF-Token |
header | string, required | Token returned by admin login/session; required with the same-origin session cookie for writes. |
Request body (required)
application/json: objectversion(integer (int64), required, min 0)
Responses
| Status | Description | Body |
|---|---|---|
200 |
Publication revoked and current version returned. | application/json: object |
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 or no publication metadata exists for this model. | — |
409 |
Configuration changed; reload before revoking. | — |
503 |
Configuration storage or refresh unavailable. | — |
Response 200 fields:
application/json: objectversion(integer (int64), required)
GET /api/v1/admin/models/{id}/evaluators
Section titled “GET /api/v1/admin/models/{id}/evaluators”GET /api/v1/admin/models/{id}/evaluators · operation listModelEvaluators
Evaluators by alias (T186.021, alias_evaluator_usage; guardrails T186.015). The evaluators whose judge route (judge_model) is the alias, in the teams the session reads evaluations of (every team for a global administrator or viewer), by name, at most 200; a deleted evaluator is not listed, and nothing is said of other teams. Requires alias_evaluator_usage, evaluators, evals and evals:read (404 feature_disabled without the flags).
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required, max length 256 |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The evaluators judging through the alias | application/json: object |
400 |
invalid_model | — |
401 |
Missing or invalid bearer key | application/json: Error |
403 |
Model not allowed | application/json: Error |
404 |
alias_evaluator_usage, evaluators or evals disabled (feature_disabled) | — |
503 |
storage_unavailable | — |
Response 200 fields:
application/json: objectmodel(string, required)count(integer, required)truncated(boolean, required)judge_guardrails(array of AliasGuardrail) — T186.015, with judge_guardrails on: the guardrails of type judge whose evaluator is one of the listed evaluators (so the judge runs on this alias)guardrails(array of AliasGuardrail) — T186.015, with judge_guardrails on and for a session with guardrails:read: every enabled guardrail that checks this alias, in run orderevaluators(array of object, required, max items 200)id(string, required)name(string, required)team_id(string, required)type(string, required)status(string, required)paused_reason(string)scope(string, required)published_version(integer)
GET /api/v1/admin/models/{id}/routing-versions
Section titled “GET /api/v1/admin/models/{id}/routing-versions”GET /api/v1/admin/models/{id}/routing-versions · operation listModelRoutingVersions
Requires routing_versions, admin_model_editor, PostgreSQL and models:read. The alias’s routing versions, newest first (the last 50 are kept). Every console or API save with the flag on records one; the alias a first save replaced is the baseline. Sources are baseline, save, rollback (with rolled_back_from) and auto_rollback (written by canary_auto_rollback as system:canary_auto_rollback).
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Versions, newest first; private and not cached. | application/json: object |
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 |
503 |
PostgreSQL unavailable. | — |
Response 200 fields:
application/json: objectretained(50, required)items(array of object, required, max items 50)alias(string, required)version(integer (int64), required, min 1)source(string, required, one of"baseline","save","rollback","auto_rollback")rolled_back_from(integer (int64), min 1)actor(string, required)request_id(string, required)control_version(integer (int64), required)created_at(string (date-time), required)model(AdminModel, required)
POST /api/v1/admin/models/{id}/routing-versions/{version}/rollback
Section titled “POST /api/v1/admin/models/{id}/routing-versions/{version}/rollback”POST /api/v1/admin/models/{id}/routing-versions/{version}/rollback · operation rollbackModelRoutingVersion
Requires routing_versions, admin_model_editor, PostgreSQL and models:manage. Saves the stored body of that version again as a new version (source rollback), through the same checks as PUT /api/v1/admin/models/{id} (permissions, license, GitOps ownership, validation, optimistic configuration version) and audits it as model.rollback. The answer is the PUT answer. Promotion of a canary is an ordinary save.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required | |
version |
path | integer (int64), required, min 1 | |
X-CSRF-Token |
header | string, required | Token returned by admin login/session; required with the same-origin session cookie for writes. |
Request body (required)
application/json: objectversion(integer (int64), required, min 0) — The configuration version the caller saw
Responses
| Status | Description | Body |
|---|---|---|
200 |
Rolled back; the current configuration version and the saved model. | application/json: object |
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 or no such version for this model. | — |
409 |
Configuration changed (reload first), the stored version names another model, or the model is owned by the GitOps file. | — |
422 |
The stored version is no longer valid with the current configuration. | — |
503 |
PostgreSQL or the configuration refresh unavailable. | — |
Response 200 fields:
application/json: objectversion(integer (int64), required)model(AdminModel, required)
PUT /api/v1/admin/models/{id}
Section titled “PUT /api/v1/admin/models/{id}”PUT /api/v1/admin/models/{id} · operation updateAdminModel
Validate the complete effective configuration, persist a model override using optimistic versioning, then activate it atomically. YAML remains the base source.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required | |
X-CSRF-Token |
header | string, required | Token returned by admin login/session; required with the same-origin session cookie for writes. |
Request body (required)
application/json: objectversion(integer (int64), required)model(AdminModel, required)
Responses
| Status | Description | Body |
|---|---|---|
200 |
Model updated and new version returned | — |
400 |
Invalid input | application/json: Error |
401 |
Missing or invalid bearer key | application/json: Error |
403 |
Model not allowed | application/json: Error |
409 |
Configuration changed; reload before saving | — |
422 |
Model violates configuration constraints | — |
DELETE /api/v1/admin/models/{id}
Section titled “DELETE /api/v1/admin/models/{id}”DELETE /api/v1/admin/models/{id} · operation deleteAdminModelOverride
Remove a versioned override. A YAML alias reverts to its declaration; a console alias disappears only when no active managed key references it. Disable a YAML alias with PUT disabled=true.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required | |
X-CSRF-Token |
header | string, required | Token returned by admin login/session; required with the same-origin session cookie for writes. |
Request body (required)
application/json: objectversion(integer (int64), required)
Responses
| Status | Description | Body |
|---|---|---|
204 |
Override removed | — |
400 |
Invalid input | application/json: Error |
401 |
Missing or invalid bearer key | application/json: Error |
403 |
Model not allowed | application/json: Error |
404 |
Model override absent or feature disabled | — |
409 |
Version conflict or active managed key references alias | — |
422 |
Removing override invalidates YAML key references | — |
GET /api/v1/admin/models/{id}/experiments
Section titled “GET /api/v1/admin/models/{id}/experiments”GET /api/v1/admin/models/{id}/experiments · operation listModelExperiments
T186.012 (alias_evaluator_usage and experiment_traces). The experiment runs whose target (model) or one of whose judges is the alias, newest first, at most 200, in the teams the session reads evaluations of whose plan includes experiment_traces; uses says target, judge or both. Requires evals:read.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required, max length 256 |
Responses
| Status | Description | Body |
|---|---|---|
200 |
{model, experiments [{id, name, team_id, dataset_id, status, uses, created_at}], count, truncated} | — |
404 |
Feature disabled | — |
POST /api/v1/admin/auto-routes/test
Section titled “POST /api/v1/admin/auto-routes/test”POST /api/v1/admin/auto-routes/test · operation testAutoRoute
Requires models:manage and auto_routing. Embeds or scores a sample prompt, or reads a sample conversation, and returns the route an auto-routed alias would pick, with every route score and threshold, as an admin with access to every route. The embedding, and the model classifier when it runs, go through the gateway as auto-route-test (team optional), so they are metered. Send text for a single prompt, or messages (a Chat Completions conversation with its tool calls and tool results) for the decisions that read them: the trajectory strategy and stall escalation. The test writes no session state.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-CSRF-Token |
header | string, required | Token returned by admin login/session; required with the same-origin session cookie for writes. |
Request body (required)
application/json: objectmodel(string, required)text(string, min length 1, max length 20000) — One prompt. Send text or messages, not both.messages(array of object) — A Chat Completions conversation, up to 1 MiB with the rest of the body: user, assistant (tool_calls) and tool messages.team(string, max length 128)position(string, one of"simple","medium","complex","reasoning") — trajectory only: the configured tier the session stands on, to test a turn as its hold would see it. Without it the conversation is judged from the default tier, as a request without a session.hold(integer, min 0, max 50) — trajectory only, with position: turns left of the session’s hold
Responses
| Status | Description | Body |
|---|---|---|
200 |
Decision: route (route name, tier or default), target alias, score, reason (semantic: matched, below_threshold, no_text, embedding_unavailable; complexity: complexity, keyword_rule, classifier, classifier_fallback; trajectory: signals, override, hold, judge, default, repeat; any tier strategy: tier_not_permitted) and per-route scores | application/json: object |
400 |
Invalid input | application/json: Error |
401 |
Missing or invalid bearer key | application/json: Error |
403 |
Missing models:manage or CSRF token | — |
404 |
auto_routing disabled or alias is not auto-routed | — |
Response 200 fields:
application/json: objectroute(string, required)target(string, required)score(number, required) — semantic: best similarity. complexity: local score. trajectory: signed confidence in -1..1, positive towards a more capable tier.reason(string, required, one of"matched","below_threshold","no_text","embedding_unavailable","complexity","keyword_rule","classifier","classifier_fallback","tier_not_permitted","signals","override","hold","judge","default","repeat","feature_disabled")tier(string) — complexity and trajectory: the tier that serves; absent when default servessignals(array of string) — complexity: dimensions that fired, plus stalled tool loop when escalated. trajectory: what the window held (errors, writes, passing checks, exploring) or the override; counts only, never tool names or output.strategy(string, one of"trajectory")detail(string, one of"no_tool_history","ambiguous","unknown_tools","unreadable","judge_failed") — trajectory: why nothing was decidedoverride(string, one of"repeated_failure","critical_error","compaction","stalled_loop")direction(string, one of"up","down") — trajectory: the session moved one tier this turntransition(string, one of"first","kept","switched","back") — trajectory with a session: what the turn does to the provider prompt cachehold_remaining(integer, min 0, max 50)window_results(integer, min 0, max 20)stateless(boolean) — trajectory: judged without a session, so without holdsclassifier(object) — With a classifier: whether the model ran. score stays the local score.mode(string, required, one of"model","local_first","near_boundary","ambiguous")outcome(string, required, one of"decided","skipped","failed") — skipped: the local score was confident; failed: see error, the fallback decidedtier(string) — The classifier’s verdict when decidederror(string) — timeout, status_<code>, invalid_verdict or circuit_open
scores(array of object, required)route(string)target(string)score(number)threshold(number)permitted(boolean)
GET /api/v1/admin/catalog/models
Section titled “GET /api/v1/admin/catalog/models”GET /api/v1/admin/catalog/models · operation discoverExternalModels
Cached read-only model metadata from public DeepInfra, OpenRouter, community cost map and models.dev sources, or account-visible OpenAI, Anthropic, Gemini, Groq and xAI models using a configured official provider credential and the authenticated_provider_catalog flag. Authenticated snapshots are isolated by provider connection and credential revision. Anthropic and Gemini pagination must complete before caching; an incomplete source returns 503. The response includes source_url, original fetched_at and explicit stale. A stale fallback keeps Warning110 and the original timestamp; no refreshed timestamp or healthy status is invented. Published lifecycle fields include expiration_date, deprecated, shutdown_date and replaced_by only when supplied. Pricing is advisory and preserves provider units; it never drives billing or automatic routing. With source=connection and the provider_model_discovery flag, lists the models any configured connection serves through its own auth (API key, header, Entra ID or SigV4), via the OpenAI-compatible /models, Anthropic and Gemini listings, or Bedrock ListFoundationModels on the same region; Vertex returns 422.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
source |
query | string, required, one of "deepinfra", "openrouter", "cost_map", "modelsdev", "groq", "xai", "openai", "anthropic", "gemini", "connection" |
|
provider_id |
query | string | ID of an official matching provider connection for authenticated sources, required when multiple matching connections exist; for source=connection, the configured connection to list (required). |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Advisory catalog snapshot; original source/time and explicit freshness, never a health or billing guarantee. | application/json: ExternalModelCatalogSnapshot |
400 |
Invalid input | application/json: Error |
401 |
Missing or invalid bearer key | application/json: Error |
404 |
Feature disabled | application/json: Error |
409 |
Matching authenticated provider credential is not configured, provider_id is unknown, or multiple connections require explicit selection | — |
422 |
source=connection for a connection without a model listing (discovery_unsupported) | — |
502 |
source=connection could not authenticate to its provider (provider_auth_failed) | — |
503 |
No usable provider catalog snapshot | — |
GET /v1/hub/models
Section titled “GET /v1/hub/models”GET /v1/hub/models · operation listPublicHubModels
Explicitly public allowlisted alias metadata, controlled by public_model_hub and ui. Only published enabled non-wildcard aliases with active capabilities appear. This is operator-approved disclosure, not provider health or authorization to perform inference. Never returns targets, upstream IDs, credentials, private inventory or automatically fetched rates. Responses are no-store and reflect current publication. Existing model writes require models:manage, admin_model_editor, CSRF and optimistic versioning.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Request-Id |
header | string, max length 128 | Correlation ID echoed in the response and forwarded upstream when valid. |
traceparent |
header | string | W3C trace context. Invalid values create a new trace. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Published safe metadata only. | application/json: object |
404 |
Feature disabled | application/json: Error |
Response 200 fields:
application/json: objectdata(array of PublicHubModel, required)
GET /v1/hub/mcp-servers
Section titled “GET /v1/hub/mcp-servers”GET /v1/hub/mcp-servers · operation listPublicHubMCPServers
T153. Explicitly published MCP registry servers, controlled by public_hub_mcp_servers, public_model_hub and ui; empty when mcp_registry is off. Lists only enabled registry servers that have execution trust (mcp_execution on and an mcp_execution.servers entry) and whose public_hub listing is published. Takes no query parameters; any are ignored. Never returns the server URL, credentials, headers, scopes, tool names (visible only to callers granted each tool), teams, approvals or authors. Discovery only: tool calls still need an authorized key, scope and grant. no-store.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Request-Id |
header | string, max length 128 | Correlation ID echoed in the response and forwarded upstream when valid. |
traceparent |
header | string | W3C trace context. Invalid values create a new trace. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Published safe MCP server metadata only. | application/json: object |
404 |
Feature disabled | application/json: Error |
Response 200 fields:
application/json: objectdata(array of PublicHubMCPServer, required)
GET /v1/hub/agents
Section titled “GET /v1/hub/agents”GET /v1/hub/agents · operation listPublicHubAgents
T153. Explicitly published A2A agents, controlled by public_hub_agents, public_model_hub and ui; empty when a2a_agents is off. Lists only enabled agents with at least one team whose public_hub listing is published, with gateway-relative paths. Never returns the agent URL, card URL, auth header, secret reference, teams or a stored card. Discovery only: invocation still needs an authorized key and team. no-store.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Request-Id |
header | string, max length 128 | Correlation ID echoed in the response and forwarded upstream when valid. |
traceparent |
header | string | W3C trace context. Invalid values create a new trace. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Published safe agent metadata only. | application/json: object |
404 |
Feature disabled | application/json: Error |
Response 200 fields:
application/json: objectdata(array of PublicHubAgent, required)
GET /v1/hub/skills
Section titled “GET /v1/hub/skills”GET /v1/hub/skills · operation listPublicHubSkills
T153. Explicitly published skills, controlled by public_hub_skills, public_model_hub and ui; empty when skill_registry is off. Lists a skill only while its registry entry is enabled, not deleted, has a published revision, an active owner team, at least one grant to an active team, no grant to a deleted team and an unchanged YAML base; title, description and files come from that published revision, never a later draft. Never returns file contents, the owner team, grants or authors. Discovery only: the bundle still needs a console session with a grant. Needs PostgreSQL when a skill is listed (503 otherwise); the answer is cached in memory for up to 30 s (failures 5 s) and refreshed on any publication or registry change through the gateway. Takes no query parameters; any are ignored. Listing text is untrusted operator content. no-store.
Authentication: None.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Request-Id |
header | string, max length 128 | Correlation ID echoed in the response and forwarded upstream when valid. |
traceparent |
header | string | W3C trace context. Invalid values create a new trace. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Published safe skill metadata only. | application/json: object |
404 |
Feature disabled | application/json: Error |
503 |
Skill storage unavailable. | — |
Response 200 fields:
application/json: objectdata(array of PublicHubSkill, required)
GET /api/v1/admin/price-book
Section titled “GET /api/v1/admin/price-book”GET /api/v1/admin/price-book · operation manualPriceBook
Requires price_book_management and prices:read (global admin/viewer). Current effective advisory book and one coherent control version.
Authentication: adminSession
Responses
| Status | Description | Body |
|---|---|---|
200 |
Successful operation; metadata is private and not cached. | application/json: ManualPriceBook |
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 | — |
PUT /api/v1/admin/price-book
Section titled “PUT /api/v1/admin/price-book”PUT /api/v1/admin/price-book · operation replaceManualPriceBook
Requires prices:manage, CSRF and price_book_management. Atomically replaces the manual book with optimistic global control version; validates full configuration. Body limit 4 MiB, 10000 entries. Published automatic prices keep precedence.
Authentication: adminSession
Request body (required)
application/json: objectversion(integer (int64), required, min 0)prices(array of ManualPrice, required, max items 10000)
Responses
| Status | Description | Body |
|---|---|---|
200 |
Successful operation; metadata is private and not cached. | application/json: ManualPriceBook |
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 | — |
DELETE /api/v1/admin/price-book
Section titled “DELETE /api/v1/admin/price-book”DELETE /api/v1/admin/price-book · operation revertManualPriceBook
Requires prices:manage and CSRF. Appends a revision restoring the YAML base; previous console revisions remain readable. Does not rewrite financial events.
Authentication: adminSession
Request body (required)
application/json: objectversion(integer (int64), required, min 0)
Responses
| Status | Description | Body |
|---|---|---|
200 |
Successful operation; metadata is private and not cached. | application/json: ManualPriceBook |
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 | — |
GET /api/v1/admin/price-book/history
Section titled “GET /api/v1/admin/price-book/history”GET /api/v1/admin/price-book/history · operation manualPriceBookHistory
Global admin/viewer only. Descending immutable application revisions; metadata only, not rate snapshots for usage accounting.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit |
query | integer, default 20, min 1, max 100 |
|
before_version |
query | integer, min 1 |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Successful operation; metadata is private and not cached. | application/json: PriceBookHistory |
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 | — |
GET /api/v1/admin/price-book/history/{version}
Section titled “GET /api/v1/admin/price-book/history/{version}”GET /api/v1/admin/price-book/history/{version} · operation manualPriceBookRevision
Read one preserved advisory rate revision. Reverting records the YAML snapshot at that moment; unrelated YAML edits are not historical revisions.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
version |
path | integer, required, min 1 |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Successful operation; metadata is private and not cached. | application/json: PriceBookRevision |
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 | — |
GET /api/v1/admin/catalog/drafts
Section titled “GET /api/v1/admin/catalog/drafts”GET /api/v1/admin/catalog/drafts · operation listCatalogDrafts
Requires prices:read and catalog_review. Imported catalog drafts, newest first, with the number of pending entries.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit |
query | integer, default 50, min 1, max 100 |
|
before |
query | string, max length 64 | Draft ID cursor. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Drafts; private and not cached. | application/json: object |
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 |
503 |
Storage unavailable | — |
Response 200 fields:
application/json: objectdata(array of CatalogDraft, required, max items 100)
POST /api/v1/admin/catalog/drafts
Section titled “POST /api/v1/admin/catalog/drafts”POST /api/v1/admin/catalog/drafts · operation createCatalogDraft
Requires prices:manage, CSRF and catalog_review. Reads a public catalog (modelsdev, cost_map, openrouter, deepinfra) or one connection’s model list (provider:<id>) and stores a draft with the diff against the latest approved archive rows. Nothing takes effect until approved. A newer draft of the same source supersedes an open one.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-CSRF-Token |
header | string, required | Token returned by admin login/session; required with the same-origin session cookie for writes. |
Request body (required)
application/json: objectsource(string, required, max length 160) — modelsdev, cost_map, openrouter, deepinfra or provider:<connection id>
Responses
| Status | Description | Body |
|---|---|---|
201 |
Draft with its entries; closed at once when nothing changed. | application/json: CatalogDraft |
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 |
422 |
Unknown connection, a catalog no connection reads, or more than 5000 changes | — |
503 |
Catalog or storage unavailable; nothing imported | — |
GET /api/v1/admin/catalog/drafts/{id}
Section titled “GET /api/v1/admin/catalog/drafts/{id}”GET /api/v1/admin/catalog/drafts/{id} · operation getCatalogDraft
Requires prices:read and catalog_review. One draft with every entry and its decision.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id |
path | string, required, max length 64 |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Draft; private and not cached. | application/json: CatalogDraft |
401 |
Missing or invalid bearer key | application/json: Error |
403 |
Model not allowed | application/json: Error |
404 |
Feature disabled or draft not found | — |
503 |
Storage unavailable | — |
POST /api/v1/admin/catalog/drafts/{id}/decisions
Section titled “POST /api/v1/admin/catalog/drafts/{id}/decisions”POST /api/v1/admin/catalog/drafts/{id}/decisions · operation decideCatalogDraft
Requires prices:manage, CSRF and catalog_review. Approves or rejects pending entries, all or by number, atomically. Approved entries are appended to the archive from effective_from (default now, never in the past nor before a scheduled row of the same target) and the control version moves. An entry whose archive row changed since the import is stale; nothing applies. Every decision is audited.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-CSRF-Token |
header | string, required | Token returned by admin login/session; required with the same-origin session cookie for writes. |
id |
path | string, required, max length 64 |
Request body (required)
application/json: objectapprove(array of integer, max items 5000)reject(array of integer, max items 5000)approve_all(boolean)reject_all(boolean)effective_from(string (date-time))
Responses
| Status | Description | Body |
|---|---|---|
200 |
The draft after the decision and the control version. | application/json: object |
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 or draft not found | — |
409 |
Draft closed or superseded, entry already decided, or entry stale | — |
422 |
Entry not in the draft or invalid effective_from | — |
503 |
Storage or configuration unavailable | — |
Response 200 fields:
application/json: objectversion(integer (int64), required)draft(CatalogDraft, required)
GET /api/v1/admin/catalog/archive
Section titled “GET /api/v1/admin/catalog/archive”GET /api/v1/admin/catalog/archive · operation listCatalogArchive
Requires prices:read and catalog_review. The append-only archive, newest first, with each row’s effective window (effective_to is the next row’s effective_from) and state current, scheduled or archived.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
provider_id |
query | string, max length 128 | |
model_id |
query | string, max length 512 | |
before |
query | integer (int64), min 1 | Archive row ID cursor. |
limit |
query | integer, default 50, min 1, max 200 |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Archive rows; private and not cached. | application/json: object |
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 |
503 |
Storage unavailable | — |
Response 200 fields:
application/json: objectcurrency(string, required, one of"USD")unit(string, required, one of"per_million_text_tokens")data(array of CatalogArchiveRow, required, max items 200)