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, hosted-auth config, auth exchange routes, health, and webhooks

Firebase ID tokens are accepted only as proof during hosted-login completion. 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/{projectId}/public-stateDeveloper bearer or API keyPublic-state read/write/patch/version history
/v1/readonly/{accountId}/projects/{projectId}/public-stateAnonymousSDK/browser public-state reads
/v1/{accountId}/projects/{projectId}/user-statesDeveloper bearerDeveloper list/show/delete for end-user state
/v1/{accountId}/projects/{projectId}/user-stateEnd-user bearerSigned-in end-user state read/write
/v1/readonly/{accountId}/projects/{projectId}/auth/end-user/configAnonymousHosted auth runtime 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