Skip to content

API Reference

SkyState's HTTP API is primarily consumed by the CLI, console, and SDKs. This reference documents the current route surface for maintainers and advanced integrations.

All product routes are versioned under /v1. Health and webhooks are unversioned.

Interactive Reference

An interactive Scalar API reference is generated from the API itself; the raw OpenAPI document is available at https://console.skystate.io/api/openapi/v1.json. It covers only the published public operations (public state, user state, and auth exchange), which are a subset of the route groups documented below.

Auth Schemes

SchemeHeaderUsed by
SkyState BearerAuthorization: Bearer <jwt>Developer sessions and end-user sessions
API keyAuthorization: ApiKey <sky_...>Project-scoped automation and public-state writes
Anonymousno Authorization headerpublic-state reads, public auth config, auth exchange routes, health, and webhooks

Firebase ID tokens are accepted only by POST /v1/auth/authorize/callback as hosted-login proof. Product routes do not accept Firebase tokens directly.

Route Groups

Route groupAuthPurpose
/v1/auth/*AnonymousDeveloper and end-user Authorization Code + PKCE-shaped exchange
/v1/auth/dev/*AnonymousDeveloper CLI copy/paste code helper
/v1/{accountId}/projectsDeveloper bearerProject CRUD, API keys, and end-user auth settings
/v1/{accountId}/projects/{slug}/public-stateDeveloper bearer or API keyPublic-state read/write/patch/version history
/v1/readonly/{accountId}/projects/{slug}/public-stateAnonymousSDK/browser public-state reads
/v1/{accountId}/projects/{slug}/user-statesDeveloper bearerDeveloper list/show/delete for end-user state
/v1/{accountId}/projects/{slug}/user-stateEnd-user bearerSigned-in end-user state read/write
/v1/readonly/{accountId}/projects/{slug}/auth/end-user/configAnonymousPublic end-user auth config
/v1/api-key/infoAPI keyMetadata for the authenticated API key
/v1/accountDeveloper bearerAccount profile, update, delete, and agreement acceptance
/v1/billingDeveloper bearerCheckout, portal, tier changes, subscription resume, and usage status