Skip to content
Cloud

API reference

Every HTTP route in the platform API, with who may call it.

Calling the API

  • All routes are under /v1. Sign-in is by OIDC single sign-on and passkeys; the session is a cookie.
  • Requests that change something and carry the cookie must send an Origin matching the platform, or get BAD_ORIGIN.
  • Tenant routes need an x-aspian-tenant header with your organisation’s UUID, and membership of it.
  • Errors return {"error": "CODE", "message": "…"}. See Errors.

Sign-in and passkeys

RouteWhat it does
GET /v1/auth/sso/loginStarts single sign-on
GET /v1/auth/sso/callbackCompletes single sign-on
POST /v1/auth/logoutEnds the session
GET /v1/meThe signed-in person
POST /v1/passkeys/registration/optionsStarts registering a passkey
POST /v1/passkeys/registration/verifyFinishes registering a passkey

Plans and approvals

RouteWhoWhat it does
POST /v1/plansOwner, admin, developerCreate a plan
GET /v1/plans/{planId}MembersRead a plan and its canonical bytes
POST /v1/plans/{planId}/applyOwner, admin, developerApply an approved or low-risk plan
POST /v1/plans/{planId}/approval-requestsOwner, admin, developerAsk named approvers to approve
POST /v1/approval-links/openThe approverOpen a single-use approval link
POST /v1/approval-requests/{requestId}/challengeThe approverGet a challenge bound to the plan hash
POST /v1/approval-requests/{requestId}/verifyThe approverSubmit the passkey signature

Operators

RouteWhat it does
GET /v1/operator/tenants/{tenantId}/incidentsIncidents an operator’s grant covers
POST /v1/operator/tenants/{tenantId}/incidents/{incidentId}/acknowledgeAcknowledge an incident
POST /v1/operator/tenants/{tenantId}/runbooks/{runbookId}/runRun a named runbook the grant allows

Operator routes need an active operator and a current grant for that organisation and runbook.

Add-ons and partner attestations

RouteWhoWhat it does
GET /v1/addonsMembersList add-ons
POST /v1/addonsOwner, adminRequest an add-on
POST /v1/addons/{addonId}/statusOwner, adminChange an add-on’s status
POST /v1/partner/attestationsA partner, by signatureSubmit a signed attestation. Returns 201, or 200 for a duplicate