Space Works platform: Running Space Works

The REST API, API clients and signed webhooks

The Space Works API is a documented HTTP API under /api/v1/ with an OpenAPI schema, used through signed API clients, personal access tokens or OAuth app connections, alongside signed outbound webhooks.

Everything the web app does goes through the same API, and every deployment publishes its interactive reference. Four kinds of credential let other systems use it, and none can do more than its owner may do at that moment. For being told about events instead of polling, signed webhooks push notifications to your endpoint.

01 · Capabilities

What API and webhooks does

  • The reference is served on every deployment at /docs/ (Swagger), /redoc/ and /schema/, always matching the running version.

  • API clients sign each request with HMAC-SHA256 using X-Client-Id, X-Timestamp and X-Signature headers, plus an optional nonce.

  • A peer client of type Another space can read another space's public catalogue, events and stats, and nothing else.

  • Personal access tokens carry scopes and an expiry, 90 days by default and at most a year, and are stored only as a digest.

  • App connections use OAuth 2.0 and OIDC with the authorisation code flow and required PKCE.

  • Rotating a client secret keeps the old one working for 24 hours, and revoking stops it at once.

  • Tokens and app connections never reach sign-in, security settings, API clients, backups or superadmin routes, and never read payout details.

  • Signed clients are rate limited by tier (30, 120 or 600 requests a minute by default), and lists page at 24 rows or by cursor.

02 · Step by step

How API and webhooks works

  1. A Space Manager creates an API client or app connection for the space, choosing scopes.

  2. Copy the secret, shown once, into your system.

  3. Sign requests or run the OAuth flow, and read the schema at /schema/ for exact shapes.

  4. Add a signed webhook destination so Space Works tells your system when events happen.

03 · Roles

Who uses it

RoleWhat they can do
DeveloperBuilds integrations with API clients, tokens, app connections and webhooks.
Space ManagerCreates clients and app connections for the space and decides their scopes.

FAQ

API and webhooks: questions and answers

Does Space Works have an OpenAPI specification?

Yes. Every Space Works deployment serves its OpenAPI schema at /schema/, with Swagger at /docs/ and ReDoc at /redoc/.

Can an API token do more than the person who made it?

No. Space Works replays the owner's live permissions on every request, so a credential never exceeds its owner.

Will the API change under me?

Additive changes land in /api/v1/; a breaking change gets a new prefix and the old one is kept for at least one release.

Free and open source

Run it on your own server

Space Works is free under AGPL-3.0-or-later. One command installs it on a 64-bit Linux server, and every area can be switched on later.