# errorbar - [errorbar documentation](https://docs.errorbar.ai/introduction.md): errorbar measures whether your AI is good on your own traffic — calibrated judges, statistically honest comparisons — and makes model improvements safe to ship. - [Quickstart](https://docs.errorbar.ai/quickstart.md): Five minutes to captured, gradeable traffic — through whichever integration path fits your stack. - [How errorbar works](https://docs.errorbar.ai/concepts/how-errorbar-works.md): errorbar's workflow end to end: capture your traffic, measure quality with calibrated judges, improve your model on it, and own the result. - [Integration paths](https://docs.errorbar.ai/capture/overview.md): Four ways to get your LLM traffic into errorbar — route through the gateway, keep your provider key, point your OpenTelemetry at us, or add the tracing SDK. Every path ends in the same place: gradeable traffic. - [The gateway](https://docs.errorbar.ai/concepts/gateway.md): How errorbar routes, meters, bills, and captures every request behind one endpoint. - [Bring your own key (closed models)](https://docs.errorbar.ai/reference/bring-your-own-key.md): Route your OpenAI, Anthropic, Gemini, xAI, or Mistral traffic through errorbar on your own provider key — same model, one base-URL change, full observability. - [OTLP trace ingest](https://docs.errorbar.ai/reference/otlp-ingest.md): Send standard OpenTelemetry traces to errorbar — no SDK, no packages, three environment variables. - [Tracing SDK](https://docs.errorbar.ai/reference/tracing-sdk.md): One install, one line — standard OpenTelemetry, curated. Eject anytime; your spans don't change. - [Set up with your coding agent](https://docs.errorbar.ai/guides/setup-with-your-coding-agent.md): One prompt wires your repo to errorbar — through the gateway, your own provider key, OpenTelemetry, or the tracing SDK — and verifies itself. - [Import logs](https://docs.errorbar.ai/capture/import-logs.md): Run your first bake-off from a JSONL export of your current provider's traffic — no routing, no integration, and your current model's stored answers become the baseline. - [Request logging](https://docs.errorbar.ai/reference/request-logging.md): Opt-in capture of your chat traffic — browse it, export it, turn it into fine-tuning datasets. - [Observability](https://docs.errorbar.ai/reference/observability.md): Traffic, latency, errors, and per-request detail for your usage. - [Segments](https://docs.errorbar.ai/concepts/segments.md): Your logged traffic, auto-grouped by system-prompt family — every application surface separable with zero setup, retroactively. - [Grading](https://docs.errorbar.ai/judges/grading.md): Ground truth for every judge: grade a slice of real traffic pass/fail, and every number downstream carries that measurement. - [Judges & calibration](https://docs.errorbar.ai/judges/calibration.md): A judge is one binary question, measured against your grades: TPR, TNR, Cohen's κ — and a trust badge derived from confidence intervals, not point estimates. - [Judge assists](https://docs.errorbar.ai/judges/assists.md): Suggest, scan, auto-improve, the prompt lab, and split drafting — everything amplifies your grades; nothing grades on its own authority. - [Online monitoring & the quality-gated canary](https://docs.errorbar.ai/judges/online-monitoring.md): Score a sample of live traffic continuously, alert when the corrected rate drops under your floor, and let a gate promote a model change only on proof and roll it back on the best estimate. - [Certified reward for your trainer](https://docs.errorbar.ai/judges/certified-reward.md): Use a calibrated errorbar judge as the reward in your own RL loop, with its error rate attached and an independent anchor that holds the run when the reward is being gamed. - [Evals](https://docs.errorbar.ai/reference/evals.md): Judged model comparisons on your own prompts: test whether a cheaper model holds up on your traffic, with a savings report. - [Corrected pass rates & the CI gate](https://docs.errorbar.ai/evaluate/corrected-rates.md): Judge-scored comparisons corrected for the judge's measured error, deterministic assertions, a deploy gate on interval bounds, the certified switch test, and the forwardable evidence bundle. - [Bring your own endpoint](https://docs.errorbar.ai/evaluate/bring-your-endpoint.md): Put a checkpoint trained anywhere in front of the same holdout, judge, gate and certificate as a catalog model. - [Self-improvement](https://docs.errorbar.ai/reference/self-improvement.md): Turn a validated judge into a better model: reward-weighted training on your own traffic, with the same judge as the reward and the same holdout as the proof. - [Fine-tuning](https://docs.errorbar.ai/fine-tuning/overview.md): Train a model on your own data and deploy the result. - [Datasets & formats](https://docs.errorbar.ai/fine-tuning/datasets.md): Prepare, upload, and map training data for fine-tuning. - [Creating a job](https://docs.errorbar.ai/fine-tuning/create-job.md): Upload a training file and start a fine-tuning job. - [Deploying a fine-tuned model](https://docs.errorbar.ai/fine-tuning/deploy-model.md): Serve your trained model on a dedicated endpoint. - [Self-improvement (RL)](https://docs.errorbar.ai/fine-tuning/self-improvement.md): Your model improves itself on your own traffic, judged by your own validated evaluators. - [GRPO runs API](https://docs.errorbar.ai/fine-tuning/grpo-api.md): Start, monitor, stop, and download online-RL runs programmatically — with validated rewards and ledger-true budgets. - [Owning your model](https://docs.errorbar.ai/reference/own-your-model.md): The model trained on your traffic is yours: run it on errorbar, deploy it elsewhere, or take the weights and run it air-gapped — with the proof it works. - [Model aliases](https://docs.errorbar.ai/reference/model-aliases.md): Call a stable name, swap the model behind it — no redeploy, no code change. - [Chat completions](https://docs.errorbar.ai/inference/chat.md): Generate chat responses with any supported model. - [Streaming](https://docs.errorbar.ai/inference/streaming.md): Stream tokens as they are generated using server-sent events. - [Tool calling](https://docs.errorbar.ai/inference/tools.md): Let the model call your functions with structured arguments. - [Structured output](https://docs.errorbar.ai/inference/structured-output.md): Force valid JSON or a strict schema in the model's response. - [Embeddings](https://docs.errorbar.ai/inference/embeddings.md): Turn text into vectors for search, RAG, and clustering. - [Vision](https://docs.errorbar.ai/inference/vision.md): Send images to a vision model and get text back. - [Playground](https://docs.errorbar.ai/guides/playground.md): Test any model interactively in the dashboard. - [Dedicated endpoints](https://docs.errorbar.ai/dedicated/overview.md): Private GPU capacity for a specific model, billed per GPU-hour. - [Deploying an endpoint](https://docs.errorbar.ai/dedicated/deploy.md): Provision a dedicated GPU endpoint from the dashboard or the API. - [Managing endpoints](https://docs.errorbar.ai/dedicated/manage.md): Call, scale, update, and delete your dedicated endpoints. - [Response caching](https://docs.errorbar.ai/billing/caching.md): Opt-in per-workspace caching: identical requests are served instantly at a 75% discount. - [Authentication](https://docs.errorbar.ai/authentication.md): Authenticate every request with a workspace API key — and understand what each key is allowed to do. - [MCP server](https://docs.errorbar.ai/reference/mcp.md): The management API as MCP tools — 92 operations callable from Claude Code, Claude Desktop, Cursor, or any MCP client, with read-only and no-spend guards. - [Workspaces & teams](https://docs.errorbar.ai/concepts/workspaces-teams.md): Organize access, billing, and resources with workspaces and team members. - [Billing model](https://docs.errorbar.ai/concepts/billing.md): Prepaid wallet, pay-as-you-go consumption, metered to the micro-cent. - [Plans](https://docs.errorbar.ai/billing/plans.md): Free, Pro and Scale on top of prepaid usage. Plans buy the loop; usage stays at the rate card. - [Managing your wallet](https://docs.errorbar.ai/billing/wallet.md): Top up, track your balance, and understand holds. - [Auto-reload](https://docs.errorbar.ai/billing/auto-reload.md): Automatically top up your wallet so production never stalls. - [Usage & invoices](https://docs.errorbar.ai/billing/usage.md): Track exactly what every request costs and export your usage. - [Errors](https://docs.errorbar.ai/reference/errors.md): Error codes errorbar returns and how to handle them. - [Rate limits](https://docs.errorbar.ai/reference/rate-limits.md): How throughput limits work and how to handle them. - [Models](https://docs.errorbar.ai/concepts/models.md): Browse the model catalog and understand modalities, run modes, and pricing. - [Case study: catching a support bot that lies](https://docs.errorbar.ai/guides/grounding-a-support-bot.md): A real walkthrough — how validated evals found confident fabrication in a production assistant, and how a prompt change fixed it without changing models. - [The tracing SDKs](https://docs.errorbar.ai/sdks/overview.md): Standard OpenTelemetry, curated: one install, one line, no instrumentation code of our own — and an eject guarantee that means uninstalling loses nothing. - [TypeScript SDK](https://docs.errorbar.ai/sdks/typescript.md): @error-bar/tracing — setup() before your LLM clients, or zero code via the register entrypoint; standard OpenTelemetry underneath, eject anytime. - [Python SDK](https://docs.errorbar.ai/sdks/python.md): errorbar-tracing — setup() before your LLM clients, tracing.instrumented tells you exactly what's captured; standard OpenTelemetry underneath, eject anytime. - [API overview](https://docs.errorbar.ai/api-reference/introduction.md): Base URL, authentication, response dialect, and what the API covers. - [Create chat completion](https://docs.errorbar.ai/api-reference/chat/create-chat-completion.md): Generate a model response for a conversation. OpenAI-compatible; supports streaming, tool calls, and structured output. Supports gateway fallback models (`fallbacks`) and, when the workspace has [response caching](/billing/caching) enabled, serves identical repeat requests from cache at a discount (… - [Create embeddings](https://docs.errorbar.ai/api-reference/embeddings/create-embeddings.md): Create embedding vectors for input text. Billed on input tokens only. When the workspace has [response caching](/billing/caching) enabled, identical repeat requests are served from cache at a discount (see the `X-Errorbar-Cache` response header). - [Rerank documents](https://docs.errorbar.ai/api-reference/rerank/rerank-documents.md): Rerank a list of documents by relevance to a query. Availability depends on a rerank model being present in the catalog. - [Create a response](https://docs.errorbar.ai/api-reference/responses/create-a-response.md): OpenAI's Responses API. Supports streaming (usage settled on the terminal response.completed event). - [List models](https://docs.errorbar.ai/api-reference/models/list-models.md): List the models available to your workspace. A model not in this list returns 404 when called. - [OTLP trace ingest](https://docs.errorbar.ai/api-reference/otlp-trace-ingest.md): Accepts standard OpenTelemetry traces (OTLP/HTTP, protobuf or JSON; 4 MB batch cap) at the GATEWAY host: `https://gateway.errorbar.ai/v1/traces`. Point any OTel exporter here with `Authorization: Bearer `. - [Setup status](https://docs.errorbar.ai/api-reference/setup-status.md): "Where am I, and what is next?" — also the cheapest possible key check: a 200 proves the key is live and names its workspace. - [List logged exchanges](https://docs.errorbar.ai/api-reference/logs/list-logged-exchanges.md): Your workspace's captured chat exchanges, newest first. - [Export logged exchanges as JSONL](https://docs.errorbar.ai/api-reference/logs/export-logged-exchanges-as-jsonl.md): The filtered exchanges as JSONL — one `{"messages": [...]}` line each, request messages with the assistant reply appended. That's the chat format every training and eval pipeline accepts, so it pipes straight into your own tooling. - [Import graded traffic](https://docs.errorbar.ai/api-reference/logs/import-graded-traffic.md): Bring your own graded traffic. Each row — a conversation, the reply under judgment, optionally the human verdict — becomes a logged exchange the judge and alignment paths grade, through the same ingest pipeline as gateway traffic (scrubbing, retention, workspace scoping). A verdict is written as a h… - [Get an agent run / grouped conversation](https://docs.errorbar.ai/api-reference/get-an-agent-run-grouped-conversation.md): Every step sharing one X-Errorbar-Trace-Id, oldest-first (execution order), aborted partials included — a trace read is error analysis. Requires request logging (409 otherwise). - [Create a dataset from logs](https://docs.errorbar.ai/api-reference/logs/create-a-dataset-from-logs.md): Curate logged traffic into a managed training dataset. - [Check texts for benchmark contamination](https://docs.errorbar.ai/api-reference/logs/check-texts-for-benchmark-contamination.md): Checks a batch of texts against the public-benchmark contamination index (13-word shingles of well-known test splits) and reports which inputs share material with which benchmark — use it before training so later benchmark scores measure capability, not memorised answer keys. - [List trace labels](https://docs.errorbar.ai/api-reference/labels/list-trace-labels.md): Your human pass/fail verdicts on logged traffic — the ground truth every judge is measured against. - [Label a trace](https://docs.errorbar.ai/api-reference/labels/label-a-trace.md): Record a human pass/fail verdict on one logged request (owner/admin key — labels DEFINE quality). Downstream systems that already know an output was good or bad can push verdicts here too: a support tool marking an escalation, a pipeline that caught a wrong extraction. - [List label sets](https://docs.errorbar.ai/api-reference/labels/list-label-sets.md): List the workspace's golden sets — named collections of human-graded requests with their measured label quality (inter-rater kappa) — use it to see which sets exist, which are frozen, and which judges calibrate on them. - [Create a label set](https://docs.errorbar.ai/api-reference/labels/create-a-label-set.md): Create a golden set from human-graded requests — either explicit request ids or the newest N grades — as the first step toward a frozen, kappa-measured calibration set for a judge. - [Attach a label set](https://docs.errorbar.ai/api-reference/labels/attach-a-label-set.md): Attach a frozen golden set to a judge criterion so its calibration runs on that set and its certificate carries the set's kappa — or detach it. - [Freeze a label set](https://docs.errorbar.ai/api-reference/labels/freeze-a-label-set.md): Freeze a golden set: seal its membership with a hash and measure inter-rater agreement (kappa) on its members — required before a judge can calibrate on it. - [List criteria](https://docs.errorbar.ai/api-reference/criteria/list-criteria.md): Your validated judges, each with its measured agreement (TPR/TNR/κ) and derived tier. - [Create a criterion](https://docs.errorbar.ai/api-reference/criteria/create-a-criterion.md): One binary question about quality. A criterion's verdicts are meaningless until you ALIGN it against your labels — create, then POST /v1/criteria/{id}/align. - [List criterion templates](https://docs.errorbar.ai/api-reference/list-criterion-templates.md): Shipped starting points per use case (support, RAG, extraction, data processing, agents & tools). Instantiate via POST /v1/criteria, then align — a template is a starting point, not a truth. - [Get a criterion](https://docs.errorbar.ai/api-reference/get-a-criterion.md) - [Update a criterion](https://docs.errorbar.ai/api-reference/update-a-criterion.md): Changing judge_prompt, judge_model, population, or population_family VOIDS the calibration (metrics and confusion rows) — they describe an instrument that no longer exists. unit is create-only and rejected. Online-monitor config (online_enabled, online_percent, population, population_family, online_… - [Delete a criterion](https://docs.errorbar.ai/api-reference/delete-a-criterion.md) - [Align a criterion against your labels](https://docs.errorbar.ai/api-reference/criteria/align-a-criterion-against-your-labels.md): Judge every labeled trace with this criterion and measure agreement: TPR and TNR with 95% Wilson intervals, plus Cohen's κ — never raw agreement (class imbalance inflates it). Needs at least 30 labels (aim for 100). Billed as judging; the confusion matrix is stored row by row so every disagreement s… - [Get the persistent alignment report](https://docs.errorbar.ai/api-reference/get-the-persistent-alignment-report.md): Reconstructed from the stored confusion rows: metrics with CIs, population breakdown, and every judge/human disagreement with the human critique and response excerpt. Free — reads the last run; POST /align re-judges and spends. - [Scan unlabeled traffic for suspected failures](https://docs.errorbar.ai/api-reference/criteria/scan-unlabeled-traffic-for-suspected-failures.md): Judges a bounded batch of recent UNGRADED logged traffic with this judge; FAILs become pending suspects for one-click confirm/dismiss in the dashboard's Review queue. Confirming creates a real fail grade the calibration set grows by; dismissing means it never resurfaces — the judge suggests, the hum… - [Suggest judges from your failure critiques](https://docs.errorbar.ai/api-reference/criteria/suggest-judges-from-your-failure-critiques.md): Clusters the workspace's fail-grade critiques (10 or more required; the most recent 200 considered) into at most 5 DRAFT judges — your failure taxonomy, written for you, reviewed by you. Drafts only: each needs human review and a calibration run before anything trusts it — assist, never one-shot. A… - [Run one auto-improve iteration on a judge](https://docs.errorbar.ai/api-reference/criteria/run-one-auto-improve-iteration-on-a-judge.md): ONE improvement iteration per call: mines the last calibration's tune-half disagreements (the report half stays untouched, so the next measurement is honest), rewrites the judge prompt coherently, and creates a SUCCESSOR draft judge with its calibration queued. Requires a holdout-scale calibration r… - [Get a calibration certificate](https://docs.errorbar.ai/api-reference/criteria/get-a-calibration-certificate.md): Returns the signed judge certificate for a criterion — what was proven (confusion matrix, TPR/TNR/kappa with intervals, trust verdict), on which population, what voids it, and what enforcement refused involving it — for audits, evidence bundles, or proving a judge's calibration to a third party. - [The certificate before and after adjudication](https://docs.errorbar.ai/api-reference/judges/the-certificate-before-and-after-adjudication.md): Free and uncached: re-reads the stored calibration rows (the judge's verdicts at judging time) against the adjudicated grades — no judge call. `before` is the calibration as measured; `after` is what a re-calibration would read once label_error corrections are applied and ambiguous grades withdrawn.… - [Adjudicate a judge/human disagreement](https://docs.errorbar.ai/api-reference/judges/adjudicate-a-judgehuman-disagreement.md): Settle one disagreement on the record (owner/admin key, evals:write). `label_error`: the human grade was wrong; `corrected_verdict` becomes the label's verdict, the original is kept, and every judge calibrated on this row is flagged evidence-revised until re-calibrated. `judge_error`: the grade stan… - [Get judge settings](https://docs.errorbar.ai/api-reference/criteria/get-judge-settings.md): Read the workspace's default judge model (used for eval runs that don't name their own judge) and the platform's house default. - [Update judge settings](https://docs.errorbar.ai/api-reference/criteria/update-judge-settings.md): Set (or clear) the workspace's default judge model for eval runs that don't specify one — must be a chat model from the platform catalog offered to this workspace. - [List eval runs](https://docs.errorbar.ai/api-reference/evals/list-eval-runs.md): This workspace's eval runs, newest first (max 50), in the {"object": "list", "data": [...]} envelope. - [Queue an eval run](https://docs.errorbar.ai/api-reference/evals/queue-an-eval-run.md): Compare a baseline model against up to 3 candidates on **your own prompts**, scored by an LLM judge. - [Get an eval run](https://docs.errorbar.ai/api-reference/evals/get-an-eval-run.md): Status and, once `status` is `DONE`, the report: per-candidate win rate, W/T/L, average latency, cost, and savings versus the baseline on the same prompts. Poll this after queueing a run. - [Delete an eval run](https://docs.errorbar.ai/api-reference/evals/delete-an-eval-run.md): Delete a terminal run (DONE, ERROR, or CANCELLED) and, with it, its samples, generated answers, and judge verdicts. Permanent. Requires an owner/admin key (same gate as create). A PENDING or RUNNING run is refused with 400: cancel it first. The models, judges, and criteria the run referenced are unt… - [Cancel an eval run](https://docs.errorbar.ai/api-reference/evals/cancel-an-eval-run.md): Cancel a PENDING or RUNNING run. Requires an owner/admin key, the same gate as create, because it controls wallet spend. Returns the run with status CANCELLED and a "Cancelled by …" note in error. A run already DONE, ERROR, or CANCELLED is refused with 400: a terminal result is never overwritten. Ca… - [Get an eval run's test cases](https://docs.errorbar.ai/api-reference/evals/get-an-eval-runs-test-cases.md): The evidence behind the score: every sampled prompt, the fresh answer each model gave, and the judge's verdict per sample. A win rate you can't inspect is a win rate you can't trust — read these before switching a production model. - [Gate a deploy on an eval run](https://docs.errorbar.ai/api-reference/evals/gate-a-deploy-on-an-eval-run.md): One curl in CI: 200 when every requested check passes, 412 otherwise — `curl -f` does the rest. - [Compare two eval runs](https://docs.errorbar.ai/api-reference/evals/compare-two-eval-runs.md): Compare two finished eval runs arm-by-arm (before vs after a prompt, tool or index change) and get each arm's delta with a 95% interval and a significance flag, instead of eyeballing two reports. - [List failure clusters](https://docs.errorbar.ai/api-reference/evals/list-failure-clusters.md): See live production failures grouped into systemic causes per criterion (judge FAIL rationales plus pending scan suspects, clustered by a model) so a customer can find what to fix first rather than reading failures one by one. - [Get an evidence bundle](https://docs.errorbar.ai/api-reference/evals/get-an-evidence-bundle.md): Download the forwardable proof bundle for a DONE eval run — verdict, frozen judge calibration and certificate, per-sample verdict lineage, refusal ledger events and an audit hash-chain attestation, optionally with the embedded CI-gate decision — so a customer can hand a reviewer or auditor one signe… - [List registered endpoints](https://docs.errorbar.ai/api-reference/evals/list-registered-endpoints.md): Customer endpoints an eval can generate from as `endpoint/` candidates. Keys are never returned. - [Register an endpoint](https://docs.errorbar.ai/api-reference/evals/register-an-endpoint.md): Bring your own checkpoint. Any OpenAI-compatible URL — a Prime Lab or Fireworks deployment, your own vLLM — becomes an eval candidate named `endpoint/`, facing the same holdout, judge, gate and certificate as a catalog model. Validated by existence in your workspace, never by our catalog. Gene… - [Remove an endpoint](https://docs.errorbar.ai/api-reference/evals/remove-an-endpoint.md): Evals that referenced it keep their results; new runs naming it are refused. - [List fired alerts](https://docs.errorbar.ai/api-reference/alerts/list-fired-alerts.md): List every alert this workspace has fired, newest first, with the payload the notification carried, so a pipeline can react to quality, cost, or drift events without reading a mailbox. - [List training files](https://docs.errorbar.ai/api-reference/fine-tuning/list-training-files.md) - [Upload training file](https://docs.errorbar.ai/api-reference/fine-tuning/upload-training-file.md): Upload a training file (JSONL) as multipart form data in a field named `file`. Requires an owner/admin key. - [List fine-tuning jobs](https://docs.errorbar.ai/api-reference/fine-tuning/list-fine-tuning-jobs.md) - [Create fine-tuning job](https://docs.errorbar.ai/api-reference/fine-tuning/create-fine-tuning-job.md): Start a fine-tuning job. Requires an owner/admin key. Billing is per trained token, charged once on completion. - [Get fine-tuning job](https://docs.errorbar.ai/api-reference/fine-tuning/get-fine-tuning-job.md) - [Cancel fine-tuning job](https://docs.errorbar.ai/api-reference/fine-tuning/cancel-fine-tuning-job.md): Cancel a running job. Requires an owner/admin key. A cancelled job is not billed. - [Start a bake-off](https://docs.errorbar.ai/api-reference/fine-tuning/start-a-bake-off.md): Prove a SUCCEEDED fine-tune against its base model on the dataset's held-out split, without deploying it: token-weighted NLL/perplexity on the reference answers, a sign-test-backed verdict, and optionally a calibrated judge's pass rates on both sides. Requires an owner/admin key; metered GPU minutes… - [Get bake-off state](https://docs.errorbar.ai/api-reference/fine-tuning/get-bake-off-state.md): The comparison's state, verdict, and ledger-true spend. status none means no bake-off has been started for this job. - [Create a reward session](https://docs.errorbar.ai/api-reference/certified-reward/create-a-reward-session.md): Register the certified reward for YOUR trainer. The reward is validated first (calibrated, non-drift-flagged, population-bound judges — refused with the reason otherwise), the budget is held in the wallet, and the response carries every judge's signed certificate so the trainer holds the grader's er… - [List reward sessions](https://docs.errorbar.ai/api-reference/certified-reward/list-reward-sessions.md) - [Get a reward session](https://docs.errorbar.ai/api-reference/certified-reward/get-a-reward-session.md) - [Stop a reward session](https://docs.errorbar.ai/api-reference/certified-reward/stop-a-reward-session.md): Stops scoring and releases the wallet hold. Idempotent. - [Score a rollout group](https://docs.errorbar.ai/api-reference/certified-reward/score-a-rollout-group.md): Score up to 64 rollouts against a session's reward. Billing ids are namespaced `reward::` so a re-scored step is idempotent. Refusals are explicit: 402 `budget_exhausted` (the session's kill switch), 409 `held` (the anchor held the run — resume deliberately or ship the pinned step), 4… - [Mid-run anchor check](https://docs.errorbar.ai/api-reference/certified-reward/mid-run-anchor-check.md): Submit the current policy's outputs on your FROZEN anchor prompt set (same request ids every time). The server scores them with the session's reward AND the independent anchor judge (corrected for its measured error), appends the point to the session's history, and reads two signatures against their… - [The anchor report](https://docs.errorbar.ai/api-reference/certified-reward/the-anchor-report.md): The whole anchor picture for a session, uncached (`Cache-Control: no-store`): the anchor's identity and its live certificate, the rule in force, every stored check, every hold with its state, reason and pinned step (the rule replayed over the history; the current hold carries the reason the trainer… - [Resume a held session](https://docs.errorbar.ai/api-reference/certified-reward/resume-a-held-session.md): A human's decision: clears the anchor hold and keeps the history. Never automatic — the next check decides again from the same window. Owner/admin only. - [Export the graded trajectories](https://docs.errorbar.ai/api-reference/certified-reward/export-the-graded-trajectories.md): Every item a session scored is kept. This returns them as JSONL in one of three shapes: `rl` — one line per scored item (prompt, completion, reward, verdict, per-judge grades, flags, scored_at), the pivot file; `sft` — passing winners only (strict `pass` and reward ≥ `min_grade`, default 0.9) as pro… - [Export the environment bundle](https://docs.errorbar.ai/api-reference/certified-reward/export-the-environment-bundle.md): The grader, packaged: reward spec, each judge's calibration certificate, deterministic assertions, declared env tools (names only — never endpoint URLs or auth), the session's stored tasks, the anchor and its hold state, and adapter snippets for TRL and verifiers. Signed with the same key as eval ev… - [List GRPO runs](https://docs.errorbar.ai/api-reference/reinforcement-learning/list-grpo-runs.md): This workspace's online-RL runs, newest first (max 50), with ledger-true spend per run. candidates_waiting counts prompts in the GRPO-candidate queue: prompts offline RAFT gave up on, which are exactly what online RL exists to crack. Requires an owner/admin key. - [Start a GRPO run](https://docs.errorbar.ai/api-reference/reinforcement-learning/start-a-grpo-run.md): Start an online-RL run with a validated reward and hard budgets. Requires an owner/admin key. Refusals are explicit: unaligned or drift-flagged reward judges, a prompt population below the floor, missing platform-GPU configuration, or insufficient balance. The reward budget is enforced ledger-true:… - [Get a GRPO run](https://docs.errorbar.ai/api-reference/reinforcement-learning/get-a-grpo-run.md): One run: status, ledger-true spend across all three meters (reward, GPU, environment), and the outcome card for terminal runs. - [Stop a GRPO run](https://docs.errorbar.ai/api-reference/reinforcement-learning/stop-a-grpo-run.md): Stop an ACTIVE run. A status flip is the whole mechanism: the reward server refuses the run's next scoring call and the orchestrator's watch loop exits on its next sweep. A run that isn't ACTIVE returns 404. - [Download trained adapter weights](https://docs.errorbar.ai/api-reference/reinforcement-learning/download-trained-adapter-weights.md): Presigned download links for a terminal run's trained adapter files. Parity with the SFT self-host story: the adapter is reachable by API, not just the dashboard. Links expire; re-request for fresh ones. - [List RAFT rounds](https://docs.errorbar.ai/api-reference/reinforcement-learning/list-raft-rounds.md): This workspace's RAFT rounds, newest first (max 200), read-only. A round samples prompts, generates candidates, keeps judge-approved winners, and distills them into an SFT job (produced_job_id). Rounds are started from the dashboard today; there is no public start endpoint yet, so this surface is ob… - [List declared agent tools](https://docs.errorbar.ai/api-reference/reinforcement-learning/list-declared-agent-tools.md): The environment consent surface: tools an agentic training run may call. Auth headers are never returned; each row carries only a redacted auth_prefix. The response also carries egress_verification_secret, the per-workspace HMAC key your endpoint uses to verify that calls carrying X-Errorbar-Environ… - [Register or update a tool](https://docs.errorbar.ai/api-reference/reinforcement-learning/register-or-update-a-tool.md): Declare a tool an agentic run may call. Endpoints are https-only; credentials go in authHeader and are encrypted at rest, never returned. Registering an existing name updates it. Requires an owner/admin key. - [Revoke a tool registration](https://docs.errorbar.ai/api-reference/reinforcement-learning/revoke-a-tool-registration.md): Consent withdrawal: future training runs can no longer call this tool. - [List dedicated endpoints](https://docs.errorbar.ai/api-reference/dedicated-endpoints/list-dedicated-endpoints.md): List every dedicated endpoint in your workspace. - [List deploy templates](https://docs.errorbar.ai/api-reference/dedicated-endpoints/list-deploy-templates.md): List available models, GPU types, regions, GPU counts, replica limits, and per-GPU-hour sell prices. Use this to discover valid values before creating an endpoint. - [Create dedicated endpoint](https://docs.errorbar.ai/api-reference/dedicated-endpoints/create-dedicated-endpoint.md): Provision a new dedicated GPU endpoint. Requires an owner/admin key and enough prepaid balance for the minimum runway. Discover valid model/GPU/region/count combinations from the templates endpoint first. - [Get dedicated endpoint](https://docs.errorbar.ai/api-reference/dedicated-endpoints/get-dedicated-endpoint.md) - [Update dedicated endpoint](https://docs.errorbar.ai/api-reference/dedicated-endpoints/update-dedicated-endpoint.md): Scale replicas, or start/stop the endpoint. Requires an owner/admin key. - [Delete dedicated endpoint](https://docs.errorbar.ai/api-reference/dedicated-endpoints/delete-dedicated-endpoint.md): Delete the endpoint, stop it, halt billing, and free its routing key. Requires an owner/admin key. - [List batches](https://docs.errorbar.ai/api-reference/batches/list-batches.md): List this workspace's batch inference jobs, newest first, with status, request counts and billed cost. - [Create a batch](https://docs.errorbar.ai/api-reference/batches/create-a-batch.md): Submit an asynchronous, discounted batch of inference requests from a previously uploaded JSONL file, for workloads that can wait up to the completion window. - [Retrieve a batch](https://docs.errorbar.ai/api-reference/batches/retrieve-a-batch.md): Fetch one batch job with its status, request counts and output/error file ids refreshed live from the processing backend, to poll for completion. - [Cancel a batch](https://docs.errorbar.ai/api-reference/batches/cancel-a-batch.md): Request cancellation of an in-flight batch job. - [List aliases](https://docs.errorbar.ai/api-reference/model-aliases/list-aliases.md): Your workspace's model aliases. - [Create or repoint an alias](https://docs.errorbar.ai/api-reference/model-aliases/create-or-repoint-an-alias.md): Point a stable name at a model — and repoint it whenever you like, with **no change to your code**. - [Delete an alias](https://docs.errorbar.ai/api-reference/model-aliases/delete-an-alias.md): Requests still using the name will fail with "model not found" afterwards — this is a real cutover step, not a cleanup. Owner/admin key required. - [List model versions](https://docs.errorbar.ai/api-reference/list-model-versions.md): The workspace's improvement chain as immutable records — one version minted per completed training round. Each version pins what its verdict depended on (judge criterion, curriculum hash, holdout hash), and `comparable_to_parent` is true only when parent and child share a holdout hash, so round-over… - [Get a model version](https://docs.errorbar.ai/api-reference/get-a-model-version.md): One version's record. Scoped to the key's workspace: a foreign or missing id is a 404, never another workspace's lineage. - [Adopt a model version (or roll back)](https://docs.errorbar.ai/api-reference/model-versions/adopt-a-model-version-or-roll-back.md): Point an alias at this version's served model. Adoption and rollback are the same audited repoint on different rows of the chain: adopting an older version IS the rollback, and no version is ever mutated. Requires an owner/admin key (it redirects live production traffic). Refused with 400 when the v… - [Export the audit log](https://docs.errorbar.ai/api-reference/audit-&-proving/export-the-audit-log.md): Export this workspace's audit rows with their hash-chain fields (seq, prev_hash, row_hash) as CSV or JSON, so a recipient can verify a later export reproduces the same hashes. - [Verify the audit chain](https://docs.errorbar.ai/api-reference/audit-&-proving/verify-the-audit-chain.md): Read the latest nightly whole-chain integrity verification of the audit log (ok flag, rows checked, head seq, problems found, acknowledged gaps) plus the tombstone list, as the platform's integrity statement. - [List deletion tombstones](https://docs.errorbar.ai/api-reference/audit-&-proving/list-deletion-tombstones.md): List acknowledged audit-chain gaps (tombstones) with the recorded reason for each lost slot, so a known loss can be distinguished from tampering. - [Record a deletion tombstone](https://docs.errorbar.ai/api-reference/audit-&-proving/record-a-deletion-tombstone.md): Acknowledge a verified audit-chain gap with a written reason so the integrity check stops reporting it as unexplained; a platform-admin repair action, never a way to hide a gap. - [List enforcement refusals](https://docs.errorbar.ai/api-reference/audit-&-proving/list-enforcement-refusals.md): Pages through the workspace's refusal ledger — every time enforcement stopped something (an alias repoint without evidence, an auto-gate or dataset build refusing an untrusted judge, a reward refusing a drift-flagged criterion, a round gate holding, an eval refused off its calibrated population) — n… - [Verify a signed document](https://docs.errorbar.ai/api-reference/audit-&-proving/verify-a-signed-document.md): Verify that a downloaded certificate or evidence bundle was issued by the platform and has not been altered, by re-deriving its HMAC signature — use it when a third party hands you a document and you need to trust its numbers. ## OpenAPI Specs - [openapi-inference](/openapi-inference.json) - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform. ## errorbar.dev - Sign in and the dashboard: https://www.errorbar.dev/sign-in - Pricing: https://www.errorbar.dev/pricing - Every docs page in one file: https://docs.errorbar.ai/llms-full.txt - errorbar's RL environments built from real back-office jobs are a separate site: https://www.errorbar.ai/llms.txt