Skip to content

REST API overview

The Scope REST API mirrors what you can do in the Portal and the scope CLI. The full per-endpoint reference is auto-generated from the committed OpenAPI snapshot and lives under REST API reference.

For interactive exploration, your deployment may provide Swagger UI and a raw OpenAPI document:

  • Swagger UI: https://your-scope.example.com/api-docs
  • Raw spec: https://your-scope.example.com/openapi.json

This page is a high-level map of the resource groups, with links to the relevant user guides.

Use the authentication method configured for your deployment. See Access for details.

The top-level submission resource. A request bundles a task prompt, criteria, and a profile (or inline runtime config). Each request has one or more runs; run state lives on the request.

Key operations: create, list, get, stream logs, bulk-resubmit (retry), soft-delete.

See Submitting requests (REST API) and Prioritizing & pausing requests.

The shared catalog of task prompts, de-duplicated by text. CRUD plus prompt-feature extraction.

See Managing task prompts.

Reusable criteria, organized as a DAG (dependsOn edges between criteria). CRUD.

See Defining evaluation criteria and Criteria schema.

Versioned agent runtime configurations. Identity is mutable, each version is immutable.

See Defining profiles and Profile schema.

The shared feature catalog plus AI-assisted prompt generation and per-task-prompt extraction.

See Working with prompt features and Prompt feature schema.

Generate and fetch per-request evaluation reports.

The API also exposes agents, models, mcp-servers, skills, extensions, insights, and report-templates. See the generated REST API reference for endpoint-level details.

Every request has a status (where it is in the lifecycle) and, once it reaches done, an outcome (how it finished).

StatusMeaning
pendingJust submitted; the scheduler has not picked it up yet.
queuedThe scheduler placed it on a worker queue.
processingA worker has dequeued it and is executing the run.
pausedManually paused by a user. Can be resumed.
doneTerminal. Inspect outcome for the result.
OutcomeMeaning
succeededThe agent completed the task and the run finished cleanly.
failedThe run failed (worker error, agent error, timeout, etc.).
finishedThe run completed but without a clear pass/fail signal.

Worker types accepted by the API:

  • coder-acp-copilot
  • coder-acp-claude-code

The per-endpoint reference is built from a committed artifact at src/openapi/scope-openapi.json, generated from scope-core’s API registry. To refresh it after changing API routes or schemas:

Terminal window
pnpm run refresh:openapi

The command does not contact a deployed environment. It overwrites the snapshot from the checked-out source. Commit the result to update the published reference.