Multi-provider AI gateway with capability-aware routing, BYOK, answer
caching (exact; semantic near-match per organisation, opt-in), code-mode execution, and SSE streaming. Single API for many
providers (OpenAI, Anthropic, Google, xAI, Microsoft Azure, Amazon
Bedrock, Cloudflare Workers AI and more).
Long-running work: managed agents, workflows, memory and the MCP server.
POST
/api/memory
Agent typed memory with 5-channel RRF retrieval (Agents Week 2026)
Typed memory store with 5-channel RRF retrieval (BM25, key, substring, vector, HyDE).
Request bodyrequired
| Field | Type | Description |
org_idrequired |
string |
|
api_keyrequired |
string |
|
actionrequired |
enum remember retrieve forget |
|
type |
enum fact event instruction task |
|
text |
string |
|
key |
string |
Canonical fact-key for supersession. |
importance |
number |
|
query |
string |
Required for retrieve action. |
topK |
integer |
|
types |
array of string |
|
id |
string |
Required for forget action. |
Responses
POST
/api/elicit
Approval gate for Code Mode / MCP write tools (Agents Week 2026, Agent Lee)
Two-phase approval: agent calls action=create to request approval,
admin calls action=decide approved=true to grant a token, then the
original tool call can proceed. Classifies as read / write /
destructive automatically.
Request bodyrequired
| Field | Type | Description |
org_idrequired |
string |
|
api_keyrequired |
string |
|
actionrequired |
enum create decide list |
|
agent_id |
string |
|
call |
object |
Required for action=create. |
ttlSec |
integer |
|
token |
string |
Required for action=decide. |
approved |
boolean |
Required for action=decide. |
Responses
POST
/api/mcp/v1
Native MCP JSON-RPC server
Native MCP JSON-RPC server (initialize, tools/list, tools/call)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/agent
Managed agent
Managed agent: configure | turn | get | reset (DO-backed memory)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/workflows
Dynamic workflows
Dynamic workflows: set | get | delete | start | get-run
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/code-review
AI-powered code review
AI-powered code review (security / correctness / performance)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
Usage counters, credits and Stripe surfaces.
POST
/api/billing/checkout
Create a Stripe checkout session for plan upgrade
Create a Stripe checkout session for plan upgrade
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/billing/webhook
Stripe webhook receiver
Stripe webhook receiver (HMAC-signed)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/billing/portal
Stripe Customer Portal session
Stripe Customer Portal session
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/billing/credits
Account credits
Account credits: get | add | refund (admin)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
Audit search, experiments, feature flags and routing policy.
POST
/api/dsl
Routing DSL get/set/delete
Routing DSL: get | set | delete
Responses
POST
/api/audit/search
Search audit events
Searches the 30-day rolling KV-indexed audit log. Best for dev/debug;
production analytics should query a SIEM via Logpush.
Request bodyrequired
| Field | Type | Description |
org_idrequired |
string |
|
api_keyrequired |
string |
|
trace_id |
string |
|
request_id |
string |
|
event |
string |
|
provider |
string |
|
status_min |
integer |
|
status_max |
integer |
|
from_unix_sec |
integer |
|
to_unix_sec |
integer |
|
limit |
integer |
|
Responses
| Status | Meaning | Body |
| 200 |
matches |
|
POST
/api/experiments
A/B experiment management
CRUD + report for A/B experiments. Variants override request fields
(provider, model, profile, etc.) so the same prompt routes
differently per variant. Optional Workers AI judge scores responses
on a customer-supplied rubric. Report endpoint returns metrics with
95% confidence intervals.
Request bodyrequired
| Field | Type | Description |
oprequired |
enum list get set delete conclude report |
|
org_idrequired |
string |
|
api_keyrequired |
string |
|
id |
string |
Required for get/delete/conclude/report |
experiment |
object |
Required for set op |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid experiment config |
|
| 404 |
experiment not found |
|
POST
/api/flags
Manage feature flags (upsert | delete | list)
OpenFeature compatible feature flags backed by KV.
Request bodyrequired
| Field | Type | Description |
org_idrequired |
string |
|
api_keyrequired |
string |
|
actionrequired |
enum upsert delete list |
|
app |
string |
|
key |
string |
|
flag |
object |
|
Responses
POST
/api/templates
Prompt templates
Prompt templates: get | set | list | delete
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
Prompt in, completion out. Routing profile, capability filter and cost cap all apply.
POST
/v1/messages
Anthropic Messages API (Claude Code)
The Anthropic Messages wire format, on the metered /api/route pipeline. Billed from provider-reported usage (cache tokens at their own prices) at the platform price (vendor + 10%) on platform keys; BYOK is not marked up. Every answer carries x-omnistrat-receipt, or x-omnistrat-receipt-unavailable RECEIPT_UNAVAILABLE when its receipt could not be recorded (the answer is still served and billed). Contract and status (checked against Anthropic's documented examples; a live Claude Code session not yet verified) in docs/foundry-terminal/CONTRACT.md.
Responses
| Status | Meaning | Body |
| 200 |
an Anthropic Message, or an SSE stream when stream is true |
|
| 400 |
invalid_request_error (unknown or refused field, prompt too long) |
|
| 401 |
authentication_error |
|
| 402 |
out of credit or spend limit reached |
|
| 404 |
model_not_found |
|
| 429 |
rate_limit_error, with retry-after |
|
| 529 |
overloaded_error, with retry-after (never switched to another vendor mid-conversation) |
|
POST
/v1/responses
OpenAI Responses API (Codex), stateless
The OpenAI Responses wire format on the same metered pipeline. Stateless -- store true, previous_response_id, conversation and background are refused 400 by name; replay the conversation in input. Checked against OpenAI's documented examples; a live Codex session not yet verified.
Responses
| Status | Meaning | Body |
| 200 |
a Response object, or an SSE stream when stream is true |
|
| 400 |
invalid_request_error naming the refused field |
|
| 401 |
invalid credential |
|
| 402 |
out of credit or spend limit reached |
|
| 404 |
model_not_found |
|
POST
/v1/chat/completions
OpenAI Chat Completions, with tool calls
OpenAI Chat Completions on the structured agent path -- tools, tool calls and tool results are carried through, not flattened. Same metering, receipts and margin as /v1/messages.
Responses
| Status | Meaning | Body |
| 200 |
a chat.completion, or an SSE stream when stream is true |
|
| 400 |
invalid request |
|
| 401 |
invalid credential |
|
| 402 |
out of credit or spend limit reached |
|
POST
/api/route/stream
Streaming inference endpoint (SSE)
Returns text/event-stream with chunks data: {"text":"...","done":false}\n\n. The final done event carries receipt (the decision receipt), or receipt null beside receipt_unavailable (see ReceiptUnavailable) when the receipt could not be minted.
| Field | Type | Description |
promptrequired |
string |
|
org_idrequired |
string |
|
api_keyrequired |
string |
|
temperature |
number |
|
system_prompt |
string |
|
provider |
string |
Explicit intent or any:vision / any:cheap / etc. |
model |
string |
A vendor model id (GET /v1/models) or an omni/* virtual model, including omni/petra and omni/rowdy. An unknown id is 404 model_not_found, never forwarded. |
open_models |
enum off include only |
The open-weight toggle (also the x-omnistrat-open-models header; the two must agree). off excludes open-weight rows, only excludes every row not confirmed open-weight, include (default) filters nothing. Applies to a named model only. When the toggle alone leaves nothing eligible the answer is 409 NO_OPEN_MODEL_ELIGIBLE with every row's reasons; the request is never widened. |
session_id |
string |
|
capabilities |
array of Capability |
|
routing_profile |
RoutingProfile |
|
max_cost_usd |
number |
|
fan_out |
integer |
|
fallback |
array of string |
|
tools |
array of ToolDef |
|
tool_choice |
object |
auto | none | required | {type:function,function:{name}} |
response_format |
object |
|
redact_pii |
boolean |
|
semantic_cache |
boolean |
The semantic (near-match) answer cache is OFF unless your organisation's owner or admin has enabled it (semantic_cache_enabled on PUT /api/routing/settings; default false). When it is enabled, false opts this request out. true cannot turn it on for an organisation that has not enabled it: the request is served without it and the response says so in x-omnistrat-adjusted (semantic_cache). A setting that cannot be read counts as off. The exact-answer cache is not affected. A semantic hit answers with cache "semantic" and its similarity. |
no_store |
boolean |
When true, this call neither reads nor writes the answer cache (exact or semantic) and shares no in-flight result with another request, in either direction. (No inference call, no_store or not, is cached at Cloudflare AI Gateway.) An honoured call answers with no_store true. A non-boolean value is refused with 400 INVALID_NO_STORE. |
study |
object |
A theology study request (docs/STUDY-LIBRARY.md). The sources are checked against the study catalog (GET /api/study/catalog) before any model is called. mark_quotes true asks the router to send the quotation-marking instruction; its tokens are not billed, and with a system prompt of your own it is refused with 400 STUDY_MARK_QUOTES_CONFLICT (your prompt is never edited). The omni CLI and the web terminal send it by default. The response's study.quotes says which quotations were checked or flagged. |
stream |
boolean |
|
moderate_output |
boolean |
|
execute_code |
boolean |
Opt in to Code Mode. Only when true is a tool declaration injected into the prompt and a js/ts code block in the answer run, in an isolated Worker sandbox with no network. Default false - the answer is returned as the model wrote it and nothing is executed. If no isolate is available the answer is returned unchanged and routing.code_exec says why. Never triggers a second provider call. Required when mcp_servers is sent. |
mcp_servers |
array of object |
|
Responses
| Status | Meaning | Body |
| 200 |
SSE stream |
string |
POST
/api/batch
Batch inference (up to 50 prompts)
Batch inference (up to 50 prompts) - sync or webhook-async
Request bodyrequired
| Field | Type | Description |
org_idrequired |
string |
|
api_keyrequired |
string |
|
shared |
RouteRequest |
|
promptsrequired |
array of RouteRequest |
|
Responses
| Status | Meaning | Body |
| 200 |
ordered results array |
|
POST
/api/estimate
Pre-flight cost estimate
Returns USD estimate per provider for the given prompt without making a provider call. Takes the credentials POST /api/route takes, through the same resolver - the body api_key, or "Authorization Bearer ost_..." (a scoped token whose scope reaches /api/estimate) with no api_key. org_id is required either way and must be the token's own org.
| Field | Type | Description |
promptrequired |
string |
|
org_idrequired |
string |
|
api_keyrequired |
string |
|
temperature |
number |
|
system_prompt |
string |
|
provider |
string |
Explicit intent or any:vision / any:cheap / etc. |
model |
string |
A vendor model id (GET /v1/models) or an omni/* virtual model, including omni/petra and omni/rowdy. An unknown id is 404 model_not_found, never forwarded. |
open_models |
enum off include only |
The open-weight toggle (also the x-omnistrat-open-models header; the two must agree). off excludes open-weight rows, only excludes every row not confirmed open-weight, include (default) filters nothing. Applies to a named model only. When the toggle alone leaves nothing eligible the answer is 409 NO_OPEN_MODEL_ELIGIBLE with every row's reasons; the request is never widened. |
session_id |
string |
|
capabilities |
array of Capability |
|
routing_profile |
RoutingProfile |
|
max_cost_usd |
number |
|
fan_out |
integer |
|
fallback |
array of string |
|
tools |
array of ToolDef |
|
tool_choice |
object |
auto | none | required | {type:function,function:{name}} |
response_format |
object |
|
redact_pii |
boolean |
|
semantic_cache |
boolean |
The semantic (near-match) answer cache is OFF unless your organisation's owner or admin has enabled it (semantic_cache_enabled on PUT /api/routing/settings; default false). When it is enabled, false opts this request out. true cannot turn it on for an organisation that has not enabled it: the request is served without it and the response says so in x-omnistrat-adjusted (semantic_cache). A setting that cannot be read counts as off. The exact-answer cache is not affected. A semantic hit answers with cache "semantic" and its similarity. |
no_store |
boolean |
When true, this call neither reads nor writes the answer cache (exact or semantic) and shares no in-flight result with another request, in either direction. (No inference call, no_store or not, is cached at Cloudflare AI Gateway.) An honoured call answers with no_store true. A non-boolean value is refused with 400 INVALID_NO_STORE. |
study |
object |
A theology study request (docs/STUDY-LIBRARY.md). The sources are checked against the study catalog (GET /api/study/catalog) before any model is called. mark_quotes true asks the router to send the quotation-marking instruction; its tokens are not billed, and with a system prompt of your own it is refused with 400 STUDY_MARK_QUOTES_CONFLICT (your prompt is never edited). The omni CLI and the web terminal send it by default. The response's study.quotes says which quotations were checked or flagged. |
stream |
boolean |
|
moderate_output |
boolean |
|
execute_code |
boolean |
Opt in to Code Mode. Only when true is a tool declaration injected into the prompt and a js/ts code block in the answer run, in an isolated Worker sandbox with no network. Default false - the answer is returned as the model wrote it and nothing is executed. If no isolate is available the answer is returned unchanged and routing.code_exec says why. Never triggers a second provider call. Required when mcp_servers is sent. |
mcp_servers |
array of object |
|
Responses
| Status | Meaning | Body |
| 200 |
estimate |
|
POST
/api/embed
Standalone embeddings
Standalone embeddings (OpenAI / Workers AI)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/tokenize
Token count estimate
Token count estimate (no provider call)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/moderate
Standalone LlamaGuard moderation
Standalone LlamaGuard moderation
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
Customer-provided provider keys and scoped sub-tokens.
POST
/api/byok
Customer-provided keys
Customer-provided keys: list | upsert | delete | add-to-rotation | check
Request bodyrequired
| Field | Type | Description |
oprequired |
enum list upsert delete add-to-rotation check |
|
org_id |
string |
Required with api_key; optional with a Passport session (must be the session's org). |
api_key |
string |
The org key or a member key. Omit it to authenticate with a Passport session. |
provider |
enum openai claude gemini xai groq muse mistral cohere perplexity nvidia-nim anyscale hyperbolic baseten lepton replicate together inkling |
Required for every op but list. |
byok_key |
string |
Required for upsert and add-to-rotation |
store_unchecked |
boolean |
upsert / add-to-rotation: store the key even when the provider could not be asked about it (it is then answered and listed as key_check "unchecked", never "works"). A key the provider refused is never stored. |
Responses
| Status | Meaning | Body |
| 200 |
ok. op=list answers {ok, complete: true, providers: [{provider, state: "configured", masked, key_check}]}, key_check being the last check with the provider: {state: "checked", verdict, checked_at, status?, detail, phase} or {state: "not_checked", reason: "never" | "unreadable"}. upsert / add-to-rotation check the key with the provider FIRST (one read-only list-models or account request) and answer key_check "works" | "unverified" (the provider has no verified check endpoint; no request was made) | "unchecked" (store_unchecked). op=check re-checks every stored key for the provider, changes no key, and answers {verdict: "works" | "refused" | "unreachable" | "unverified", checked_at, detail, keys: [{slot, verdict, status?, provider_reason?}]}. |
|
| 403 |
upsert | delete | add-to-rotation need the admin role (INSUFFICIENT_ROLE; ROLE_UNVERIFIED for a credential with no verified role). |
|
| 404 |
op=check with no key stored for the provider (BYOK_NOT_CONFIGURED). |
|
| 422 |
PROVIDER_KEY_REFUSED: the provider refused the key (provider_status, provider_error_code, provider_reason in its words, the key withheld). Nothing was stored. |
|
| 429 |
KEY_CHECK_RATE_LIMITED: the organisation reached the key-check limit (10 a minute, 100 a day). No request was made and nothing was stored. Retry-After. |
|
| 503 |
op=list could not read every provider's record: error.code BYOK_LIST_INCOMPLETE, error.complete false, error.unreadable [provider], error.providers with state "read_failed" for those. Never reported as "not registered". Retry-After. PROVIDER_KEY_UNCHECKED: the provider could not be asked (timeout, network, 5xx, 429 or another status that does not answer), nothing stored; KEY_CHECK_UNAVAILABLE: the key-check limiter could not count; KEY_CHECK_READ_FAILED (op=check): the stored record could not be read. |
|
POST
/api/scoped-tokens
Issue / revoke / verify scoped sub-tokens
Issue / list / revoke / revoke-all / verify scoped sub-tokens. op=issue takes scope (inference | agent | admin), ttl_sec (whole seconds; default 7 days, or the scope's maximum when shorter), caps and an optional label (1-64 printable ASCII characters, shown by op=list, never inside the signed token). A ttl_sec above the scope's maximum (24 h for admin, 30 days otherwise) is REFUSED with 400 TTL_TOO_LONG naming max_ttl_sec -- it is never shortened; below 60 s is TTL_TOO_SHORT, a non-integer INVALID_TTL, a bad label INVALID_LABEL. Success answers {ok, token, sub_id, scope, ttl_sec, expires_at, label?}.
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body, TTL_TOO_LONG, TTL_TOO_SHORT, INVALID_TTL or INVALID_LABEL |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
Image generation, transcription and speech.
POST
/api/image
Text-to-image
Text-to-image (SDXL / DALL-E)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/speak
Text-to-speech
Text-to-speech (MeloTTS / OpenAI TTS)
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
Outbound email.
POST
/api/email
Send notification email via Cloudflare Email Service (Agents Week 2026)
Notifications via Cloudflare Email Service.
Request bodyrequired
| Field | Type | Description |
org_idrequired |
string |
|
api_keyrequired |
string |
|
kind |
enum raw |
Optional; plain-text messages only. System notification kinds are sent by the platform itself and are not accepted here. |
torequired |
string |
An active member of the org, or its contact address, that has a verified OmniStrat account. |
subjectrequired |
string |
|
textrequired |
string |
Plain text body. HTML is not accepted; mail is sent from the platform default sender. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 502 |
email transport unavailable |
|
Everything else the worker exposes.
POST
/api/orders/multi
Multi-account execution
Multi-account execution: one order to every account the caller owns. Two-phase - preflight refuses the whole request before anything is placed
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/atm
Arm automatic trade management on a position
Arm automatic trade management on a position: stop, target, breakeven and trailing. Requires an explicit acknowledgement that the server holds usable credentials
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/scheduling/pages
Create a public booking page
Create a public booking page: availability windows, slot length, buffer, notice and horizon
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
POST
/api/matchmaking/impact-ratio
Impact-ratio calculator for a deployer of the talent-matching program
Arithmetic on aggregate counts the deployer supplies, by the selection-rate method of 6 RCNY 5-301 (selection rate per category; impact ratio = category rate / the most selected category's rate; sex, race/ethnicity and intersectional categories; a category under 2% is excluded only with a stated justification). For an owner or admin of an org that is a deployer of the program, for that org only. Nothing is stored and nothing acts on the result; it is not an independent audit. Input that looks like individual records is refused.
Request bodyrequired
Responses
| Status | Meaning | Body |
| 200 |
rates and ratios per category, the excluded categories named, stored false |
|
| 400 |
IMPACT_INPUT_INVALID, ROW_LEVEL_DATA_REFUSED, UNKNOWN_CATEGORY, INCONSISTENT_COUNTS or JUSTIFICATION_REQUIRED; nothing stored |
Error |
| 401 |
no Passport session |
|
| 403 |
NO_ORG, or ROLE_REQUIRED (not an owner or admin) |
|
| 404 |
NOT_FOUND (the org is not a deployer, or the body names another org) |
|
| 413 |
BODY_TOO_LARGE |
|
| 503 |
DEPLOYER_UNREADABLE |
|
Search and document-backed context.
POST
/api/aisearch
Hybrid BM25 + vector retrieval over RAG collections (Agents Week 2026)
Hybrid BM25 + vector retrieval with cross-instance support.
Request bodyrequired
| Field | Type | Description |
org_idrequired |
string |
|
api_keyrequired |
string |
|
queryrequired |
string |
|
collection |
string |
Single-instance mode. |
collections |
array of string |
Cross-instance mode. |
topK |
integer |
|
metadataFilter |
object |
|
boosts |
array |
|
vectorizeWeight |
number |
|
bm25Weight |
number |
|
Responses
POST
/api/artifacts
Git-shape versioned config storage (Agents Week 2026 - Artifacts)
Operations: init, commit, read, list, fork, log. Stores routing
DSL, prompt templates, experiments, and agent skills with full
Git semantics (time-travel reads, branch fork, content-addressed
SHA-256 blobs).
Request bodyrequired
| Field | Type | Description |
org_idrequired |
string |
|
api_keyrequired |
string |
|
actionrequired |
enum init commit read list fork log |
|
repo |
string |
|
branch |
string |
|
source |
string |
Source ref for fork. |
path |
string |
|
data |
string |
|
message |
string |
|
ref |
string |
Branch name or commit sha. |
limit |
integer |
|
Responses
POST
/api/rag
RAG document store
RAG document store: upsert | query | delete | list
| Field | Type | Description |
org_idrequired |
string |
Organisation id, e.g. org_9f2c. |
api_keyrequired |
string |
Org API key or a scoped sub-token. |
Responses
| Status | Meaning | Body |
| 200 |
ok |
|
| 400 |
invalid body |
Error |
| 401 |
authentication failed |
Error |
| 429 |
rate limited or budget exhausted |
Error |
Unauthenticated: health, version, catalogue and this document.