Skip to content

API

This page lists every route of the API under /api/v1, grouped as the server groups them. The CLI, the GitHub Action and the web UI use only these routes. The full request and answer shapes are in the OpenAPI document.

  • A person calls the API with a session cookie and the X-CSRF-TOKEN header, or with a CLI token from casebox init as Authorization: Bearer cbx_cli_….
  • Workers use /worker/v1 with a worker token, and capture uses /ingest/v1 with an ingest token.
  • Every refusal is a problem answer with a code and a type that links its fix: see error codes.
Method Path
GET /api/v1/accounts
PUT /api/v1/accounts/{id}/role
Method Path
GET /api/v1/auth/csrf
POST /api/v1/auth/device/approve
POST /api/v1/auth/device/code
POST /api/v1/auth/device/token
POST /api/v1/auth/local
POST /api/v1/auth/logout
GET /api/v1/auth/methods
GET /api/v1/auth/oidc/login
GET /api/v1/me
Method Path
GET /worker/v1/patterns/{id}/evidence
Method Path
GET /api/v1/cases
POST /api/v1/cases/approvals
GET /api/v1/cases/queue
GET /api/v1/cases/{id}
POST /api/v1/cases/{id}/approval
POST /api/v1/cases/{id}/assertions
PUT /api/v1/cases/{id}/instruction
GET /api/v1/cases/{id}/oracle
POST /api/v1/cases/{id}/rejection
POST /api/v1/cases/{id}/retirement
GET /api/v1/cases/{id}/validations
POST /api/v1/workspaces/{name}/mining
Method Path
GET /api/v1/evaluations
POST /api/v1/evaluations
POST /api/v1/evaluations/estimate
GET /api/v1/evaluations/offer
GET /api/v1/evaluations/{id}
POST /api/v1/evaluations/{id}/cancellation
GET /api/v1/evaluations/{id}/cases
POST /api/v1/evaluations/{id}/confirmation
GET /api/v1/evaluations/{id}/runs/{runId}
Method Path
POST /api/v1/ci/baselines
POST /api/v1/ci/pull-requests
GET /api/v1/ci/runs/{id}
Method Path
GET /ingest/v1/config
POST /ingest/v1/sessions
POST /v1/logs
POST /v1/metrics
Method Path
GET /api/v1/integrations
PUT /api/v1/integrations/github
PUT /api/v1/integrations/jira
DELETE /api/v1/integrations/{kind}
Method Path
GET /api/v1/org
PUT /api/v1/org/settings
Method Path
GET /api/v1/patterns
GET /api/v1/patterns/{id}
POST /api/v1/patterns/{id}/acknowledgement
POST /api/v1/patterns/{id}/dismissal
Method Path
POST /api/v1/privacy/erasures
Method Path
GET /api/v1/proposals
GET /api/v1/proposals/{id}
POST /api/v1/proposals/{id}/rejection
POST /api/v1/proposer/runs
Method Path
GET /api/v1/steering/agreement
GET /api/v1/steering/interventions
POST /api/v1/steering/refresh
POST /api/v1/steering/relabel
GET /api/v1/steering/report
GET /api/v1/steering/status
Method Path
POST /api/v1/devices
GET /api/v1/tokens
POST /api/v1/tokens
DELETE /api/v1/tokens/{id}
Method Path
PUT /api/v1/sessions/{id}/work-item
GET /api/v1/work-items
GET /api/v1/work-items/timeline
Method Path
POST /worker/v1/attributions
GET /worker/v1/blobs/{hash}
PUT /worker/v1/blobs/{hash}
GET /worker/v1/cases/{id}/source
POST /worker/v1/jobs/lease
POST /worker/v1/jobs/{id}/complete
POST /worker/v1/jobs/{id}/fail
POST /worker/v1/jobs/{id}/heartbeat
POST /worker/v1/sessions
GET /worker/v1/steering/examples
POST /worker/v1/steering/windows
Method Path
GET /api/v1/workspaces
POST /api/v1/workspaces
GET /api/v1/workspaces/{name}
PUT /api/v1/workspaces/{name}/harness
PUT /api/v1/workspaces/{name}/recipe
POST /api/v1/workspaces/{name}/recipe/confirmation
POST /api/v1/workspaces/{name}/recipe/validation
POST /api/v1/workspaces/{name}/repos
DELETE /api/v1/workspaces/{name}/repos/{repo}