Groundfloor Docs

API Introduction

Base URLs, authentication, error format, and route groups for the Control Plane REST API.

The Control Plane exposes a REST API for programmatic access to accounts, workspaces, and all MVP pillars.

Base URLs

EnvironmentURL
Productionhttps://platform.groundfloor.cloud
Developmenthttps://dev-platform.groundfloor.cloud
Localhttp://localhost:8088

Route groups

PrefixAudienceDescription
/v1/*CustomerAccount-scoped customer endpoints
/v1/admin/*OperatorGroundfloor staff endpoints
/v1/public/*UnauthenticatedBootstrap, routing, TLS authorization (rate-limited)

Authentication

All customer endpoints require a Bearer JWT from Keycloak:

curl -H "Authorization: Bearer $TOKEN" \
  "$CP_URL/v1/workspaces"

The JWT sub claim maps to a Portal user. SpiceDB checks permissions per request.

Error format

{
  "detail": "Human-readable message",
  "code": "machine_readable_code"
}
StatusMeaning
401Missing or expired JWT
403SpiceDB denied the action
404Resource not found or no read permission
422Validation error

Workspace-scoped endpoints

Most pillar APIs are scoped under a workspace:

/v1/workspaces/{workspace_id}/vault/…
/v1/workspaces/{workspace_id}/files/…
/v1/workspaces/{workspace_id}/secrets/…

Full per-endpoint reference pages are available for authentication, accounts, workspaces, memberships, secrets, files, and data vault. For Shell apps, see the Shell API reference.

Documentation index

GuideTopics
AuthenticationJWT, permissions, public routes
AccountsList, create, audit, quota
WorkspacesCRUD, environments, export
MembershipsScope members, roles, revoke
Data VaultCollections, query, DDL
FilesPresigned upload/download
SecretsList, reveal, upsert, delete

OpenAPI

FastAPI serves an OpenAPI spec at /openapi.json. Auto-generated interactive docs are planned for a future release.