Pricing
GET/pricingAll model pricing, optional ?provider= filter; ?currency= / ?country= add local_prices
GET/modelsList all available model names
GET/pricing/publicPublic pricing — embed-safe, unauthenticated; ?currency= adds *_local keys
GET/localeCurrency/country this request resolves to (browser preset; never echoes an IP)
GET/currency/ratesVendored USD rate table: as-of date, 7-day stale flag, 13 supported codes
GET/pricing/historyHistorical pricing snapshots
GET/pricing/trendsPrice-change leaderboard
GET/pricing/history/exportCSV or JSON export of pricing history
GET/pricing/alerts/signing-infoWebhook HMAC signing key info
GET/pricing/subscription-trendsIDE/subscription tools whose monthly price changed most
GET/data-qualityCatalogue trust summary: confirmed %, drift-withheld, never-priced, stale
POST/pricing/alertsRegister a price-change webhook. The URL must be public https: private, loopback, internal or unresolvable hosts are refused with 422 invalid_webhook_url; redirects are not followed. The response includes a one-time alert_token: save it, it is shown only once and is the only way to view or delete the alert yourselfNone (rate-limited)
POST/pricing/alerts/self/viewView the alert you registered: send {"alert_token": "lpa_..."} in the JSON body (never in the URL). Any token that matches nothing gets 404 invalid_alert_tokenNo key (alert_token in body; rate-limited)
POST/pricing/alerts/self/deleteDelete the alert you registered with its alert_token in the JSON body; it stops firing. Alerts registered before v1.81.0 have no token and are removed via the operatorNo key (alert_token in body; rate-limited)
GET/pricing/alertsList registered webhooksOperator key
DELETE/pricing/alerts/{id}Delete any webhook by id (to delete your own, use /pricing/alerts/self/delete)Operator key
Cost Estimation
POST/cost-estimateSingle model cost estimate (?currency= / ?country= add local_cost)
POST/cost-estimate/batchMulti-model cost comparison (?currency= adds local_cost per model)
Performance & Use Cases
GET/performanceThroughput, latency, context window, quality scores
GET/use-casesModel recommendations by use case (?currency= adds local_cost; tiers stay USD bands)
Router
POST/router/recommendSmart model routing recommendation (?currency= adds local_prices; client such as Claude Code restricts the candidates to models that tool can run before ranking)API key
POST/router/recommend/streamStreaming router recommendation (SSE; same client restriction, emits a client event)API key
POST/router/feedbackSubmit routing feedbackAPI key
GET/telemetry/savingsRouter savings report per orgAPI key
Usage
POST/usageRecord one actual usage event (cost computed server-side)API key
POST/usage/batchRecord multiple usage events at onceAPI key
GET/usage/summaryActual spend summary by model/provider, per orgAPI key
GET/usage/session/{session_id}On-demand analysis of one session's actual usage with a grounded model recommendationAPI key
POST/usage/alertsRegister a webhook for spend crossing a USD threshold; hard_stop: true (customer key required, bound to that key's org) also blocks dispatch for the org once reached. The URL must be public https (422 invalid_webhook_url otherwise)API key
GET/usage/alertsList registered budget alertsAPI key
DELETE/usage/alerts/{id}Delete a budget alertAPI key
Agent
POST/agent/chatBlocking chat with the ReAct pricing agent
POST/agent/chat/streamStreaming agent chat (SSE)
GET/agent/conversationsList conversation sessionsOperator key
DELETE/agent/conversations/{id}Delete a conversationOperator key
Support (v1.84.0)
POST/support/chatCustomer support assistant: plans, billing, keys, rate limits, how-to, FAQ. Anonymous but rate-limited; send your service key (x-api-key) to get answers about your own account. Grounded in /faq; escalates refunds, disputes, lost keys and "talk to a human" to the owner and returns escalation.reference. Per-caller daily LLM caps by tier; a cap hit answers with fallback: "spend_cap" and links. Body {message, conversation_id?}; conversation_id must be one this endpoint minted (400 otherwise)
POST/support/escalations/statusStatus of an escalation by its reference, sent in the body {reference} (never the URL): {reference, status, owner_reply}. Unknown references get one constant 404
MCP (Model Context Protocol)
GET/mcpMCP server info and config snippet
POST/mcpMCP JSON-RPC 2.0 endpoint — all 32 tools
Billing
GET/billing/configPublic plan catalogue (prices, rate limits, support allowance, escalation priority, entitlement strings) plus checkout_enabled (Stripe configured AND the legal pages in force), portal_enabled (Stripe configured), legal_pages_live, checkout_disabled_reason (stripe_not_configured | legal_pages_not_live | null) and past_due_grace_days (v1.84.0, v1.86.0)
GET/termsHTML pages (also /privacy, /refunds, /dpa, /subprocessors), generated from docs/legal/; a draft notice shows until the owner marks them in force (v1.86.0)None
GET/securityHTML security statement: what the service does and does not have; never a draft (v1.86.0)None
POST/billing/signupFree tier signup — returns API key once (409 if email already registered)
GET/billing/meUsage dashboard (calls, savings, tier, billing_status, effective_tier, rate limit)API key
POST/billing/key/rotateRotate your service key with the current one (v1.84.0): the old key stops at once, the new one is shown once. No current key = no self-serve recovery; ask the support assistant to escalateCustomer key
GET/billing/account/exportDownload everything held about your organisation as one JSON file (v1.87.0): account record, stored provider-key metadata (never key material), usage events, dispatch receipts, budget alerts, routing savings and feedback, support conversations. Never your service key or another org's rows; each table is capped and truncated says if one was. Anonymous and operator-key-only requests are 401Customer key
POST/billing/account/deleteIrreversibly delete your account and all of that data (v1.87.0). Body {"confirm": "DELETE", "org_id": "<your org id>"}; anything else is 400 and changes nothing. A paid subscription is ended immediately first (Stripe failure = 502, Stripe unconfigured = 503, nothing deleted). Inside the 14-day refund window the owner is asked to review a refund and refund_escalation_reference is returned. Only a one-way dated marker remainsCustomer key
POST/billing/checkoutCreate Stripe Checkout session (503 "Checkout is not enabled on this server" without Stripe or while the legal pages are not in force)API key
GET/billing/portalStripe customer portal: cancel, change card, invoices (503 without Stripe)API key
POST/billing/webhookStripe webhook receiver: checkout completed, subscription updated/deleted, invoice paid/payment failed (past_due + escalation), charge refunded and dispute created (escalations); duplicate event ids are ignored
Admin & Telemetry
GET/telemetryServer usage metrics and analytics
GET/admin/statsAggregated server statisticsOperator key
GET/admin/rate-limitsTop rate-limit consumersOperator key
GET/admin/customersAll billing customers (emails, org ids, Stripe ids, billing status)Operator key
POST/admin/customers/{id}/key/rotateOwner-side key rotation for a verified customer who lost their key (v1.84.0): new key shown once, audited as billing.key_rotateOperator key
GET/cache-statsRouter recommendation-cache hit/miss stats
GET/telemetry/ide-savingsIDE subscription savings telemetryAPI key
GET/deployment/metadataDeployment version and API-versioning metadataAPI key
GET/deployment/infoDeployment environment infoAPI key
POST/deployment/shutdownStart a graceful shutdown (request draining)Operator key
GET/deployment/shutdown/statusGraceful-shutdown statusOperator key
GET/rate-limits/tiersAPI tier definitions (free/pro/enterprise)
GET/api/versionsAPI version info
Orchestrator (operator-only, v1.83.0)
POST/orchestrator/eventsIdempotent intake of one inbound item (GitHub event, schedule); a repeated dedup_key attaches to the existing run and causes nothing newOperator or intake key
GET/orchestrator/runs/{run_id}/actionsApproved external actions awaiting an executor (?executor=github); empty while paused or parkedOperator or intake key
POST/orchestrator/runs/{run_id}/actions/{action_id}/resultExecutor result; must echo artifact_hash and provenance_echo (422 without, 409 and the run parks on a mismatch); idempotent per actionOperator or intake key
POST/orchestrator/runsStart a workflow as an owner request ({workflow_id, request_id, inputs}; request_id is the dedup key)Operator key
GET/orchestrator/runsRun log with status / workflow_id / trigger_class / since / until filters; ?format=csv exportsOperator key
GET/orchestrator/runs/{run_id}One run with its steps, approvals, events and action records (redacted)Operator key
POST/orchestrator/runs/{run_id}/resumeResume a parked run (re-runs the failed step; a fresh executing window after a deadline park)Operator key
POST/orchestrator/runs/{run_id}/closeClose a run with a note as deliberately_not_done (default) or failed; waiting approvals are rejectedOperator key
GET/orchestrator/approvalsApproval queue (?status=waiting) with the allowed decisions and, for SDLC checkpoints, the exact /release-feature commandOperator key
POST/orchestrator/approvals/{approval_id}Decide: approve, reject, edit_approve, done_manually or skip; bound to the exact artifact hash (409 if it changed)Operator key
GET/orchestrator/parkedRuns that need the owner, each with its reason and prior step outputsOperator key
GET/orchestrator/settingsEffective settings (global pause, mode defaults, budgets) and the workflow catalogueOperator key
PUT/orchestrator/settingsChange settings from the owner control surface only ({changes}; 422 specialist_missing when raising a missing-specialist workflow above dry_run)Operator key
GET/orchestrator/budgetMonthly LLM budget: global ceiling, spend, soft-alert state, per-workflow capsOperator key
GET/orchestrator/workflowsThe finite workflow definitions (steps, checkpoint kinds, forced modes)Operator key
GET/orchestrator/actionsAppend-only action records across runs (?since=, ?run_id=; ?format=csv)Operator key
POST/audit/runStart an on-demand compliance audit (v1.88.0). Optional body {"request_id": "..."} (idempotency key; omitted = a fresh audit every call). Runs the mechanical check catalogue, persists one report and returns the orchestrator run plus report_id and report_status. Report-only: nothing audited is changed. A failing check opens one audit_flag approval in the orchestrator queue. 503 when the audit is not initialised; the intake key is refusedOperator key
GET/audit/reportsCompliance audit reports, newest first (limit 1-500): status pass | warn | fail, counts per status, the data-quality numbers recorded with each report, and where the summary came fromOperator key
GET/audit/reports/{report_id}One report with every check row (id, status, severity, redacted evidence, launch-checklist ids) and the executive summary; latest is an alias for the newest report; unknown id is 404 report_not_foundOperator key
GET/documents/typesThe closed document catalogue (v1.89.0): four types (release_notes_brief, pricing_comparison_deck, pricing_one_pager, internal_status_report) with their parameters, defaults, sections, data sources and the formats each kind offersOperator key
POST/documents/generateGenerate one document (v1.89.0). Body {"doc_type": "...", "params": {}, "format": "both", "data_only": false, "premium": false, "request_id": "..."}. Gathers the figures from the product's own data, drafts the narrative with one bounded model call (or data-only), cross-checks every number against the provenance manifest and waits at the publish approval. Returns artifact_id, outline, manifest summary, corrections, llm_mode, resolved_params and the approval. 422 for an unknown type or parameter or a failed validation (no artefact); 503 when the document writer is not initialised; the intake key is refusedOperator key
GET/documents/artifactsStored artefacts, newest first (limit 1-500, optional status): type, title, status (draft, published, discarded, failed), corrections, model mode, formats. Metadata onlyOperator key
GET/documents/artifacts/{artifact_id}One artefact's resolved parameters, outline and provenance manifest (every figure with its source call, price_as_of and status). 404 artifact_not_foundOperator key
GET/documents/artifacts/{artifact_id}/downloadDownload as self-contained printable HTML (?format=html), Markdown (?format=md), PowerPoint (?format=pptx, decks only; application/vnd.openxmlformats-officedocument.presentationml.presentation) or Word (?format=docx; application/vnd.openxmlformats-officedocument.wordprocessingml.document, a deck becomes a handout with its speaker notes), rendered now with the current status banner. 415 format_not_available with the allowed list when the kind lacks that edition (a one-pager has no .pptx); 422 for an unknown format. Allowed in every state that has a documentOperator key
OpenAI Compatibility & Dispatch
POST/v1/chat/completionsOpenAI-compatible routing proxy — drop-in replacement (recommendation only, no key needed)
POST/v1/chat/completionsDispatch mode: add a dispatch policy object + your X-Provider-Key-<Provider> headers to run the best eligible model for real, with failover and a dispatch_receipt (chosen model, reason, actual cost, savings)API key
GET/dispatch/providersExecutable providers, their key headers, and which models are dispatchable (and why not)
GET/dispatch/receiptsMetadata-only JSON/CSV export of your org's dispatch receipts — never prompts, completions or keysAPI key
POST/dispatch/keysStore a provider key for your org ({provider, api_key}) so dispatch can use it without X-Provider-Key-* headers — encrypted at rest, never returned (v1.79.0)API key
GET/dispatch/keysList your org's stored provider keys: provider, slug, last-4 fingerprint, created/rotated/last-used, statusAPI key
PUT/dispatch/keys/{provider}Rotate a stored provider key ({api_key}; provider slug such as openai)API key
DELETE/dispatch/keys/{provider}Delete a stored provider keyAPI key
Health
GET/healthHealth check — returns status and version
GET/health/liveKubernetes liveness probe
GET/health/readyKubernetes readiness probe
GET/health/detailedDetailed health with service statuses
Currency and locale: GET /pricing, POST /cost-estimate, POST /cost-estimate/batch,
GET /use-cases, POST /router/recommend and GET /pricing/public accept currency (query) or X-Currency (header)
and country (query, ISO-3166 alpha-2) or X-Country (header). Precedence: currency query › X-Currency ›
country query › X-Country › platform geo header (CF-IPCountry, X-Vercel-IP-Country, CloudFront-Viewer-Country, X-Country-Code)
› best-effort IP lookup › USD. A stated currency always beats a stated country. Supported: USD, EUR, GBP, INR, JPY, CAD, AUD, BRL, CNY, SGD, CHF, KRW, MXN —
any other explicit code is a 400 listing this set; a country whose currency is unsupported gets USD with fallback_to_usd: true.
Converted figures are additive (local_*, currency_conversion) and omitted entirely when nothing is stated or detected, so existing clients see no change.
Rates come from a vendored table refreshed weekly (GET /currency/rates); a rate older than 7 days is still served but flagged rate_is_stale.
Converted amounts are indicative — providers bill in USD.
Privacy: the client IP is used transiently to resolve a country and nothing more — never stored, never logged by this feature,
never in a response; only the country code may be echoed.
Authentication: Protected endpoints require
x-api-key: <key> header.
Get a free key at
/billing or via
POST /billing/signup.
·
Download OpenAPI JSON