# SpacetimeDB HTTP API

**Canonical:** https://apis.io/apis/clockwork-labs/spacetimedb-http-api/  
**Provider:** Clockwork Labs — https://apis.io/providers/clockwork-labs/  
**Base URL:** https://maincloud.spacetimedb.com  
**Documentation:** https://spacetimedb.com/docs/http/database/

SpacetimeDB HTTP API is published by [Clockwork Labs](https://apis.io/providers/clockwork-labs/) on the [APIs.io](https://apis.io/) network. Tagged areas include Database, Real-Time, WebSocket, and Identity. The published artifact set on APIs.io includes API documentation, an API reference, and authentication docs.

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.

## Machine-readable artifacts (8)

- **Documentation** — https://spacetimedb.com/docs/http/database/
- **APIReference** — https://spacetimedb.com/docs/http/database/
- **Authentication** — https://raw.githubusercontent.com/api-evangelist/clockwork-labs/refs/heads/main/authentication/clockwork-labs-authentication.yml
- **ErrorCatalog** — https://raw.githubusercontent.com/api-evangelist/clockwork-labs/refs/heads/main/errors/clockwork-labs-problem-types.yml
- **Conventions** — https://raw.githubusercontent.com/api-evangelist/clockwork-labs/refs/heads/main/conventions/clockwork-labs-conventions.yml
- **Conformance** — https://raw.githubusercontent.com/api-evangelist/clockwork-labs/refs/heads/main/conformance/clockwork-labs-conformance.yml
- **MCPServer** — https://raw.githubusercontent.com/api-evangelist/clockwork-labs/refs/heads/main/mcp/clockwork-labs-mcp.yml
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/clockwork-labs/refs/heads/main/apis.yml

## Tags

Database, Real-Time, WebSocket, Identity

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/clockwork-labs/spacetimedb-http-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/clockwork-labs/.
