Space Works Machines

REST API and signed webhooks for makerspace machines

The Space Works Machines API is a per-space REST interface at /api/v1 with scoped keys, paired with signed outbound webhooks that report machine, job, payment, stock and upkeep changes.

Connect your own dashboards, door systems or the other Space Works apps without touching the database. API keys belong to one space, carry explicit scopes and act with the creator's current permissions. Webhooks send minimal, signed events as things happen, with retries and a delivery log, and never carry emails, notes, files or secrets.

01 · Capabilities

What API and webhooks does

  • Scopes cover machines, jobs, consumables and maintenance (read and write), plus payments and reports (read).

  • Keys look like swm_<prefix>_<secret>, are shown once, stored as a SHA-256 hash, and can expire or be revoked.

  • Each key gets 600 reads and 60 writes a minute, with cursor pagination and an OpenAPI 3.1 document at /api/v1/openapi.json.

  • Writes include setting machine status, creating jobs for a requester, moving jobs through the same rules as the staff console, and adjusting stock.

  • Machine webhook events are machine.created, machine.updated, machine.status_changed and machine.retired, queued with the change itself.

  • Job webhook events: job.submitted, approved, rejected, started, paused, resumed, completed, failed, collected, cancelled, reprinted, priority_changed, reassigned and noted.

  • Other events: payment.paid, payment.refunded, consumable.low_stock, maintenance.due, maintenance.logged, fault.reported, fault.resolved, downtime.started, downtime.ended, repair.paid and finance.entry_posted.

  • Deliveries are HMAC-SHA256 signed, retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, and an endpoint switches off after 10 failures in a row.

02 · Step by step

How API and webhooks works

  1. A machine manager creates an API key under Integrations with only the scopes needed.

  2. Your service calls /api/v1 with the key as a bearer token.

  3. For webhooks, add an https endpoint, pick its events and store the signing secret shown once.

  4. Verify the X-SpaceWorks-Signature header on each delivery and answer with a 2xx within 10 seconds.

03 · Roles

Who uses it

RoleWhat they can do
Machine managerCreate and revoke API keys and manage webhook endpoints.

FAQ

API and webhooks: questions and answers

Does Space Works Machines have an API?

Yes. Space Works Machines has a REST API at /api/v1 with per-space keys, scopes, rate limits and an OpenAPI 3.1 document.

Which webhook events does Space Works Machines send?

Space Works Machines sends machine, job, payment, consumable, maintenance, fault, downtime, repair and finance events, each signed with HMAC-SHA256. A test event, webhook.test, can be sent from the delivery log.

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.