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.

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