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.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spacetimedb-http-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

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