---
title: REST API and webhooks for machine data | Space Works
description: Space Works Machines has a per-space REST API with scoped keys and an OpenAPI document, plus signed webhooks for machines, jobs, payments, stock and upkeep.
url: https://spaceworkslabs.tech/machines/api-and-webhooks/
updated: 2026-11-28
---

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.

[Install Machines](https://spaceworkslabs.tech/machines/#install) [Read the docs](https://spaceworkslabs.tech/docs/machines/)

At a glance

- **Part of**: [Space Works Machines](https://spaceworkslabs.tech/machines/)

- **Capabilities**: 8

- **Roles**: Machine manager

Docs for this
- [Space Works Machines REST API and webhooks](https://spaceworkslabs.tech/docs/machines/api/)

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

- A machine manager creates an API key under Integrations with only the scopes needed.
- Your service calls /api/v1 with the key as a bearer token.
- For webhooks, add an https endpoint, pick its events and store the signing secret shown once.
- Verify the X-SpaceWorks-Signature header on each delivery and answer with a 2xx within 10 seconds.

03 · Roles

## Who uses it

| Role | What they can do |
| --- | --- |
| Machine manager | Create 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.

Related

## More from Space Works Machines

[

### Printer connections

Printer connections in Space Works Machines are per-machine adapters that read printer telemetry every 15 seconds, start queued jobs on the printer and complete or fail them when the print ends.Read more](https://spaceworkslabs.tech/machines/printer-connections/) [

### Job queue

The job queue in Space Works Machines is the request-to-collection workflow that orders jobs by priority, approval and submission time and shows each maker their position and an estimated wait.Read more](https://spaceworkslabs.tech/machines/job-queue/) [

### Reports and finance

Reports and finance in Space Works Machines turn job, usage, stock, upkeep and payment records into exportable reports and a single append-only ledger of money in and out.Read more](https://spaceworkslabs.tech/machines/reports-and-finance/)

[All of Space Works Machines](https://spaceworkslabs.tech/machines/)

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.

[Set up your space](https://spaceworkslabs.tech/platform/#install) [Read the docs](https://spaceworkslabs.tech/docs/machines/)
