SpacetimeDB HTTP API

The SpacetimeDB HTTP API lets clients and tools interact with SpacetimeDB databases: publish and delete database modules, manage database names, retrieve schema and logs, invoke reducers, run SQL queries, open real-time subscription WebSockets, and create/verify Spacetime identities and JWT tokens. Authentication is a Bearer JWT (SpacetimeAuth/OIDC, or an anonymously generated identity token). Base host is the hosted SpacetimeDB Cloud (Maincloud); the same API is served by any self-hosted `spacetime start` instance.

API entry from apis.yml

apis.yml Raw ↑
name: SpacetimeDB HTTP API
description: 'The SpacetimeDB HTTP API lets clients and tools interact with SpacetimeDB databases: publish
  and delete database modules, manage database names, retrieve schema and logs, invoke reducers, run SQL
  queries, open real-time subscription WebSockets, and create/verify Spacetime identities and JWT tokens.
  Authentication is a Bearer JWT (SpacetimeAuth/OIDC, or an anonymously generated identity token). Base
  host is the hosted SpacetimeDB Cloud (Maincloud); the same API is served by any self-hosted `spacetime
  start` instance.'
humanURL: https://spacetimedb.com/docs/http/database/
baseURL: https://maincloud.spacetimedb.com
tags:
- Database
- Real-Time
- WebSocket
- Identity
properties:
- type: Documentation
  url: https://spacetimedb.com/docs/http/database/
- type: APIReference
  url: https://spacetimedb.com/docs/http/database/
- type: Authentication
  url: authentication/clockwork-labs-authentication.yml
- type: ErrorCatalog
  url: errors/clockwork-labs-problem-types.yml
- type: Conventions
  url: conventions/clockwork-labs-conventions.yml
- type: Conformance
  url: conformance/clockwork-labs-conformance.yml
- type: MCPServer
  url: mcp/clockwork-labs-mcp.yml