Space Works Inventory
A REST API and signed webhooks for makerspace inventory
The Space Works Inventory API is a per-makerspace REST API with scoped keys and signed outbound webhooks for catalogue, stock, loans, transfers, members and reports.
Space Works Inventory connects to dashboards, scripts and the other Space Works apps through a JSON API described in OpenAPI 3.1. Keys belong to one makerspace, act for the inventory manager who created them and carry fine-grained scopes. Issuing and returning loans, and dispatching or receiving transfers, deliberately stay out of the API, because they need QR scans and photo evidence at the desk.
01 · Capabilities
What REST API and webhooks does
Scopes for reading and writing the catalogue, stock, loans and transfers, plus read scopes for members and reports.
Create and edit items and locations, record stock adjustments with a reason, and receive stock with a unit cost.
Request loans for members and approve, reject or cancel them; request, approve, reject or cancel transfers.
Reports for stock valuation, low stock and overdue loans, with cursor pagination on every list.
People appear by name and membership id only, never with email addresses, phone numbers, remarks or photos.
Webhooks for item, stock, count, loan, incident, member, payment, transfer, repair and finance ledger events.
Each webhook is signed with HMAC-SHA256 and sent only to public addresses, with ids and quantities, never emails or remarks.
02 · Step by step
How REST API and webhooks works
An inventory manager creates a key with the scopes it needs; the secret is shown once.
Your system calls /api/v1 with the key as a bearer token, within 600 reads and 60 writes a minute.
Add a webhook endpoint under integrations and pick the events it receives.
Verify each signature and timestamp, and de-duplicate on the delivery id.
FAQ
REST API and webhooks: questions and answers
Can I issue or return loans through the Space Works Inventory API?
No. Space Works Inventory keeps issue and return, and transfer dispatch and receipt, out of the API on purpose, because they need QR scans and photo evidence at the desk. The API can request, approve, reject and cancel loans.
Which webhook events does Space Works Inventory send?
Space Works Inventory sends events such as item.created, stock.adjusted, stock.low, count.posted, loan.issued, loan.returned, loan.overdue, incident.opened, payment.succeeded, transfer.dispatched, transfer.received, repair.paid and finance.entry_posted.
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.