SupaCloud maintainers
Overview
SupaCloud Web API 0.7.0
Section titled “SupaCloud Web API 0.7.0”Browser-facing HTTP API consumed by the SupaCloud web UI, plus inbound webhooks (git forges + workflow trigger receivers) under the top-level webhooks key. Generated from the utoipa annotations on the browser handlers (ADR 0044).
Information
- License: AGPL-3.0-only
- OpenAPI version:
3.1.0
Operations
Section titled “Operations”Authentication
Section titled “Authentication”agent_access_auth
Section titled “agent_access_auth”A resource-bound OAuth access token joined to its consented Agent installation; ID tokens are refused.
Security scheme type: http
app_backend_token_auth
Section titled “app_backend_token_auth”Browser App-backend token (scab_…) that a served App reads from its injected supacloud-app-backend meta. It is minted only after the App’s serve-time access gate passed, is valid for the App in the path only, and is bound to the App’s live deployment: undeploy, redeploy, an access-mode change or a password rotation invalidates it. Backend functions: an org-mode token acts as the member who opened the App, whose current workspace role is checked on every call (a Viewer calls read functions only, a member who left is refused); a public- or password-mode token carries no member and may call the App’s read and write functions. Run submit: only an org-mode token of a current non-Viewer member is accepted, and the run is attributed to that member; a public- or password-mode token is refused with 403.
Security scheme type: http
Bearer format: scab
app_token_auth
Section titled “app_token_auth”Per-deployment App API token (scwa_…) for server-side App→API callbacks. It must belong to the App in the path, and the call acts as the App’s deployer. It is an owner-side server token: never embed it in a public frontend.
Security scheme type: http
Bearer format: scwa
cookie_auth
Section titled “cookie_auth”Security scheme type: apiKey
Cookie parameter name: supacloud_session
project_token_auth
Section titled “project_token_auth”A project-bound credential (scpj_). The bound workspace and project come only from the verified credential, never from the request.
Security scheme type: http
webhook_hmac
Section titled “webhook_hmac”HMAC of the raw request body, keyed by the per-trigger / per-project secret (constant-time compared). Header + algorithm are provider-specific: X-Hub-Signature-256 (git forges + generic, SHA256 over the raw body), Linear-Signature (Linear, SHA256), X-Notion-Signature (Notion, SHA256), X-Chatwoot-Signature (Chatwoot, SHA256 over {X-Chatwoot-Timestamp}.{raw_body}, replay-guarded), X-Hub-Signature (Intercom, SHA1 over the raw body).
Security scheme type: apiKey
Header parameter name: X-Hub-Signature-256
webhook_token
Section titled “webhook_token”Unguessable per-trigger token in the final URL path segment; addresses and authenticates the trigger.
Security scheme type: apiKey
Header parameter name: token