Skip to content
CyberbladeAssay
SourceSign in

The API

The /v1 API, its OpenAPI specification served from your own install, how authentication and the authorization gate apply, and the main endpoint groups.

Everything the console and CLI do, the /v1 API does. It is described by a single OpenAPI 3.1 specification kept in lockstep with the live routes, so the spec is never a stale sketch of the surface: a route change that skips the spec fails the build.

The specification

The full spec is served from your own install at /openapi.yaml. Load it into any OpenAPI tool: an editor, a client generator, or a request runner. A version-controlled Bruno collection ships alongside it in the repository, so example requests are plain text under version control rather than synced to a vendor cloud.

Authentication and authorization

Requests carry a bearer token issued by your install; the tenant and the caller’s identity come from that token, never from a parameter. Mutating an engagement is gated by the same signed scope grant the rest of the product enforces: the API is another caller through the one choke-point, not a way around it. A handful of endpoints are deliberately unauthenticated, such as GET /v1/version (reporting the build and its contract version) and the liveness and readiness probes.

The surface

No single service owns the whole surface; the edge routes each path to the service that owns it. The main groups:

  • /v1/grants, /v1/authorize, /v1/kill: authorization and the kill switch.
  • /v1/assets, /v1/crown-jewels, /v1/events: the graph and suite events.
  • /v1/techniques, /v1/dispatch, /v1/findings/{id}/validate: the catalog and validation.
  • /v1/verify/*, /v1/reports: fix verification and reporting.
Example
curl -s https://assay.example.com/v1/techniques \
  -H "Authorization: Bearer $TOKEN"