Documentation

Build with OmniStrat.

Reference for every public surface. OmniStrat Foundry for AI, the Terminal for markets, Agora for attestation, and the Passport that identifies you at every door.

For builders

OmniStrat Foundry

One endpoint across many providers. A signed receipt on every routed call, and a call whose receipt could not be recorded says so in its response. Cost caps checked before each call (per org, per key, per member, per call), edge-deployed worldwide, tamper-evident audit chain on every request, MCP-discoverable at /.well-known/mcp/server-card.json.

OpenAI-compatible. Point an OpenAI SDK at https://api.petraproof.com/v1, use your OmniStrat key and a model id from /v1/models: /v1/chat/completions (streaming included), /v1/embeddings, /v1/models. Every answer carries a receipt, a chained, content-blind Proof of Decision anyone can verify at /api/decision/verify/<receipt_id> with no account. An answer whose receipt could not be recorded says so: receipt: null with receipt_unavailable in the body, or the x-omnistrat-receipt-unavailable header. It is still served and billed.

Building agents that call tools in a loop? Code Mode runs model-written code against your APIs inside an isolated sandbox, with the same receipts.

https://api.petraproof.com/v1/chat/completions
For traders

OmniStrat Terminal

Live broker integration (Alpaca shipped; more coming). Strategy backtests, live ticks over WebSocket from your own Alpaca feed, AI co-pilot with personal cost budget. You connect your own broker or data subscription; OmniStrat never resells market data, and a view with nothing connected says so (DATA_SOURCE_REQUIRED, listed at /api/data-sources). Every order written to a tamper-evident, hash-chained log. Record-keeping built into the stack, not bolted on top.

https://api.petraproof.com/api/portfolio
For signers

OmniStrat Agora

Cryptographic attestation for NDAs, MSAs, KYC, board resolutions. Encrypted-identity matchmaking with tri-party signed Match Certificates. Peer cohorts with a shared ledger. Every signature Ed25519, hash-chained, publicly verifiable at the edge, no account required to verify.

https://api.petraproof.com/api/attest/verify/<cert_id>
Part of Agora

Agora Cohorts

Peer cohorts of similar tier convene inside Agora. Shared Taskforce quests, private guild channels, and a shared cohort ledger. Every attestation any member signs chains to the same cohort ledger, the group’s record is portable, provable, and cryptographically the sum of its members.

/api/agora/cohorts
Part of Agora

Agora Matchmaking

Encrypted-identity introductions between candidates and enterprises. Candidates stay anonymous until they are matched with a company and choose to share their identity with it. Every match is a tri-party Ed25519 signature (candidate, enterprise, OmniStrat), hash-chained to the same public ledger as attestations. Placements are verifiable evidence, not screenshots.

/api/agora/matchmaking
For everyone

OmniStrat Passport

Cross-product SSO. EdDSA (Ed25519) signed JWTs. Public JWKS served at /auth/jwks for local verification by every consumer, no shared secret.

https://api.petraproof.com/auth/jwks

Quickstart. Router

You need two values from your keys page after sign-in: your org id (org_...) and your org API key (sk_live_...). Put them in your server's environment as OMNI_ORG_ID and OMNI_API_KEY. Every example reads them from there.

Run these on a server. Never put this key in a web page: anyone who opens the page can copy it, and an org key does not expire.

Model ids come from GET https://api.petraproof.com/v1/models. omni/auto lets the router pick by cost, latency and quality; a vendor id such as claude-sonnet-5-5 pins that model.

curl

# Native endpoint. The org key goes in the JSON body, never in a header.
# idempotency-key: a retry with the same key within 24 hours replays the first
# answer instead of running twice. This one is never empty (a word, the time and
# the shell's process id) and changes on every run, so an edited prompt is
# never answered with an earlier reply. Reuse one key only to retry one request.
curl --fail-with-body -sS https://api.petraproof.com/api/route \
  -H "content-type: application/json" \
  -H "idempotency-key: hello-$(date +%s)-$$" \
  -d '{
    "org_id": "'"$OMNI_ORG_ID"'",
    "api_key": "'"$OMNI_API_KEY"'",
    "model": "omni/auto",
    "prompt": "Hello"
  }'
# 200: { "ok": true, "provider", "model", "result", "tokens_in", "tokens_out", "cost_usd", "receipt" }
# Anything else: curl exits 22 and prints { "error": { "code", "message", "hint", "doc_url", "request_id" } }

JavaScript (Node 18+)

// Node 18+, on your server. OMNI_ORG_ID and OMNI_API_KEY come from its environment.
import { randomUUID } from "node:crypto";

const res = await fetch("https://api.petraproof.com/api/route", {
  method: "POST",
  headers: {
    "content-type": "application/json",
    "idempotency-key": randomUUID(),
  },
  body: JSON.stringify({
    org_id: process.env.OMNI_ORG_ID,
    api_key: process.env.OMNI_API_KEY,
    model: "omni/auto",
    prompt: "Hello",
  }),
});
const body = await res.json().catch(() => null);
if (!res.ok) {
  const err = body?.error ?? {};
  throw new Error(`HTTP ${res.status} ${err.code ?? "no error body"}: ${err.message ?? ""} (request ${err.request_id ?? res.headers.get("x-request-id")})`);
}
console.log(body.result);
// cost_usd is null or absent when the router could not price the call; cost_estimated marks an estimate.
console.log(body.model, body.cost_usd ?? "cost unknown", body.cost_estimated ? "(estimated)" : "", body.receipt?.receipt_id);

Python

# Python 3, on your server. pip install requests
import os, uuid, requests

r = requests.post(
    "https://api.petraproof.com/api/route",
    headers={"idempotency-key": str(uuid.uuid4())},
    json={
        "org_id": os.environ["OMNI_ORG_ID"],
        "api_key": os.environ["OMNI_API_KEY"],
        "model": "omni/auto",
        "prompt": "Hello",
    },
    timeout=120,
)
if not r.ok:
    try:
        err = r.json().get("error", {})
    except ValueError:
        err = {"code": "no error body", "message": r.text[:200]}
    raise SystemExit(f"HTTP {r.status_code} {err.get('code')}: {err.get('message')} (request {err.get('request_id')})")

body = r.json()
print(body["result"])
# cost_usd is null or absent when the router could not price the call; cost_estimated marks an estimate.
cost = body.get("cost_usd")
print(body["model"], "cost unknown" if cost is None else cost, "(estimated)" if body.get("cost_estimated") else "")

TypeScript SDK

// npm install @omnistrat/sdk    (server-side: Node 18+, Workers, Deno or Bun)
import { OmniStrat, OmniStratApiError } from "@omnistrat/sdk";

const client = new OmniStrat({
  orgId: process.env.OMNI_ORG_ID!,
  apiKey: process.env.OMNI_API_KEY!, // the org key (sk_live_...); the SDK sends it in the body
});

try {
  const r = await client.route({ model: "omni/auto", prompt: "Hello" });
  console.log(r.result);
} catch (e) {
  if (e instanceof OmniStratApiError) {
    console.error(`HTTP ${e.status} ${e.code}: ${e.message} (request ${e.request_id})`);
    process.exit(1);
  }
  throw e;
}

OpenAI-compatible endpoint

Existing OpenAI code changes two things: the base URL and the key. Send your OmniStrat key (the org key, a member key or a scoped token) as the Bearer token. The org comes from the key, so there is no org_id. Errors here use OpenAI's shape and a lowercase code, which matches the entries under Errors.

# OpenAI-compatible. The key goes in the Authorization header; the org comes from the key.
curl --fail-with-body -sS https://api.petraproof.com/v1/chat/completions \
  -H "content-type: application/json" \
  -H "authorization: Bearer $OMNI_API_KEY" \
  -d '{
    "model": "omni/auto",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
# Errors use OpenAI's shape: { "error": { "message", "type", "param", "code" } }
// npm install openai    (server-side)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.petraproof.com/v1",
  apiKey: process.env.OMNI_API_KEY,
});

try {
  const r = await client.chat.completions.create({
    model: "omni/auto",
    messages: [{ role: "user", content: "Hello" }],
  });
  console.log(r.choices[0].message.content);
} catch (e) {
  if (e instanceof OpenAI.APIError) {
    console.error(`HTTP ${e.status} ${e.code}: ${e.message}`);
    process.exit(1);
  }
  throw e;
}
# pip install openai    (server-side)
import os
from openai import OpenAI, APIStatusError

client = OpenAI(base_url="https://api.petraproof.com/v1", api_key=os.environ["OMNI_API_KEY"])

try:
    r = client.chat.completions.create(
        model="omni/auto",
        messages=[{"role": "user", "content": "Hello"}],
    )
except APIStatusError as e:
    raise SystemExit(f"HTTP {e.status_code} {e.code}: {e.message}")
print(r.choices[0].message.content)

The router picks the provider, applies your org's cost cap, and uses OmniStrat's provider keys or your own (BYOK). Switching models is a change to one string.

Which key goes where

Different surfaces read the credential from different places. Putting it in the wrong place is the most common first error.

api_key in the JSON body, with org_id
The org key (sk_live_...) or a member key (sk_mbr_...). Used on /api/route, /api/route/stream, /api/code-mode/execute, /api/rotate-key, /api/scoped-tokens and the other /api/ endpoints. An org key sent as Authorization: Bearer to /api/route is not read there, and the call fails with MISSING_FIELDS.
Authorization: Bearer ost_...
A scoped token: short-lived (7 days by default, 30 at most, 1 day for admin scope), revocable, and limited to its scope's endpoints. Accepted on /api/route in place of api_key; org_id still goes in the body and must be the token's org.
Authorization: Bearer <key> or x-api-key
The OpenAI- and Anthropic-compatible endpoints: /v1/chat/completions, /v1/messages, /v1/responses, /v1/embeddings. Any of the org key, a member key or a scoped token. The org comes from the key; no body field or header names it.
Bearer (Passport JWT)
A signed-in person. Used for /auth/me, /api/billing/subscribe and the console's endpoints.
No auth
Public surfaces: /auth/jwks, /api/decision/verify/<id>, /api/attest/verify/<id>, /api/catalogs/version, /api/public/pricing, /health, /api/waitlist.

Scoped tokens

Mint one with the org key when a process should hold something that expires. A token is still a secret: keep it on the server too.

Run these on a server. Never put this key in a web page: the mint call carries the org key.

# Mint a scoped token on your server (default scope "inference"; ttl_sec up to 30 days).
curl --fail-with-body -sS https://api.petraproof.com/api/scoped-tokens \
  -H "content-type: application/json" \
  -d '{
    "op": "issue",
    "scope": "inference",
    "ttl_sec": 3600,
    "org_id": "'"$OMNI_ORG_ID"'",
    "api_key": "'"$OMNI_API_KEY"'"
  }'
# 200: { "ok": true, "token": "ost_...", "sub_id", "scope": "inference", "expires_at" }

Then send the token where the key went. A token is not read in the body.

# Use it as a Bearer header. org_id still goes in the body on /api/route.
curl --fail-with-body -sS https://api.petraproof.com/api/route \
  -H "content-type: application/json" \
  -H "authorization: Bearer $OMNI_TOKEN" \
  -d '{ "org_id": "'"$OMNI_ORG_ID"'", "model": "omni/auto", "prompt": "Hello" }'

Using it from a no-code tool or a website

Call OmniStrat from your server, or from a no-code tool's server-side step (an HTTP action in Zapier or Make, a backend workflow in Bubble or Webflow), never from code that runs in a visitor's browser.

Why: everything a web page runs, the visitor can read. An org key in page code can be copied by anyone who opens the page and used to spend your credit until you rotate it. For a website, the page calls your own server and your server calls OmniStrat with the key from its environment.

In a no-code tool, make one HTTP request with these fields, and keep the two values in the tool's secret or connection settings, not in a field the page shows:

Never put this key in a web page or an embed. A server-side step only.

POST https://api.petraproof.com/api/route
content-type: application/json

{
  "org_id": "<your org id, from the tool's secret store>",
  "api_key": "<your org key, from the tool's secret store>",
  "model": "omni/auto",
  "prompt": "Hello"
}

The answer is in result. A failed call answers with an HTTP status other than 200 and error.code; map that to the tool's error branch and look the code up under Errors.

Streaming

/api/route/stream sends server-sent events: text frames, then one final frame with done: true carrying the tokens, cost and receipt. A model whose provider does not stream answers with the plain JSON body instead, so check the content type. A stream that ends with no done frame is incomplete, never a finished answer.

Run these on a server. Never put this key in a web page.

# Native streaming. -N prints each event as it arrives.
curl --fail-with-body -sS -N https://api.petraproof.com/api/route/stream \
  -H "content-type: application/json" \
  -d '{
    "org_id": "'"$OMNI_ORG_ID"'",
    "api_key": "'"$OMNI_API_KEY"'",
    "model": "omni/auto",
    "prompt": "Write a haiku about receipts"
  }'
# data: {"text":"Ink ","done":false}
# data: {"text":"","done":true,"provider":...,"model":...,"tokens_in":...,"tokens_out":...,"cost_usd":...,"receipt":{...}}
# A provider failure mid-stream is "event: error" followed by the end of the stream, with no done event.
// The OpenAI SDK raises APIError on a stream error event as well as on an HTTP error.
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.petraproof.com/v1", apiKey: process.env.OMNI_API_KEY });

try {
  const stream = await client.chat.completions.create({
    model: "omni/auto",
    messages: [{ role: "user", content: "Write a haiku about receipts" }],
    stream: true,
  });
  for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
} catch (e) {
  if (e instanceof OpenAI.APIError) {
    // e.status is set for an HTTP error and absent for an error event inside the stream.
    console.error(`\n${e.status ? `HTTP ${e.status} ` : ""}${e.code}: ${e.message} (any text above is partial)`);
    process.exit(1);
  }
  throw e;
}

What a receipt tells you

Every answer from /api/route and the agent endpoints carries a receipt: a chained, content-blind record anyone can check at /api/decision/verify/<receipt_id>. Beyond the entry hash and the signature, it says three things about this answer. An answer whose receipt could not be recorded carries receipt_unavailable instead, never nothing.

  • verified: which deterministic checks ran on this answer, each with pass, fail, not_applicable (you declared nothing for it to check) or unavailable (it could not decide). The checks are JSON Schema validity (when you sent a response_format schema), tool-argument validity (when the model called a tool), and whether a tool call you required was made. They are the same checks OmniStrat's own evaluation suite scores models with. A check that did not run is never reported as passed. escalation says what a failed check did. On a plain (non-streamed) call through omni/* or the ranked router, a failed check asks the next model in the same fallback order, within the same repeat budget that limits retries: escalated (the next model answered and its answer is the one you got; the rejected answer is charged as its own statement line), budget_exhausted (the repeat budget, a provider's Retry-After or a rate-limit answer stopped it), or escalation_failed (no next model answered). In the last two you get the original answer, charged once. A streamed answer says after_delivery; a pinned model, an agent turn or a cached answer says not_wired: nothing is re-run.
  • confidence: a band, one of verified, high, moderate, low or unmeasured, with the measured facts it was computed from (basis): the checks above, OmniStrat's own test results for the exact model version that answered, and whether the answer or the question was cut short. The model's own claim of confidence is never used. When nothing was measured the band is unmeasured, not a default "high". The verify endpoint recomputes the band from the receipt and reports confidence_ok.
  • artifact_id: which exact model version served (the id is also sent as the x-omnistrat-artifact header when it is known). When it is not known the header is absent and the receipt says why in artifact_absent.
# In the 200 body of /api/route (abridged):
"receipt": {
  "receipt_id": "dr_...",
  "artifact_id": "aid1_...",
  "verified": { "v": "vf1", "escalation": "not_needed",
    "checks": [ { "check": "json_schema", "verdict": "pass", "reason": "ok" },
                { "check": "tool_arguments", "verdict": "not_applicable", "reason": "no_tool_calls" },
                { "check": "tool_expected", "verdict": "not_applicable", "reason": "no_tool_required" } ] },
  "confidence": { "v": "cf1", "band": "verified", "why": "check_passed", "basis": { ... } }
}

What it holds about the text. Never the prompt or the answer. A receipt keeps a keyed fingerprint of both (content_commitment, an HMAC under a key OmniStrat derives for your organisation alone and does not store; OmniStrat can therefore compute it too), so nobody holding only the receipt can test a guess against it. Receipts minted before November 2026 also carry a plain SHA-256 of each (prompt_hash, response_hash) and still verify as they were sealed. To check text you kept against a new receipt, a signed-in member of the organisation that made the call sends { "receipt_id": "dr_...", "text": "..." } (and, optionally, prompt_text) to POST /api/receipts/content-check with their Passport session. The answer is { "matches": true } or false; another organisation's receipt is 403 RECEIPT_NOT_YOURS, and a check that cannot run is an error that says why (503 CONTENT_KEY_UNAVAILABLE), never false. The text is not stored; checks are limited to 30 a minute per person. An owner or admin can instead read the key with GET /api/receipts/content-key and check offline. Verify and the receipt panel in Talk do this for you.

GET /api/decision/verify/<receipt_id> also returns verifier_evidence: the verdicts and band keyed by the receipt id and entry hash, with no prompt or answer text, for compliance records. It is null when the receipt does not verify or predates these fields.

Study requests

A /api/route call that carries study is checked against the study catalog before any model is called (GET /api/study/catalog, with your key). A source that cannot be quoted under its licence rule is refused by name and nothing is charged. The answer is counted before it is sent: credit lines are added for you, link-only sources are cited instead of quoted, and an answer over a source’s limit is withheld with the reason.

  • study.mark_quotes: set it to true and the router asks the model to mark every quotation as [quote source="<id>" ref="<reference>" book="<book>"]…[/quote]. The instruction’s tokens are not billed, and the response says x-omnistrat-adjusted: study_quote_marking. If you send your own system prompt as well, the request is refused with STUDY_MARK_QUOTES_CONFLICT: your prompt is never edited. The omni CLI and the web terminal send the instruction by default.
  • study.quotes in the response and on the receipt: whether marking was instructed, opt_in or none, a verdict, the reasons, and how many quotations were marked and flagged. A wrongly marked quotation and an unmarked one the router can see are flagged. The library holds no source text yet, so a correctly marked quotation is unscored, never pass.

Add the field to the body you already send (with your org_id and credential, as in the quickstart):

{
  "prompt": "What does the Catechism say about the Eucharist?",
  "study": { "sources": ["ccc-usccb"], "mark_quotes": true }
}

Impact-ratio calculator

POST /api/matchmaking/impact-ratio, with a Passport session, for an owner or admin of an organisation that uses the talent-matching program. Send counts, not people: for each category, how many people your process assessed and how many it selected to move forward. The answer gives each category’s selection rate and its impact ratio (its rate divided by the rate of the most selected category), by the selection-rate method of the New York City rules for Local Law 144 (6 RCNY 5-301), for sex, race/ethnicity and their combinations.

  • Categories are the EEO-1 Component 1 list. People whose category is unknown go in unknown_assessed and are counted, not calculated.
  • A category under 2% of the people assessed is marked. It is left out of the ratios only when you send exclude_small_categories with a justification, and its count and rate are still shown.
  • It is arithmetic on your counts. Nothing is stored, nothing acts on the result, and it is not an independent audit.
{
  "total_assessed": 200,
  "sex": {
    "counts": {
      "male": { "assessed": 100, "selected": 50 },
      "female": { "assessed": 100, "selected": 40 }
    },
    "unknown_assessed": 0
  }
}

Refusals are listed under Errors.

Passport in your own service

Verify a Passport token locally with the public JWKS. No shared secret leaves the router. Keep tokens out of localStorage, where any script on the page can read them; an httpOnly cookie set by your server cannot be read by page scripts.

// Verify a Passport token in your own service with the public JWKS (npm install jose).
import { createRemoteJWKSet, jwtVerify } from "jose";

const JWKS = createRemoteJWKSet(new URL("https://api.petraproof.com/auth/jwks"));

export async function passportClaims(token) {
  try {
    const { payload } = await jwtVerify(token, JWKS, {
      issuer: "omnistrat-passport",
      algorithms: ["EdDSA", "RS256"],
    });
    return payload; // { sub: "usr_...", email, ent: [...], exp, ... }
  } catch (e) {
    console.error("passport token rejected:", e.code ?? e.message);
    return null; // answer 401
  }
}
// A local check proves signature and expiry. To also catch a revoked session,
// call GET https://api.petraproof.com/auth/verify with the token as a Bearer header.

Sign-in itself (POST /auth/login) is limited to 5 attempts a minute per network and may answer MFA_REQUIRED, so it is not something to relay on behalf of many users from one server.

Keys, rotation and revocation

Your org id and key are on your keys page. Rotate the key over the API:

Run this on a server. Never put this key in a web page.

# Rotate the org API key. The org's own key only; a member key is refused.
curl --fail-with-body -sS https://api.petraproof.com/api/rotate-key \
  -H "content-type: application/json" \
  -d '{ "org_id": "'"$OMNI_ORG_ID"'", "api_key": "'"$OMNI_API_KEY"'" }'
# 200: { "ok": true, "new_api_key": "sk_live_...", "scoped_tokens_revoked": true }
Rotation is a cutover, not an overlap
The old key stops working immediately. An org holds one API key; rotation replaces it and the previous key's auth cache is invalidated in the same request rather than being left to expire. There is no grace window, so deploy the new key to your callers before you rotate, or rotate during a maintenance window. Use per-member keys if you need to roll credentials independently.
Scoped tokens end too
Every ost_ token the org issued is voided before the new key is written. If that cannot be done, nothing is rotated and the call answers TOKEN_REVOKE_UNAVAILABLE.
Only the org key can rotate
A member key cannot rotate the org key regardless of its role, and is refused with ROTATE_FORBIDDEN (403) before authentication is even attempted.
Every rotation is on the record
A key_rotated event is emitted to your audit chain. It appears in the Audit log and in /api/audit/search.
Revoking a session is separate
Passport sessions are revoked individually and do not depend on the org key. Rotating the API key does not sign anyone out; ending a session does not invalidate the API key.
BYOK provider keys rotate independently
POST /api/byok with op: "add-to-rotation" keeps up to 20 provider keys in a rotation set. Past that the call is refused with BYOK_ROTATION_FULL (413) rather than silently dropping the oldest.

Errors

The native endpoints answer a failure with an HTTP status other than 200 and one shape:

{
  "error": {
    "code": "MISSING_FIELDS",
    "message": "Required fields are missing.",
    "hint": "prompt, org_id, and api_key are required on /api/route.",
    "doc_url": "https://petraproof.com/docs.html#error-missing_fields",
    "request_id": "..."
  }
}

Read error.code, not the message. Quote request_id (also the x-request-id header) to support. /v1/chat/completions and /v1/responses use OpenAI's shape, {"error": {"message", "type", "param", "code"}}; /v1/messages uses Anthropic's, {"type": "error", "error": {"type", "message"}}, with the code at the start of the message. Code Mode's own refusals are {"ok": false, "error": "<code>"}. A 503 with retry-after means the router could not check something and refused rather than guess; nothing was charged, retry after that many seconds.

Request and body

IDEMPOTENCY_UNAVAILABLE 503
Your request carried an Idempotency-Key, and whether that key had already run could not be read. It was not run: nothing was called or charged, so a retry cannot run it twice. Retry after the retry-after header, with the same key.
INVALID_BODY 400
The body could not be read as a JSON object. Send valid JSON with content-type: application/json.
INVALID_JSON 400
Code Mode could not parse the body as JSON. Send valid JSON with content-type: application/json.
MISSING_FIELDS 400
A required field is missing. On /api/route that is org_id, prompt, and a credential: api_key in the body, or a scoped ost_ token as Authorization: Bearer. An org key sent as a Bearer header does not count. Put org_id and api_key in the JSON body, or send a scoped token as the Bearer header with org_id still in the body.
METHOD_NOT_ALLOWED method_not_allowed 405
This path does not answer that HTTP method. Use POST for /api/route, /api/route/stream and the /v1 endpoints (GET for /v1/models).
NOT_FOUND 404
No endpoint at this path. Check the path against GET /models or /openapi.json.
BODY_TOO_LARGE 413
The body is over the size limit: 200 KB on the inference routes, 16 MB on /v1/messages, 2 MB elsewhere. Send less, or split the work into several calls.
PROMPT_TOO_LARGE 413
The prompt is over the 50,000 character limit. Split the prompt, or send it as an agent turn through /v1/messages.
STUDY_SHAPE_REFUSED 400
A study request is one non-streamed answer with no tools, code, schema or race, so the study library can count all of it before any of it is sent. Nothing was sent to a model and nothing was charged. Send the study question on its own, without those options.
STUDY_MARK_QUOTES_CONFLICT 400
study.mark_quotes asks the router to add its quotation-marking instruction, and the request also carries your own system prompt, which the router never edits. Nothing was sent to a model and nothing was charged. Put the marking format (quote_markup in GET /api/study/catalog) in your own system prompt and drop mark_quotes, or drop the system prompt.
SYSTEM_PROMPT_TOO_LARGE 413
system_prompt alone fills the chosen provider's input budget, so there is no room for the prompt. Nothing was sent. Shorten system_prompt.
prompt_too_long context_length_exceeded 400
The conversation is longer than the model's context window. The OpenAI-compatible endpoint calls this context_length_exceeded. Shorten the conversation, or pick a model with a larger window from GET /v1/models.
BATCH_TOO_LARGE 413
A batch has more than 50 items. Split it into several /api/batch calls.
INVALID_NO_STORE 400
no_store was not true or false. Send no_store as a boolean, or leave it out.
INVALID_RESPONSE_SCHEMA 400
response_format.schema was refused; reason says why. Fix the schema named in reason and retry.
invalid_agent_request 400
An agent turn (an Anthropic Messages body) was refused; reason names the check and detail the field. The OpenAI-compatible endpoint returns the reason itself as the code. Fix the field named in detail. One-shot fields such as redact_pii do not apply to an agent turn.
invalid_open_models 400
The x-omnistrat-open-models value, or its use with this model, was refused. Send off, include or only, with an omni/* model or a vendor model id.
INVALID_OP 400
The op field names an operation this endpoint does not have. Use one of the ops the endpoint lists in GET /models.
INVALID_PROVIDER 400
provider is not a provider this router knows. Use a provider listed in GET /models, or leave provider out.
conflicting_routing_fields 400
An omni/* model chooses the provider and routing profile itself, and the request also set them. Remove provider and routing_profile, or name a vendor model id instead.
MCP_SERVERS_REQUIRE_EXECUTE_CODE 400
mcp_servers is only used by Code Mode, which is off unless execute_code is true. Set execute_code: true, use mcp_tools, or call POST /api/code-mode/execute.
BUILD_NOT_FOR_AGENT_TURNS 400
A saved build applies to a one-shot prompt, not to an agent turn. Send the build with prompt on /api/route, not on /v1/messages.
INVALID_BUILD_ID 400
build is not a saved build id (bld_ followed by 32 hex characters). Copy the id from Foundry's Build tab.
BUILD_NOT_FOUND 404
No saved build with that id in this organisation. Nothing was sent. Check the id and that the key belongs to the organisation that saved it.
BUILD_FIELD_CONFLICT 400
The request sets a field the saved build already sets. Remove the fields listed in fields, or save a new version of the build.
BUILD_STORE_UNAVAILABLE 503
The saved build could not be read or is not valid. Nothing was sent. Retry shortly; if it persists, save the build again.
TEMPLATE_NOT_FOUND 404
No prompt template with that id in this organisation. Create it with POST /api/templates {op: "set"}.
TEMPLATE_VARS_MISSING 400
The template needs variables the request did not send; missing lists them. Add them to variables.
TEMPLATE_RENDER_TOO_LARGE 413
The template rendered with these variables is over the prompt limit. Nothing was sent. Send shorter variables.
INVALID_TEMPLATE 400
The template is malformed: the id must be letters, digits and underscores, the body 1 to 20,000 characters. Fix the template and save it again.
EXPERIMENT_NOT_FOUND 404
No experiment with that id in this organisation. Create it with POST /api/experiments {op: "set"}.
INVALID_EXPERIMENT 400
The experiment config is malformed: 2 to 8 variants whose splits add up to 100. Fix the config and save it again.
INVALID_RULESET 400
The routing ruleset is malformed; it must be an object with a rules array. Fix the ruleset and send it again.
RULESET_TOO_LARGE 413
The routing ruleset has more than 64 rules. Merge or split the rules.
DSL_SET_FAILED 500
The routing ruleset could not be saved. Retry. If it persists, contact support with the request_id.
INVALID_WEBHOOK_URL 400
webhook_url is not a public HTTPS URL. Private addresses and localhost are blocked. Use a public HTTPS URL.

Credentials and access

AUTH_FAILED 401
The credential is not valid for this org: a wrong key, a key from another org, or an expired or revoked token. Check the credential placement in the table above, and that org_id matches the key.
AUTH_UNAVAILABLE 503
The key could not be checked right now. This is not a rejection. Retry after the retry-after header.
INSUFFICIENT_SCOPE 403
The scoped token is real, but its scope does not allow inference. Mint a token with scope inference (or cli or agent).
INSUFFICIENT_ROLE 403
The credential's role cannot do this, for example a member key minting an admin token. Use an owner or admin credential.
IP_NOT_ALLOWED 403
Your source IP is outside this organisation's IP allowlist. Call from an allowed network, or ask an owner to update the allowlist.
ORIGIN_NOT_ALLOWED 403
The request came from a browser origin this organisation does not allow. Call from your server, not from a web page.
MTLS_REQUIRED 403
This organisation requires a client certificate and the request had none. Present the enrolled client certificate.
AGENT_ENDPOINT_DISABLED 403 or 503
The platform operator has switched this agent endpoint off, for this organisation (403) or for everyone (503). Nothing was called or charged. Use /api/route meanwhile, or contact support.
KILL_SWITCH_UNKNOWN 503
Whether this endpoint is switched on could not be read, so nothing was called or charged. Retry after the retry-after header.
identity_disabled 503
omni/petra or omni/rowdy is switched off right now; alternative names the other one. Use the alternative, or another omni/* model.
unauthorised 401
Code Mode was reached without an authenticated org. Send org_id and api_key in the body.

Models and routing

model_not_found 404
No model with that id is offered; closest lists the nearest ids. An unknown id is never sent to a vendor. Pick an id from GET /v1/models, or use omni/auto.
ambiguous_model 400
More than one provider serves this model id. Add provider with one of the names in providers.
model_provider_mismatch 400
The provider you named does not serve this model. Use a provider from served_by, or leave provider out.
unsupported_parameter 400
This model's vendor refuses a non-default temperature. Leave temperature out, or use an omni/* model, which drops it and says so.
MODEL_NOT_OFFERED 400
This model cannot serve this kind of request (for example an agent turn on a provider with no native adapter). Pick another model from GET /v1/models.
MODEL_NOT_ALLOWED 400
Code Mode accepts only its listed models; detail lists them. Use one of the models in detail, or leave model out.
no_provider_satisfies_request 400
No provider can serve the request as asked (tools, images, context length or max_cost_usd); excluded lists each one and why. Relax the requirement named in excluded.
NO_PROVIDER_AVAILABLE 400 or 503
No provider could take the request: none fits the context (400) or none is healthy right now (503). Shorten the prompt for a 400; retry after retry-after for a 503.
NO_OPEN_MODEL_ELIGIBLE 409
No model fits your open-weight setting; the request was not widened. Change x-omnistrat-open-models, or pick a model that fits it.
provider_not_configured 503
The provider for this model is not configured here and your organisation has no key of its own for it. Add a provider key (POST /api/byok), or name a model another provider serves.
routing_rule_conflict 409
Your organisation's routing rules choose the model for this request, and the request names a different one. Leave model out, or change the rule.
routing_rules_unavailable 503
Your routing rules could not be read, so the request was not routed. Retry after the retry-after header.
affinity_unavailable 503
This conversation's provider pin could not be read, so the request was not routed. Retry shortly.
RESIDENCY_NO_PROVIDER 422
No provider meets your organisation's data region, so the request was refused rather than sent out of region. Add an in-region provider, or change the data region.
FINETUNE_LOOKUP_FAILED 503
Could not tell whether this model name is one of your fine-tunes, so it was not routed to a different model under that name. Retry shortly.
WORKERS_AI_UNAVAILABLE 503
Workers AI is not available on this deployment. Use another model, or retry later.

Money and limits

RATE_LIMITED rate_limited 429
Too many requests from this client or organisation. Wait for the retry-after header, then retry.
QUALITY_SAMPLE_SHAPE_REFUSED 400
A quality sample is one one-shot call on one named model; this one streamed, raced, fanned out or asked for a fallback. Nothing was run or charged. Send the sample as a single call to one model.
QUALITY_SAMPLE_UNBILLED 403
A quality sample runs only on a model your organisation is billed for (your own key, or a platform model charged to your credit). Nothing was run or charged. Pick a billed model for the sample.
EVAL_SHAPE_REFUSED 400
Returned only to OmniStrat's own model evaluation runs, never to a customer request: an eval call is one one-shot call on one named model, and this one streamed, raced, fanned out or asked for a fallback. Nothing was run or charged. Nothing to do on your side; an OmniStrat eval run sends each item as a single call to one model.
BUDGET_EXHAUSTED 429
The request used up its provider-call budget (fallbacks count). Shorten the fallback chain, or retry.
BUDGET_GATE_BUSY 503
Too many calls from your organisation are in flight for the spend gate to hold another. Nothing was charged. Retry after the retry-after header.
BUDGET_GATE_UNAVAILABLE 503
Your daily spend cap could not be checked, so the call was refused. Nothing was charged. Retry shortly.
COST_CAP_EXCEEDED 402
Your organisation's daily or monthly USD cap is reached. Raise the cap, or wait for the period to reset.
COST_CAP_UNVERIFIABLE 503
A cost cap is set and the spend or the cap setting behind it could not be read, so the call was not sent and nothing was charged. Try again shortly.
BAD_MAX_COST 400
The x-omni-max-cost-usd header is not a plain positive number of US dollars, so no call was made. Send a number such as 0.25, or leave the header out.
INVALID_CAP 400
A cap amount is not a positive number of US dollars within the maximum, and nothing was changed. Send a positive amount, or null to remove the cap.
CAP_WRITE_UNAVAILABLE 503
A cost cap could not be saved; the answer says which caps were saved and which were not. Try again shortly.
SPEND_LIMIT_REACHED 402
The call would pass the limit in your signed spend mandate. Nothing was charged. Sign a new mandate with a higher limit, wait for the reset, or use your own provider key.
SPEND_UNKNOWN 503
Your spend mandate could not be checked, so the call was not started. Nothing was charged. Retry shortly. Your own provider keys and open models are unaffected.
INSUFFICIENT_CREDITS 402
Your prepaid credit does not cover a call on OmniStrat's provider keys. Nothing was charged. Add credit, or call with your own provider key.
CREDIT_LEDGER_UNAVAILABLE 503
Your credit balance could not be read, so a paid call was refused rather than served against an unknown balance. Retry shortly. Open models are unaffected.
CREDIT_OWED 402
An earlier call cost more than your balance; new paid calls are paused until a top-up pays the difference. Add credit. The top-up pays what is owed first.
CREDITS_FROZEN 403
Spending from prepaid credit is on hold while a card dispute is open. Contact support. Open models are unaffected.
PROGRAM_MODEL_NOT_ALLOWED 403
A Talent Program free seat covers only its listed models on the platform key. Name a model from the list in detail, or add your own provider key.
PROGRAM_FEATURE_NOT_ALLOWED 403
This feature is not part of a Talent Program free seat. Leave the feature out, or use your own provider key.
PROGRAM_DAILY_CAP_REACHED 429
The seat's daily allowance is used up. Wait for the reset in retry-after.
PROGRAM_CALL_MINUTES_EXHAUSTED 429
The seat's call minutes are used up. Wait for the reset in retry-after.
PROGRAM_STATUS_UNAVAILABLE 503
Your Talent Program seat could not be read, so nothing was charged. Retry shortly.
PROGRAM_CAP_UNAVAILABLE 503
The seat's allowance could not be read, so the call was refused. Retry shortly.
PROGRAM_MINUTES_UNAVAILABLE 503
The seat's call minutes could not be read, so the call was refused. Retry shortly.

Providers

MODEL_FAILED 502
Every provider in the chain failed. Retry. Quote the request_id to support if it persists.
STREAM_FAILED 502
The streaming connection to the provider failed. Retry, or call without streaming.
upstream_error the vendor's
The provider answered with an error; upstream_status is its status (429 and 529 keep their meaning). For 429 or 529, wait and retry; otherwise check the request.
upstream_timeout 504
The provider did not answer in time. Retry.
upstream_unreachable 502
The provider could not be reached. Retry.
upstream_untranslatable 502
The provider's answer could not be represented in this format, so it was not returned. Retry, or pick another model.
overloaded_error 529
Every provider that can serve this is unhealthy, or this conversation is pinned to one that cannot serve it now. A pinned conversation is never moved mid-way. Retry after the retry-after header, or start a new conversation.
route_failed varies
The OpenAI-compatible endpoint's code for a pipeline error it has no more specific code for. Read message and quote the request_id to support.
all_llm_providers_failed 502
Every model Code Mode tried failed; detail lists the attempts. Retry.

Safety

INPUT_FLAGGED 451
The prompt was flagged by the input safety screen. Rewrite the prompt.
MODERATION_FLAGGED 451
The model's answer was flagged by output moderation. Rewrite the prompt, or turn off moderate_output for this call.

Your own provider keys (BYOK)

BYOK_FAILED 500
Your stored provider key could not be read. Retry; if it persists, upload the key again.
BYOK_NOT_ENTITLED 403
You stored a provider key, but your plan does not include router:byok, and the call is not moved to the platform key without telling you. Remove the stored key to use credits, or upgrade the plan.
BYOK_REGION_MISMATCH 403
Your stored provider key is sealed bound to your organisation's declared data region, and it was sealed for a different region than the one your organisation declares now (or the stored record was altered), so it is not opened. The platform key is never used in its place. Nothing was run or charged. Store the key again.
BYOK_REGION_UNREADABLE 503
Your organisation's declared data region could not be read. Stored provider keys are sealed bound to it, so a key is neither stored nor opened without it; the platform key is never used in its place. Nothing was stored, run or charged. Retry shortly.
ORIGIN_RESTRICTED 451
Your organisation restricts access by caller location (residency_strict), and the country estimated from this request's IP address is outside your declared data region. This is an access restriction based on an IP estimate, not evidence of where data is processed: residency is decided by your declared region. Nothing was run or charged. Call from inside your region, or ask your organisation's owner about the restriction.
BYOK_REVOKED 403
Your KMS grant to this key was revoked. Restore the grant, or remove the key to use credits.
MISSING_BYOK_KEY 400
byok_key is missing or shorter than 8 characters. Send the full provider key.
BYOK_SET_FAILED 500
The provider key could not be saved. Retry.
BYOK_DELETE_FAILED 500
The provider key could not be deleted. Retry.
BYOK_ROTATION_FAILED 500
The key could not be added to the rotation set. Retry.
PROVIDER_KEY_REFUSED 422
The provider refused this key when we checked it, so it was not saved. Its reason is in provider_reason. Copy the key again from the provider's console, or create a new one, and save it.
PROVIDER_KEY_UNCHECKED 503
The provider could not be reached to check this key, so it was not saved. Try again shortly, or send it again with store_unchecked: true to save it without the check.
KEY_CHECK_RATE_LIMITED 429
Your organisation has checked 10 keys in the last minute (or 100 today), so this one was not checked or saved. Wait for the retry-after time, then save again.
KEY_CHECK_UNAVAILABLE 503
The key-check limit could not be counted, so the key was not checked or saved. Try again shortly, or save with store_unchecked: true.
KEY_CHECK_READ_FAILED 503
A stored key could not be read for a re-check. Nothing was changed. Retry; if it persists, upload the key again.
BYOK_NOT_CONFIGURED 404
No key is stored for this provider, so there is nothing to check. Save a key first.
BYOK_LIST_INCOMPLETE 503
Some providers' key records could not be read, so whether they have a key is unknown. They are listed with state: "read_failed". Retry after a few seconds.
BYOK_ROTATION_UNREADABLE 503
Your existing rotation keys could not be read, so this key was not added and nothing was changed. Try again shortly.
BYOK_ROTATION_FULL 413
The rotation set already holds 20 keys. Delete an unused key first.

Keys and scoped tokens

ROTATE_FORBIDDEN 403
A member key cannot rotate the org key. Rotate with the org's own key.
ROTATE_FAILED 502
The new key could not be written, so the org key was not changed. Scoped tokens issued before the call were already voided. Retry, then mint new scoped tokens.
ORG_NOT_FOUND 404
The organisation was not found while rotating. Check org_id.
INVALID_TTL 400
ttl_sec was not a whole number of seconds. No token was issued. Send an integer between min_ttl_sec and max_ttl_sec (both are in the answer).
TTL_TOO_LONG 400
The lifetime you asked for is longer than this scope allows (an admin token lives at most 1 day, other scopes at most 30 days). No token was issued; the lifetime is never shortened for you. Ask for max_ttl_sec or less.
TTL_TOO_SHORT 400
A token must live at least 60 seconds. No token was issued. Ask for 60 seconds or more.
INVALID_LABEL 400
The token label must be 1 to 64 printable ASCII characters. No token was issued; the label is never trimmed for you. Shorten the label or remove characters outside plain ASCII.
ROLE_UNVERIFIED 403
The credential proves the organisation but carries no verified member role, so an action that needs admin or owner was refused. This is usually a scoped token minted before tokens carried the minting member's role. Mint a new token with a member key or a signed-in session, or use the org key.
TOKEN_REVOKE_UNAVAILABLE 503
The org's scoped tokens could not be voided, so the key was not rotated. Retry shortly.
SCOPE_NOT_SUPPORTED 400
Scope read is not issued. Use inference, agent or admin.
INVALID_CAPS 400
caps is malformed; only allowed_endpoints, as exact /api/ paths, is accepted. Fix caps, or leave it out.
CAP_NOT_ENFORCED 400
That cap is not enforced by the gateway, so it is refused rather than ignored. Leave the cap out.
CAP_OUTSIDE_SCOPE 400
An allowed endpoint is outside the token's scope; caps can only narrow a scope. Remove that endpoint, or pick a wider scope.
TOKEN_ISSUE_UNAVAILABLE 503
The token could not be recorded or the org's token state could not be read, so no token was issued. Retry shortly.
TOKEN_LIST_UNAVAILABLE 503
The token list could not be read. Retry shortly.
TOKEN_NOT_FOUND 404
No such token in this organisation. Check the sub_id or token.
INVALID_TOKEN 400
The token to revoke is not a token this router issued. Send the ost_ token or its sub_id.
REVOKE_UNAVAILABLE 503
The revocation could not be written; the token is still live. Retry shortly.

Code Mode

CODE_MODE_UNAVAILABLE code_mode_unavailable 503
The isolated sandbox, or your MCP tools, could not be used. Nothing was executed and nothing was charged unless charged_usd says otherwise. Retry later.
CODE_MODE_MODEL_FAILED varies
A model call inside Code Mode failed, so no answer was produced. Calls that ran are charged (charged_usd). Retry.
MCP_TOOL_LOOP_FAILED varies
The MCP tool loop failed before any model call, for example no mcp_tools id names a registered server. Nothing was charged. Register the server (POST /api/mcp/register), or check the ids.
mcp_server_url_rejected 400
An mcp_servers url was refused (it must be a public HTTPS address). Use a public HTTPS MCP server.
prompt_required 400
Code Mode needs a prompt, and the request had none or an empty one. Send prompt.

Impact-ratio calculator

POST /api/matchmaking/impact-ratio answers a refusal as {"error": "<CODE>", "detail": "..."}, and the field at fault in field when there is one. Nothing is stored in any case. Another organisation, or an organisation that does not use the program, gets NOT_FOUND (404).

IMPACT_INPUT_INVALID 400
The body is not the calculator’s shape: a missing total, a count that is not a whole number, or a field it does not define. Send total_assessed and, for each dimension, counts and unknown_assessed.
ROW_LEVEL_DATA_REFUSED 400
The input looks like individual records rather than totals: a list of records, a field that names a person, a contact detail, or one person per category. Send totals per category only.
UNKNOWN_CATEGORY 400
A category is not on the EEO-1 Component 1 list. The detail lists the categories accepted. Use a listed category, or count those people in unknown_assessed.
INCONSISTENT_COUNTS 400
The counts do not add up: more selected than assessed, or a dimension’s categories plus unknown_assessed are not total_assessed. Count every person assessed once per dimension.
JUSTIFICATION_REQUIRED 400
exclude_small_categories was sent without a reason of 20 to 1,000 characters. State why the small categories are left out, or drop the field.
NO_ORG 403
Your session does not belong to an organisation. Sign in as a member of the organisation that uses the program.
ROLE_REQUIRED 403
Only an owner or admin of the organisation may run the calculator. Ask an owner or admin to run it.
DEPLOYER_UNREADABLE 503
Whether your organisation uses the program could not be read, so nothing was calculated. Try again shortly.

Studio research

Studio’s routes (/api/studio/...) answer a refusal as {"error": "<CODE>", "detail": "..."}. Read error; detail says what happened in words you can show.

FETCH_FAILED 502
Studio tried to fetch a link source’s page when you asked and could not keep its text. The reason is in detail (for example, the page answered HTTP 404, was not text, or was larger than 2 MB), and the attempt is recorded on the source. Text from an earlier fetch, if any, is still held. Fix the address or the page, then fetch again; for a document that is not a web page, upload it as a file.
SOURCE_NOT_FOUND 404
The source you named is not in this workspace. Reload the workspace and pick the source again.
SOURCE_DELETED 409
The source was deleted, so it cannot be fetched or its file downloaded. Restore the source first.
SOURCE_NOT_A_URL 409
Only a link source is fetched. A file source holds its uploaded file, not fetched text. Download the file instead.
FETCH_RESULT_INVALID 400
Studio fetched the page but could not record what it found in the workspace, so nothing was recorded. Fetch again; if it repeats, tell support.
SOURCE_NOT_FETCHED 409
The source holds no text yet: it was never fetched, its last fetch failed (the reason is in detail), or it is a file. No empty text is ever sent instead. Fetch the source’s text first, or download its file.
STUDIO_FILES_NOT_CONFIGURED 503
File uploads are not set up yet for this workspace, so nothing was uploaded, read or stored. Link sources and quotes work without them. Add the source as a link, or quote it, for now.
STUDIO_FILES_RESIDENCY_UNAVAILABLE 409
File storage is not available yet for this workspace’s data region, so nothing was stored. Add the source as a link, or quote it, for now.
FILE_NAME_INVALID 400
The upload had no file name, or the name was longer than 255 characters or held a slash or a control character. Nothing was stored. Rename the file and upload it again.
FILE_TOO_LARGE 413
The file is larger than 25 MiB (26,214,400 bytes). Nothing was stored. Upload a smaller file, or split it.
UPLOAD_INCOMPLETE 400
The upload stopped part-way, so nothing was stored. Upload the file again.
FILE_EMPTY 400
The file you sent has no bytes, so nothing was stored. Check the file and upload it again.
FILE_META_INVALID 400
Studio could not read the upload’s details on its way into the workspace, so nothing was stored. Upload again; if it repeats, tell support.
FILES_STORAGE_FULL 507
This workspace’s files have reached the storage your plan allows, so nothing was stored. Reading, export and delete still work. Delete file sources you no longer need, or move to a plan with more storage.
FILE_NOT_STORED 503
The file store refused the write, so nothing was stored. Upload again shortly.
FILE_NOT_FOUND 404
No file with that id is in this workspace. Open the source again and download from there.
FILE_CONTENT_ERASED 410
The file’s content was erased (its uploader asked for their content not to be kept), so it cannot be downloaded. The source and its record remain. Ask a member to upload the file again if it is still needed.
FILE_CONTENT_MISSING 410
The file’s stored bytes do not exist, so nothing can be downloaded. You are never sent an empty file in its place. Ask a member to upload the file again, and tell support.
FILE_UNREADABLE 503
The file store could not be read just now, so nothing was downloaded. Try again shortly.
FILES_NOT_DELETED 503
The workspace key is destroyed, so its content is unreadable now, but some stored files could not be deleted yet. The workspace is not marked deleted. Send the delete again to finish (on a team, the members sign again).
FILE_ERASURE_INCOMPLETE 503
Erasing a member’s content could not delete every file they uploaded, so the erasure is not finished. Run the erasure again; nothing is reported as erased until it finishes.
EVIDENCE_STATUS_INVALID 400
An evidence status is one of unverified, supported, contested or refuted, and the change named something else. Nothing was changed. Send one of the four statuses.
SCOPE_SOURCE_NOT_FETCHED 409
You asked Petra or Rowdy about a source that holds no fetched text, so nothing was sent to a model or billed. A file’s content is never sent to a model. object_id names the source. Fetch the source’s text first, then ask again.

Teams and meetings

SIGNED_WITH_REPLACED_KEY 409
A signature was made with a charter key that the member has since replaced, so it no longer counts. member_ids names who. Those members sign again with their current charter key.
MEETING_INDEX_UNAVAILABLE 503
A team meeting could not be recorded in the meeting index, so it was not started. Try again shortly.
CLIENT_IP_UNKNOWN 400
The request carried no client address, so it could not be rate limited and was not run. Send the request through the public address, not an internal one.
RATE_LIMIT_UNAVAILABLE 503
The rate limiter could not be consulted, so the request was refused rather than let through unchecked. Wait for the retry-after header, then retry.
ADMIN_IP_DENIED 403
An operator request came from a network that is not on the operator allowlist, so it was refused before it ran. Send it from an allowed network, or ask the owner to add yours.
ADMIN_IP_ALLOWLIST_INVALID 503
The operator network allowlist is set but cannot be read, so every operator request is refused until it is fixed. The owner corrects ADMIN_IP_ALLOWLIST and deploys again.
ADMIN_NOT_CONFIGURED 503
An operator request arrived on a deployment with no operator key configured, so it was refused. The owner sets the operator key, then retries.
SIGNING_KEY_MISSING 503
The key that signs sign-in sessions is not configured, so no session was issued and nothing was changed. Try again later.

Waitlist, demo requests and payments

PURCHASES_CLOSED 403
OmniStrat is not taking payments yet, so nothing was charged or set up. Companies can book a demo at petraproof.com/demo.html; individuals and campuses can join the waitlist at petraproof.com/#access.
INVALID_CAMPUS 400
The school or campus name was not accepted, and nothing was recorded. Give the name of a school or campus, at most 120 characters, with no email address or link.
INVALID_FIELD 400
A field has a value outside its list, and nothing was recorded. Use one of the values named in detail for the field named in field.
INVALID_SINCE 400
The start date of an operator lead list was not a calendar date. Send since as YYYY-MM-DD (UTC), or leave it out.
INVALID_CURSOR 400
The page cursor was not one this list gave. Send the next_cursor from the previous page of the same list, or leave it out for the first page.
LEADS_UNAVAILABLE 503
An operator lead list could not be read. This is not an empty list. Try again after the Retry-After interval.
SERVER_CALL_SHAPE_REFUSED 400
An AI call made inside a server carried something a server call never may: tools, MCP, code execution, a stream, an agent turn, a fallback chain, a build or a template. Channel text must never drive a tool. Nothing was run or charged. Send one plain question (POST /api/servers/:id/ai).

Usage & pricing schedule

Every meter is per-tier and public. Overages are capped by policy you control. BYOK bypasses the token meter entirely, you settle directly with your provider.

Attestation · Included
Every plan includes a monthly bundle of signatures, one per party on a finalized attestation: Free 10 · Solo 100 · Solo Trader 100 · Team 1,000 · Team Plus 5,000 · Growth 5,000 · Scale 20,000 · Enterprise unlimited.
Attestation · Beyond the bundle
Each attestation is billed once, by type, from your prepaid credits when it is created. Same rate on every plan: a higher plan raises the bundle, not the rate. The type comes from the attestation itself, not a setting, and the highest match applies.
Attestation · Simple
$2 each. One party.
Attestation · Standard
$5 each. Two or more parties. Example: a two-party NDA uses 2 signatures of the bundle; past the bundle it is $5, on any plan.
Attestation · Compound
$50 each. References a verified 1:1 call.
Attestation · Legal-grade
$250 each. Identity verification plus at least one witness. Not a notarization.
Verified calls
Included with Team Plus and above (matched calls). Call packs and per-call overage are not sold self-serve; contact sales.
Match Certificates
15% of the agreed first-year salary, in USD, fixed by the signed introduction agreement (7.5% for an Open Call introduction requested while the organisation held recruiting access, locked on the introduction when it is requested) and charged once to the hiring organisation’s card at placement, never above the fee ceiling it signed. Committing a hire is part of Enterprise.
Foundry tokens
$2 / 1M input · $6 / 1M output above tier bundle. BYOK bypasses the meter.
Additional seats
Team +$250 · Growth +$350 · Scale +$600 per seat / mo. Each tier caps at 2× base seats before upgrade.
Compliance modules
Compliance Workstation — BD Small: $2,000 / month per organisation, bought self-serve on the compliance page. Every other module is contact sales: Foundation and Broker-Dealer Mid and above are partly built; Investment Adviser, Insurance and AI Governance are not built. See the compliance page for per-workstream status.

More

The full OpenAPI spec is mounted at /openapi.json. The status page is at /status.html. Questions go to hello@omnistrat.ai.