Skip to main content
Use the API for your environment and the current SDK source build for platform clients. Account authority means Bench OAuth or a signed-in session; an API key retains its narrower permissions.
Use these operation IDs with SDK call. MCP uses bench_ names; existing MCP tools retain their own input schemas. Public sign-in operations are handled by the MCP connector, not exposed as tools. Download the complete machine-readable catalog. The API serves it at GET /api/headless/operations.

Inputs

Each contract lists path identifiers, query parameters, JSON body or multipart form fields. Required values are validated by the API; inspect the returned errors when a field depends on account state.
Get setup status. Does not start an evaluation. Requires Bench OAuth account authorization; a scoped API key is insufficient.
List operations. Does not start an evaluation.
Read credential authority, plan, model-selection entitlement, repository scope and pricing and upgrade links, and links to the current operation catalog and evaluation allowance. Does not grant permissions. Does not start an evaluation.
Evaluation allowance. Does not start an evaluation.
Get processing notice. Does not start an evaluation.
Record the user’s explicit authorization for the current processing notice and selected source. Read get_processing_notice and show the notice first; never accept it on the user’s behalf without permission. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Get login url. Does not start an evaluation.
Complete login. Uses the same validation and plan limits as Bench.
Verify email. Uses the same validation and plan limits as Bench.
Login with password. Uses the same validation and plan limits as Bench.
Logout. Uses the same validation and plan limits as Bench.
Exchange oauth token. Uses the same validation and plan limits as Bench.
Whoami. Does not start an evaluation.
Record setup completion for the current account. Use onboarding_generation from whoami; a stale generation is rejected. No browser wizard is required. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Update profile. Uses the same validation and plan limits as Bench.
Choose allowed model providers for future Bench evaluations. Requires an active Growth or Enterprise plan. Free and Builder use Bench defaults and cannot change this preference.
Receive github callback. Uses the same validation and plan limits as Bench.
Start GitHub repository authorization. Set headless=true to return to the coding agent after the user approves access on GitHub. Keep the returned state and poll finish_github_connection. GitHub installation approval is required; no Bench onboarding is needed.
Complete a manual GitHub callback using the original account-bound state and installation_id. Prefer connect_github with headless=true and finish_github_connection. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Finish the connection started with connect_github(headless=true). Pass its state. A pending response means wait the returned poll_interval before calling again. On success, list_repos and choose a branch. This binds the installation to the signed-in user. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Connection status. Does not start an evaluation.
Activate installation. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
List repos. Does not start an evaluation.
List branches. Does not start an evaluation.
Upload prompts. Uses the same validation and plan limits as Bench.
Scan repo. Uses the same validation and plan limits as Bench.
Get scan. Does not start an evaluation.
Get repository refresh. Does not start an evaluation.
Set repository refresh. Uses the same validation and plan limits as Bench.
Record the model used by uploaded prompt call sites. This changes source metadata, not the allowed-provider setting. Requires model-selection entitlement.
Open prompt pr. Uses the same validation and plan limits as Bench.
Generate business context. Uses the same validation and plan limits as Bench.
Get business context. Does not start an evaluation.
Generate eval benchmark. Uses the same validation and plan limits as Bench.
Get eval benchmark. Does not start an evaluation.
Review eval benchmark. Uses the same validation and plan limits as Bench.
Run baseline scoring for an existing reviewed benchmark. This can consume an evaluation credit; confirm spending first. Streamed events preserve progress and terminal errors. A model override requires Growth or Enterprise.
Get baseline. Does not start an evaluation.
Evaluate prompt improvements after a baseline. Confirm evaluation spending first. Candidate lists are server controlled on all plans; use set_model_providers for eligible provider preferences.
Get search optimize. Does not start an evaluation.
Get recommendation. Does not start an evaluation.
List golden cases. Does not start an evaluation.
Label golden case. Uses the same validation and plan limits as Bench.
Fetch website text. Uses the same validation and plan limits as Bench.
Start evaluation. Uses the same validation and plan limits as Bench.
Start system evaluation. Uses the same validation and plan limits as Bench.
List evaluations. Does not start an evaluation.
Rerun evaluation. Uses the same validation and plan limits as Bench.
Get evaluation. Does not start an evaluation.
Get evaluation artifacts. Does not start an evaluation.
Get fix brief. Does not start an evaluation.
Cancel evaluation. Uses the same validation and plan limits as Bench.
Cancel bench. Uses the same validation and plan limits as Bench.
Submit run review. Uses the same validation and plan limits as Bench.
Archive evaluation. Uses the same validation and plan limits as Bench.
Unarchive evaluation. Uses the same validation and plan limits as Bench.
Create an AI system with a name and optional description. Add prompt, tool or harness components after scanning a repository or uploading prompts. Requires Bench OAuth account authorization; a scoped API key is insufficient.
List systems. Does not start an evaluation.
Get system. Does not start an evaluation.
List runtime evaluations. Does not start an evaluation.
Publish an SDK real app test report (maximum 500 KB). Execute the actual application with the SDK evaluateSystem/evaluate_system API first. Uploaded results remain client-reported evidence, not hosted verification.
Read hosted runtime availability, settings and jobs. For local real app tests, use the SDK even when hosted execution is unavailable. Does not start an evaluation.
Configure hosted real app execution for a connected system: repository, branch, enabled, daily_limit and config. Check get_runtime_settings for environment availability. Enabling it can execute application code and consume evaluation allowance; obtain user approval first. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Publish runtime fix. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Retry runtime job. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Preview CSV, XLSX, JSON or JSONL and suggested column mapping without storing it. Upload the file bytes, optional sheet, mode and mapping. Inspect mapping_error before import. No model runs.
List test library. Does not start an evaluation.
Import dataset cases. Uses the same validation and plan limits as Bench.
Store a dataset up to 4 MB after the user approves content_consent=true and the column mapping. Preview first. A stored dataset becomes a test suite only when import_dataset_cases is called.
List datasets. Does not start an evaluation.
Get dataset. Does not start an evaluation.
Create a new dataset version with a corrected column mapping. Supply expected_version from get_dataset. Old reports retain their original mapping.
Compare recorded outputs with expected values for an explicit dataset version. No model or live app is called. Live replay is not supported by this operation.
List dataset reports. Does not start an evaluation.
Delete dataset. Uses the same validation and plan limits as Bench.
Get system context. Does not start an evaluation.
List context sources. Does not start an evaluation.
Create or update versioned system understanding, feedback, a golden case or criterion. Read the current context version first and provide expected_version. Preserve user-supplied expected values; do not infer business policy from observed output.
Upload a text, Markdown, JSON or JSONL document up to 60 KB to system understanding. Provide category and expected_version from get_system_context. Export other document formats to text first.
Seed system context. Uses the same validation and plan limits as Bench.
Queue a summary of the system’s saved understanding. Poll get_system_context for completion. Does not start a Bench evaluation.
Delete context source. Uses the same validation and plan limits as Bench.
List context connections. Does not start an evaluation.
Connect a supported evidence provider using explicit content consent and selected project configuration. Store provider credentials only in secrets. Synchronization imports redacted evidence; it does not make that evidence business policy.
Sync context connection. Uses the same validation and plan limits as Bench.
Delete context connection. Uses the same validation and plan limits as Bench.
Update system. Uses the same validation and plan limits as Bench.
Resolve finding. Uses the same validation and plan limits as Bench.
Delete system. Uses the same validation and plan limits as Bench.
Attach a scanned prompt, tool, model configuration or harness to a system. Use the exact repo_full_name, branch and call_site_id returned by a scan. This does not edit source code.
Remove system component. Uses the same validation and plan limits as Bench.
Set continuous evaluation. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Add system connection. Uses the same validation and plan limits as Bench.
Remove system connection. Uses the same validation and plan limits as Bench.
Create system run. Uses the same validation and plan limits as Bench.
List system runs. Does not start an evaluation.
Get system run. Does not start an evaluation.
Complete system run. Uses the same validation and plan limits as Bench.
Get production health. Does not start an evaluation.
Get production feedback. Does not start an evaluation.
Configure production checks and optional automatic investigations for one environment. Enabling automatic evaluations can spend the account allowance; confirm with the user first. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Production capabilities. Does not start an evaluation.
Sdk status. Does not start an evaluation.
Get trace privacy. Does not start an evaluation. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Set trace privacy. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Get production check. Does not start an evaluation.
Retry production check. Uses the same validation and plan limits as Bench.
Upload explicit SDK trace data. Prefer SDK instrumentation for automatic bounds and redaction. Capture content only when the application owner has opted in.
List traces. Does not start an evaluation.
Get trace. Does not start an evaluation.
Delete trace. Uses the same validation and plan limits as Bench.
Evaluate span. Uses the same validation and plan limits as Bench.
Get workspace. Does not start an evaluation.
Create workspace. Uses the same validation and plan limits as Bench.
Rename workspace. Uses the same validation and plan limits as Bench.
Invite workspace member. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Accept workspace invite. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Set workspace member role. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Remove workspace member. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Create a scoped automation credential. Returns plaintext only once. Store it in the application’s secret environment, never in source, logs or chat replies. OAuth account authorization is required; API keys cannot mint other keys. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Retrieve the account’s reusable SDK setup credential. Never print or commit the returned secret. replace_revoked=true explicitly replaces a revoked setup key. OAuth account authorization is required. Requires Bench OAuth account authorization; a scoped API key is insufficient.
List api keys. Does not start an evaluation. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Revoke api key. Uses the same validation and plan limits as Bench. Requires Bench OAuth account authorization; a scoped API key is insufficient.
List plans. Does not start an evaluation.
Get payment method. Does not start an evaluation.
List invoices. Does not start an evaluation.
Create a Stripe checkout link for a selected plan price. Obtain the user’s approval before starting payment. Return the URL for payment and coupon entry; do not handle card details in the agent. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Change the subscription to the chosen configured price. This can bill immediately. Obtain explicit approval for the price and interval before calling; use get_billing_portal for coupon-aware upgrades. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Create a Stripe billing or upgrade link. An optional target price_id opens immediate upgrade confirmation with promotion-code entry. Return the URL to the user to review payment. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Cancel renewal of the subscription. This changes billing; require explicit user approval. Organization billing requires an administrator. Requires Bench OAuth account authorization; a scoped API key is insufficient.
Reactivate subscription renewal. This changes billing; require explicit user approval. Organization billing requires an administrator. Requires Bench OAuth account authorization; a scoped API key is insufficient.