---
title: SpaceWorks API guide | Space Works docs
description: How another system talks to a SpaceWorks deployment: a university ERP, a script, a community calendar, or another makerspace's backend. The interactive…
url: https://spaceworkslabs.tech/docs/space-works/api-guide/
updated: 2026-11-16
---

[Space Works](https://spaceworkslabs.tech/docs/space-works/) Start here
- [What Space Works is](https://spaceworkslabs.tech/docs/space-works/guide-overview/)
- [Getting started](https://spaceworkslabs.tech/docs/space-works/guide-getting-started/)
- [FAQ and troubleshooting](https://spaceworkslabs.tech/docs/space-works/guide-faq/)
- [Glossary](https://spaceworkslabs.tech/docs/space-works/guide-glossary/)
- [Sign-in methods](https://spaceworkslabs.tech/docs/space-works/guide-sign-in-methods/)
Tutorials
- [Tutorials overview](https://spaceworkslabs.tech/docs/space-works/tutorials-overview/)
- [Set up your first makerspace](https://spaceworkslabs.tech/docs/space-works/tutorials-first-makerspace/)
- [Lend your first tool](https://spaceworkslabs.tech/docs/space-works/tutorials-lend-your-first-tool/)
- [Run your first event](https://spaceworkslabs.tech/docs/space-works/tutorials-first-event/)
- [Take room bookings](https://spaceworkslabs.tech/docs/space-works/tutorials-room-bookings/)
- [Take payments](https://spaceworkslabs.tech/docs/space-works/tutorials-take-payments/)
- [Machines and inductions](https://spaceworkslabs.tech/docs/space-works/tutorials-machines-and-inductions/)
- [Connect analytics](https://spaceworkslabs.tech/docs/space-works/tutorials-connect-analytics/)
Modules
- [Areas and modules overview](https://spaceworkslabs.tech/docs/space-works/modules-overview/)
- [Inventory](https://spaceworkslabs.tech/docs/space-works/modules-inventory/)
- [Machines](https://spaceworkslabs.tech/docs/space-works/modules-machines/)
- [Presence](https://spaceworkslabs.tech/docs/space-works/modules-presence/)
- [Events](https://spaceworkslabs.tech/docs/space-works/modules-events/)
- [Bookings](https://spaceworkslabs.tech/docs/space-works/modules-bookings/)
- [Shop](https://spaceworkslabs.tech/docs/space-works/modules-shop/)
- [Memberships](https://spaceworkslabs.tech/docs/space-works/modules-memberships/)
- [Payments](https://spaceworkslabs.tech/docs/space-works/modules-payments/)
- [Donations and sponsors](https://spaceworkslabs.tech/docs/space-works/modules-donations/)
- [Analytics and reports](https://spaceworkslabs.tech/docs/space-works/modules-analytics/)
- [Notifications and messaging](https://spaceworkslabs.tech/docs/space-works/modules-notifications-and-messaging/)
- [Organizations](https://spaceworkslabs.tech/docs/space-works/modules-organizations/)
- [Backup and migration](https://spaceworkslabs.tech/docs/space-works/modules-backup-and-migration/)
- [API clients and integrations](https://spaceworkslabs.tech/docs/space-works/modules-api-clients/)
- [Platform and superadmin](https://spaceworkslabs.tech/docs/space-works/modules-platform/)
- [Choosing modules](https://spaceworkslabs.tech/docs/space-works/choosing-modules/)
How-to guides
- [How-to guides](https://spaceworkslabs.tech/docs/space-works/how-to-overview/)
- [Use your own domain with HTTPS](https://spaceworkslabs.tech/docs/space-works/how-to-custom-domain/)
- [Send email through your own provider](https://spaceworkslabs.tech/docs/space-works/how-to-email-sending/)
- [Send alerts to a Telegram group](https://spaceworkslabs.tech/docs/space-works/how-to-telegram-alerts/)
- [Privacy and terms pages](https://spaceworkslabs.tech/docs/space-works/how-to-privacy-and-terms/)
- [Set up SMS and WhatsApp](https://spaceworkslabs.tech/docs/space-works/how-to-sms-whatsapp/)
- [Choose and configure sign-in methods](https://spaceworkslabs.tech/docs/space-works/how-to-sign-in-methods/)
- [Two-step sign-in for staff and superadmins](https://spaceworkslabs.tech/docs/space-works/how-to-staff-and-superadmin-mfa/)
- [Turn an area or add-on on or off safely](https://spaceworkslabs.tech/docs/space-works/how-to-turn-areas-on-off/)
- [Give someone a role](https://spaceworkslabs.tech/docs/space-works/how-to-roles-and-handover/)
- [Import members and inventory from a spreadsheet](https://spaceworkslabs.tech/docs/space-works/how-to-import-members-and-inventory/)
- [Export your data](https://spaceworkslabs.tech/docs/space-works/how-to-export-your-data/)
- [Set up offsite backups and restore](https://spaceworkslabs.tech/docs/space-works/how-to-offsite-backups/)
- [Move a space to another server](https://spaceworkslabs.tech/docs/space-works/how-to-move-a-space/)
- [Add Apple Wallet and Google Wallet passes](https://spaceworkslabs.tech/docs/space-works/how-to-wallet-passes/)
- [Remove card photo backgrounds](https://spaceworkslabs.tech/docs/space-works/how-to-background-eraser/)
- [Design cards and certificates](https://spaceworkslabs.tech/docs/space-works/how-to-design-cards-and-certificates/)
- [Add web analytics, replay and error tracking per space](https://spaceworkslabs.tech/docs/space-works/how-to-web-telemetry/)
- [Set prices, rate cards and fees](https://spaceworkslabs.tech/docs/space-works/how-to-rate-cards-and-fees/)
- [Set up guest passes and waivers](https://spaceworkslabs.tech/docs/space-works/how-to-guest-passes-and-waivers/)
- [Admit minors with guardian consent](https://spaceworkslabs.tech/docs/space-works/how-to-minors-and-guardian-consent/)
- [Let people check in by location](https://spaceworkslabs.tech/docs/space-works/how-to-presence-check-in/)
- [Rotate encryption and secret keys](https://spaceworkslabs.tech/docs/space-works/how-to-rotate-keys/)
- [Run behind a reverse proxy and reach the control plane](https://spaceworkslabs.tech/docs/space-works/how-to-reverse-proxy-and-control-plane/)
- [Upgrade SpaceWorks safely](https://spaceworkslabs.tech/docs/space-works/how-to-upgrade-safely/)
- [The SpaceWorks front page and the Features page](https://spaceworkslabs.tech/docs/space-works/how-to-front-page-and-features/)
- [The public profile](https://spaceworkslabs.tech/docs/space-works/how-to-member-profile/)
- [Usernames](https://spaceworkslabs.tech/docs/space-works/how-to-usernames/)
- [Public space page and display screens](https://spaceworkslabs.tech/docs/space-works/how-to-display-screens/)
- [Show your screens on Anthias](https://spaceworkslabs.tech/docs/space-works/how-to-anthias/)
- [Give members machine access](https://spaceworkslabs.tech/docs/space-works/how-to-machine-access/)
- [Manage device adapters](https://spaceworkslabs.tech/docs/space-works/how-to-adapter-console/)
- [Use a shelf pointer](https://spaceworkslabs.tech/docs/space-works/how-to-shelf-pointer/)
- [Set up machine types and their consumables](https://spaceworkslabs.tech/docs/space-works/how-to-machine-consumables/)
- [Machine printing and connecting machines](https://spaceworkslabs.tech/docs/space-works/how-to-machine-printing/)
- [Log machine use for an event](https://spaceworkslabs.tech/docs/space-works/how-to-machine-use-for-events/)
- [Equipment kits and contextual requests](https://spaceworkslabs.tech/docs/space-works/equipment-kits/)
- [Equipment loan context](https://spaceworkslabs.tech/docs/space-works/equipment-contexts/)
- [Loan policy, renewal and reminders](https://spaceworkslabs.tech/docs/space-works/loan-policy/)
- [Sign-in, identity and borrowing](https://spaceworkslabs.tech/docs/space-works/sign-in-and-borrowing/)
Members
- [Getting started with Space Works](https://spaceworkslabs.tech/docs/space-works/member-getting-started/)
- [Sign in, create an account and manage it](https://spaceworkslabs.tech/docs/space-works/member-sign-in-and-account/)
- [Two-step sign-in and passkeys](https://spaceworkslabs.tech/docs/space-works/member-two-step-sign-in/)
- [Security emails and "This wasn't me](https://spaceworkslabs.tech/docs/space-works/member-security-alerts/)
- [Join a makerspace](https://spaceworkslabs.tech/docs/space-works/member-join-the-space/)
- [Renew, cancel or leave your membership](https://spaceworkslabs.tech/docs/space-works/member-renewals-and-leaving/)
- [Your member area](https://spaceworkslabs.tech/docs/space-works/member-member-area/)
- [Your member card and My cards](https://spaceworkslabs.tech/docs/space-works/member-member-card/)
- [Join an ID programme](https://spaceworkslabs.tech/docs/space-works/member-id-programmes/)
- [Borrow tools from Inventory](https://spaceworkslabs.tech/docs/space-works/member-borrow-tools/)
- [Borrow or return a tool yourself](https://spaceworkslabs.tech/docs/space-works/member-self-checkout/)
- [Book a room or resource](https://spaceworkslabs.tech/docs/space-works/member-book-a-room/)
- [Find and register for events](https://spaceworkslabs.tech/docs/space-works/member-events/)
- [Buy tickets and manage your orders](https://spaceworkslabs.tech/docs/space-works/member-event-orders/)
- [Confirm your place, join the crew, or review applications](https://spaceworkslabs.tech/docs/space-works/member-event-participation/)
- [Take part in a hackathon](https://spaceworkslabs.tech/docs/space-works/member-hackathons/)
- [Request a machine job](https://spaceworkslabs.tech/docs/space-works/member-machine-jobs/)
- [Use a machine yourself](https://spaceworkslabs.tech/docs/space-works/member-machine-sessions/)
- [My machine access](https://spaceworkslabs.tech/docs/space-works/member-machine-access/)
- [Your machine certifications](https://spaceworkslabs.tech/docs/space-works/member-certifications/)
- [Tell the space something is broken](https://spaceworkslabs.tech/docs/space-works/member-something-broken/)
- [Pay what you owe](https://spaceworkslabs.tech/docs/space-works/member-pay-what-you-owe/)
- [Support a space with a gift or a pledge](https://spaceworkslabs.tech/docs/space-works/member-donate/)
- [Calendar links](https://spaceworkslabs.tech/docs/space-works/member-calendar-links/)
- [Personal API tokens and connected apps](https://spaceworkslabs.tech/docs/space-works/member-api-access-and-apps/)
- [Buy from the space's shop](https://spaceworkslabs.tech/docs/space-works/member-shop/)
- [Check in when you arrive](https://spaceworkslabs.tech/docs/space-works/member-check-in/)
- [Inbox and notifications](https://spaceworkslabs.tech/docs/space-works/member-inbox-and-notifications/)
- [Your public profile](https://spaceworkslabs.tech/docs/space-works/member-public-profile/)
- [Your data and privacy](https://spaceworkslabs.tech/docs/space-works/member-your-data/)
Space managers
- [First steps for a new space](https://spaceworkslabs.tech/docs/space-works/space-manager-first-steps/)
- [Choose modules and features](https://spaceworkslabs.tech/docs/space-works/space-manager-modules-and-features/)
- [Settings, and who can change them](https://spaceworkslabs.tech/docs/space-works/space-manager-settings-and-grants/)
- [Add staff and give them roles](https://spaceworkslabs.tech/docs/space-works/space-manager-staff-and-roles/)
- [Machine access](https://spaceworkslabs.tech/docs/space-works/space-manager-machine-access/)
- [Two-step sign-in for staff](https://spaceworkslabs.tech/docs/space-works/space-manager-staff-two-step/)
- [Security settings for your space](https://spaceworkslabs.tech/docs/space-works/space-manager-security-settings/)
- [Public site, branding, hours and your domain](https://spaceworkslabs.tech/docs/space-works/space-manager-public-site-and-branding/)
- [Device adapters](https://spaceworkslabs.tech/docs/space-works/space-manager-device-adapters/)
- [Notifications, chat rooms and email](https://spaceworkslabs.tech/docs/space-works/space-manager-notifications-and-channels/)
- [Membership plans and admissions](https://spaceworkslabs.tech/docs/space-works/space-manager-membership-plans-and-admissions/)
- [Import members from a file or a Google Sheet](https://spaceworkslabs.tech/docs/space-works/space-manager-member-import/)
- [Member cards and card designs](https://spaceworkslabs.tech/docs/space-works/space-manager-member-cards/)
- [Run an ID programme for an organisation](https://spaceworkslabs.tech/docs/space-works/space-manager-id-programmes/)
- [Reports, saved views and the audit log](https://spaceworkslabs.tech/docs/space-works/space-manager-insights-and-audit/)
- [Pair a display screen](https://spaceworkslabs.tech/docs/space-works/space-manager-display-screens/)
- [API access and signed webhooks](https://spaceworkslabs.tech/docs/space-works/space-manager-api-and-webhooks/)
- [Back up, restore and export your space](https://spaceworkslabs.tech/docs/space-works/space-manager-backups-and-exports/)
- [The help centre and its switch](https://spaceworkslabs.tech/docs/space-works/space-manager-help-centre/)
Inventory managers
- [Review borrow requests](https://spaceworkslabs.tech/docs/space-works/inventory-manager-requests-queue/)
- [Hand over a request](https://spaceworkslabs.tech/docs/space-works/inventory-manager-issue-a-request/)
- [Take a return](https://spaceworkslabs.tech/docs/space-works/inventory-manager-process-a-return/)
- [Items, quantities and categories](https://spaceworkslabs.tech/docs/space-works/inventory-manager-inventory-and-categories/)
- [QR labels and the scanner](https://spaceworkslabs.tech/docs/space-works/inventory-manager-qr-tools/)
- [Stocktakes and stock transfers](https://spaceworkslabs.tech/docs/space-works/inventory-manager-stocktake-and-transfers/)
- [Containers and kits](https://spaceworkslabs.tech/docs/space-works/inventory-manager-containers-and-kits/)
- [Bulk-import items](https://spaceworkslabs.tech/docs/space-works/inventory-manager-bulk-import/)
- [To-Buy, warranties and vendors](https://spaceworkslabs.tech/docs/space-works/inventory-manager-to-buy-warranty-vendors/)
- [Consumables](https://spaceworkslabs.tech/docs/space-works/inventory-manager-consumables/)
- [The To-be-fixed shelf](https://spaceworkslabs.tech/docs/space-works/inventory-manager-to-be-fixed/)
- [The ledger and accountability](https://spaceworkslabs.tech/docs/space-works/inventory-manager-ledger-and-accountability/)
- [Inventory loan rules](https://spaceworkslabs.tech/docs/space-works/inventory-manager-lending-settings/)
Machine managers
- [Machine types and machines](https://spaceworkslabs.tech/docs/space-works/machine-manager-machines-and-types/)
- [Run the job queue](https://spaceworkslabs.tech/docs/space-works/machine-manager-job-requests-and-quotes/)
- [Machine sessions](https://spaceworkslabs.tech/docs/space-works/machine-manager-machine-sessions/)
- [Certifications](https://spaceworkslabs.tech/docs/space-works/machine-manager-certifications/)
- [Machine access](https://spaceworkslabs.tech/docs/space-works/machine-manager-machine-access/)
- [Machine maintenance](https://spaceworkslabs.tech/docs/space-works/machine-manager-maintenance/)
- [Connected devices](https://spaceworkslabs.tech/docs/space-works/machine-manager-devices-and-integrations/)
Event managers
- [Assigned resources](https://spaceworkslabs.tech/docs/space-works/event-manager-assigned-resources/)
- [Create and publish an event](https://spaceworkslabs.tech/docs/space-works/event-manager-create-an-event/)
- [Ticket types, promo codes and invitations](https://spaceworkslabs.tech/docs/space-works/event-manager-tickets-and-invites/)
- [Ticket orders, add-ons and series passes](https://spaceworkslabs.tech/docs/space-works/event-manager-paid-ticketing/)
- [Check people in](https://spaceworkslabs.tech/docs/space-works/event-manager-check-in/)
- [Applications and review stages](https://spaceworkslabs.tech/docs/space-works/event-manager-applications-and-review/)
- [Attendance confirmation, re-accepting and crew](https://spaceworkslabs.tech/docs/space-works/event-manager-attendance-and-crew/)
- [Hackathons and judging](https://spaceworkslabs.tech/docs/space-works/event-manager-hackathons-and-judging/)
- [Finalists, prizes, entry fees and saved views](https://spaceworkslabs.tech/docs/space-works/event-manager-judging-extras/)
- [Certificates, event cards, tickets and feedback](https://spaceworkslabs.tech/docs/space-works/event-manager-cards-certificates-feedback/)
- [Design event badges](https://spaceworkslabs.tech/docs/space-works/event-manager-badge-designer/)
- [Broadcasts, websites, short links and partners](https://spaceworkslabs.tech/docs/space-works/event-manager-broadcasts-and-websites/)
- [Venue fees for outside organisers](https://spaceworkslabs.tech/docs/space-works/event-manager-venue-fees/)
Booking managers
- [Rooms and resources](https://spaceworkslabs.tech/docs/space-works/booking-manager-resources/)
- [Booking requests and changes](https://spaceworkslabs.tech/docs/space-works/booking-manager-booking-requests/)
- [Arrivals, passes and confirmations](https://spaceworkslabs.tech/docs/space-works/booking-manager-arrivals-and-passes/)
- [Resource staff, websites and broadcasts](https://spaceworkslabs.tech/docs/space-works/booking-manager-resource-staff-and-websites/)
- [Resource analytics and room upkeep](https://spaceworkslabs.tech/docs/space-works/booking-manager-analytics-and-upkeep/)
Shop managers
- [Set up the shop](https://spaceworkslabs.tech/docs/space-works/shop-manager-set-up-the-shop/)
- [Products, prices and stock](https://spaceworkslabs.tech/docs/space-works/shop-manager-products-and-stock/)
- [Sell at the front desk and cash up](https://spaceworkslabs.tech/docs/space-works/shop-manager-front-desk-sales/)
- [Orders, pickups and returns](https://spaceworkslabs.tech/docs/space-works/shop-manager-orders-and-returns/)
Handover and technicians
- [The front-desk console](https://spaceworkslabs.tech/docs/space-works/handover-front-desk-console/)
- [Direct handout](https://spaceworkslabs.tech/docs/space-works/handover-direct-handout/)
- [Job pickups](https://spaceworkslabs.tech/docs/space-works/handover-job-handover/)
- [Kiosk stations](https://spaceworkslabs.tech/docs/space-works/handover-kiosk-stations/)
- [Your repair jobs](https://spaceworkslabs.tech/docs/space-works/technician-your-jobs/)
- [Run scheduled maintenance](https://spaceworkslabs.tech/docs/space-works/technician-run-maintenance/)
- [Take something out of service](https://spaceworkslabs.tech/docs/space-works/technician-service-state/)
- [Manage repairs and technicians](https://spaceworkslabs.tech/docs/space-works/technician-managing-repairs/)
Finance and organisations
- [Payments and offline receipts](https://spaceworkslabs.tech/docs/space-works/finance-payments-and-settlements/)
- [Refunds](https://spaceworkslabs.tech/docs/space-works/finance-refunds/)
- [When you lower a price](https://spaceworkslabs.tech/docs/space-works/finance-price-drop-refunds/)
- [The finance ledger](https://spaceworkslabs.tech/docs/space-works/finance-finance-ledger/)
- [Tax, receipts and disputes](https://spaceworkslabs.tech/docs/space-works/finance-tax-and-receipts/)
- [Price lists and member discounts](https://spaceworkslabs.tech/docs/space-works/finance-price-lists/)
- [Donations and sponsors](https://spaceworkslabs.tech/docs/space-works/finance-donations-and-sponsors/)
- [What an organisation is](https://spaceworkslabs.tech/docs/space-works/organisation-what-is-an-organisation/)
- [Create an organisation, invite people and leave one](https://spaceworkslabs.tech/docs/space-works/organisation-create-and-invite/)
- [Organised events and organisation analytics](https://spaceworkslabs.tech/docs/space-works/organisation-organised-events/)
Platform administration
- [Sign in to the platform console](https://spaceworkslabs.tech/docs/space-works/superadmin-platform-console/)
- [Work inside a space, and personal data windows](https://spaceworkslabs.tech/docs/space-works/superadmin-working-in-a-space/)
- [The platform dashboard](https://spaceworkslabs.tech/docs/space-works/superadmin-platform-dashboard/)
- [Space health, service pauses and closure](https://spaceworkslabs.tech/docs/space-works/superadmin-space-lifecycle/)
- [Per-space limits](https://spaceworkslabs.tech/docs/space-works/superadmin-platform-limits/)
- [Users, Space Managers and new spaces](https://spaceworkslabs.tech/docs/space-works/superadmin-users-and-space-managers/)
- [Lock a space's security settings](https://spaceworkslabs.tech/docs/space-works/superadmin-security-locks/)
- [Organisations across the platform](https://spaceworkslabs.tech/docs/space-works/superadmin-organisations/)
- [Modules, limits and purging data](https://spaceworkslabs.tech/docs/space-works/superadmin-modules-and-purges/)
- [Platform backups and restores](https://spaceworkslabs.tech/docs/space-works/superadmin-backups-and-restore/)
- [Move a space to another server](https://spaceworkslabs.tech/docs/space-works/superadmin-tenant-migration/)
- [Platform settings, sign-in providers and hosting requests](https://spaceworkslabs.tech/docs/space-works/superadmin-platform-settings/)
- [The /control/ admin](https://spaceworkslabs.tech/docs/space-works/superadmin-control-admin/)
- [Install Space Works](https://spaceworkslabs.tech/docs/space-works/host-operator-install/)
- [Update and re-run the installer](https://spaceworkslabs.tech/docs/space-works/host-operator-upgrade/)
- [Back up and restore the server](https://spaceworkslabs.tech/docs/space-works/host-operator-backups/)
- [Environment keys and rotating them](https://spaceworkslabs.tech/docs/space-works/host-operator-environment-keys/)
- [Encryption keys and row-level security](https://spaceworkslabs.tech/docs/space-works/host-operator-keys-and-row-level-security/)
- [Reach /control/ safely](https://spaceworkslabs.tech/docs/space-works/host-operator-control-plane-access/)
- [Health checks and logs](https://spaceworkslabs.tech/docs/space-works/host-operator-health-and-logs/)
- [Show or hide the SpaceWorks front page](https://spaceworkslabs.tech/docs/space-works/host-operator-front-page/)
Self-hosting
- [Self-Hosting Guide](https://spaceworkslabs.tech/docs/space-works/self-hosting/)
- [Choose your hosting](https://spaceworkslabs.tech/docs/space-works/choose-your-hosting/)
- [Install and update Space Works](https://spaceworkslabs.tech/docs/space-works/install-and-update/)
- [Setting up Space Works — Open Source Makerspace Manager (plain-language guide)](https://spaceworkslabs.tech/docs/space-works/setup-for-makerspaces/)
- [Backup and restore](https://spaceworkslabs.tech/docs/space-works/backup-and-restore/)
- [Run your space on your own domain or frontend](https://spaceworkslabs.tech/docs/space-works/own-domain-and-frontend/)
Developers
- [SpaceWorks API guide](https://spaceworkslabs.tech/docs/space-works/api-guide/)
- [Signed webhook v2](https://spaceworkslabs.tech/docs/space-works/webhooks-v2/)
- [Device Adapter API v1](https://spaceworkslabs.tech/docs/space-works/device-adapters/)
- [Build an adapter in another repository](https://spaceworkslabs.tech/docs/space-works/device-adapters-build-an-adapter/)
- [Adapter API reference](https://spaceworkslabs.tech/docs/space-works/device-adapters-api/)
- [Adapter authentication](https://spaceworkslabs.tech/docs/space-works/device-adapters-authentication/)
- [Build a shelf-pointer adapter (Raspberry Pi or ESP32)](https://spaceworkslabs.tech/docs/space-works/device-adapters-hardware-shelf-pointer/)
[All docs](https://spaceworkslabs.tech/docs/)

Space Works · Developers

# SpaceWorks API guide

How another system talks to a SpaceWorks deployment: a university ERP, a script, a community calendar, or another makerspace's backend. The interactive reference for every route is on the deployment itself:

| Page | What it is |
| --- | --- |
| `/docs/` | Swagger UI: try calls, press**Authorize**to paste a bearer token |
| `/redoc/` | ReDoc: the same reference, grouped by area |
| `/schema/` | The OpenAPI 3 document (`?format=json`for JSON) |

The precise signing rules are in[`api-client-protocol.md`](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/api-client-protocol.md) ; outbound events are in[`webhooks-v2.md`](https://spaceworkslabs.tech/docs/space-works/webhooks-v2/) .

## Pick a credential

| You are | Use | Acts as |
| --- | --- | --- |
| A backend of your own (ERP, script, sync job) | **API client**(signed server client) | the client, on public routes and the signed integration reads |
| Another space's backend reading your public data | **API client, type "Another space"**(peer) | the client, read-only, your public catalogue, events and stats |
| A person automating their own work | **Personal access token** | that person, within the token's scopes |
| A third-party app people sign in to | **App connection**(OAuth 2.0 / OIDC) | each person who connects it, within the consented scopes |

None of them can do more than its owner may do at that moment.

## API clients

A Space Manager creates one under**Settings -> API access -> New API client**and picks:
- **Who will use it**:Our own system(a server client) orAnother space(a peer client).
- **Scopes**(below). The secret is shown**once**. Rotate it from the client's menu: the old secret keeps working for 24 hours.**Revoke**stops it at once and keeps its history;**Delete**removes it. Every change is audited; the management routes are rate-limited.

A superadmin can do the same for any space, and alone may grant the operator-only scopes.

### Scopes

| Scope | Reaches |
| --- | --- |
| `public:read`,`public:write` | every registered public route of the space (read, or submit) |
| `public:<area>:read`,`public:<area>:write` | the public routes of one area only |
| `events:read`,`participants:read`,`orders:read`,`bookings:read`, ... | the signed integration reads (operator-only; see the protocol) |

Areas:`catalogue`,`events`,`stats`,`bookings`,`pages`,`requests`,`machine_service`,`memberships`,`presence`,`shop`,`donations`,`pricing`,`id_programmes`,`repairs`,`hosting`. The console shows each with its description.

Every route is deliberately either reachable by API clients or not (staff, member, sign-in, provider-webhook and device routes are not); an unregistered route is always refused, whatever the scopes say.

### Space to space

A**peer**client is created by space A for space B's backend. It may hold only`public:catalogue:read`,`public:events:read`and`public:stats:read`, reaches only GET and HEAD, and only space A's own routes. Nothing private crosses tenants: the peer reads exactly what space A's public site already shows.

### Signing a request

Send`X-Client-Id`,`X-Timestamp`(Unix seconds),`X-Nonce`(fresh,`[A-Za-z0-9._~-]`, up to 128) and`X-Signature = hex(HMAC-SHA256(secret, METHOD\nFULL_PATH\nTIMESTAMP\nNONCE\nBODY))`.`FULL_PATH`includes the query string;`BODY`is the raw body (empty for GET).

Python: `import hashlib, hmac, secrets, time, requests def signed(method, base, path, client_id, secret, body=b""): ts, nonce = str(int(time.time())), secrets.token_urlsafe(24) message = b"\n".join([method.encode(), path.encode(), ts.encode(), nonce.encode(), body]) signature = hmac.new(secret.encode(), message, hashlib.sha256).hexdigest() headers = {"X-Client-Id": client_id, "X-Timestamp": ts, "X-Nonce": nonce, "X-Signature": signature} if body: headers["Content-Type"] = "application/json" return requests.request(method, base + path, data=body or None, headers=headers, timeout=10) r = signed("GET", "https://spaces.example.org", "/api/v1/public/lab/inventory/?page=1", CLIENT_ID, SECRET)`

JavaScript (Node 18+): `import { createHmac, randomBytes } from "node:crypto"; async function signed(method, base, path, clientId, secret, body = "") { const ts = String(Math.floor(Date.now() / 1000)); const nonce = randomBytes(18).toString("base64url"); const signature = createHmac("sha256", secret).update([method, path, ts, nonce, body].join("\n")).digest("hex"); return fetch(base + path, { method, body: body || undefined, headers: { "X-Client-Id": clientId, "X-Timestamp": ts, "X-Nonce": nonce, "X-Signature": signature, ...(body ? { "Content-Type": "application/json" } : {}) } }); }`

curl (with`openssl`): `PATH_Q='/api/v1/public/lab/stats/'; TS=$(date +%s); NONCE=$(openssl rand -hex 16) SIG=$(printf 'GET\n%s\n%s\n%s\n' "$PATH_Q" "$TS" "$NONCE" | openssl dgst -sha256 -hmac "$SECRET" -hex | sed 's/^.* //') curl -s "https://spaces.example.org$PATH_Q" -H "X-Client-Id: $CLIENT_ID" -H "X-Timestamp: $TS" \ -H "X-Nonce: $NONCE" -H "X-Signature: $SIG"`

## Personal access tokens

A person creates one at**`/account/api-access`**after a fresh sign-in check (MFA when enrolled): a name, scopes and an expiry (90 days by default, at most a year). The token (`swpat_...`) is shown once and stored only as a digest. Last use is shown; revoke any time.

| Scope | Reaches |
| --- | --- |
| `account:read`,`account:write` | your own member routes (`/api/v1/member/`,`/api/v1/me`, notifications) |
| `public:read`,`public:write`,`public:<area>:*` | the public API, as you |
| `staff:read`,`staff:write` | staff console routes of**one**space where you hold a staff role |

Every request replays your live checks: account state, staff roles, staff MFA (a factor reset ends the token), the space's modules, the view's own permissions. Tokens never reach sign-in, MFA, passkeys, credential and security settings, API clients, backups, superadmin routes or`/control/`.

**Payee and payout money needs an interactive session.**Personal access tokens, OAuth app connections and signed API clients never read what was paid to a person. Payout reports (`prizes-owed`,`event-finance`, any report with a payout column), the event finance view and the reimbursement routes answer`403 {"code": "full_session_required"}`. Finance summaries and the linked event-finance view answer without the`payouts`,`money_out`,`net`and`budget_left`fields. Other reports still follow the staff role's area: a token only reads the reports its holder's role manages. `curl -s https://spaces.example.org/api/v1/member/makerspaces/7/activity -H "Authorization: Bearer $SWPAT"` `requests.get(f"{BASE}/api/v1/member/makerspaces/7/activity", headers={"Authorization": f"Bearer {token}"})` `await fetch(`${BASE}/api/v1/member/makerspaces/7/activity`, { headers: { Authorization: `Bearer ${token}` } });`

## App connections (OAuth 2.0 / OIDC)

A Space Manager (or the superadmin) registers the app under**API access -> App connections**: name, redirect URIs (`https://`), type (has a server: confidential, with a client secret shown once;phone or browser: public, PKCE only) and the scopes it may ask for (the personal-token vocabulary above; staff scopes apply to the registering space).

The flow is authorization code with**PKCE (S256, required)**:
- Send the person's browser to`/api/v1/oauth/authorize/?response_type=code&client_id=...&redirect_uri=...&scope=account:read&state=...&code_challenge=...&code_challenge_method=S256`. They see the consent screen (app, space, scopes) and allow after a fresh sign-in check.
- Exchange the code at`POST /api/v1/oauth/token/`(`grant_type=authorization_code`,`code`,`redirect_uri`,`client_id`,`code_verifier`, and the secret for confidential apps).
- Call the API with`Authorization: Bearer swoa_...`(1 hour). Refresh with`grant_type=refresh_token`; each refresh returns a**new**refresh token and a reused one ends the whole chain. Revoke with`POST /api/v1/oauth/revoke/`.
 `r = requests.post(f"{BASE}/api/v1/oauth/token/", data={ "grant_type": "authorization_code", "code": code, "redirect_uri": REDIRECT, "client_id": CLIENT_ID, "client_secret": CLIENT_SECRET, "code_verifier": verifier}, timeout=10) access, refresh = r.json()["access_token"], r.json()["refresh_token"]` `curl -s -X POST https://spaces.example.org/api/v1/oauth/token/ -d grant_type=refresh_token \ -d refresh_token="$REFRESH" -d client_id="$CLIENT_ID" -d client_secret="$CLIENT_SECRET"` `const body = new URLSearchParams({ grant_type: "authorization_code", code, redirect_uri, client_id, code_verifier }); const tokens = await (await fetch(`${BASE}/api/v1/oauth/token/`, { method: "POST", body })).json();`

With`OAUTH_OIDC_RSA_PRIVATE_KEY`configured the deployment is also an OpenID Provider (`/api/v1/oauth/.well-known/openid-configuration`,`jwks.json`,`userinfo/`; ask for`openid`). People see and disconnect their apps at`/account/api-access`; deleting or switching off an app ends every connection to it.

## Pagination

Lists answer`{"count", "next", "previous", "results"}`with 24 rows a page (`?page=2`). Signed integration reads use`{"next_cursor", "results"}`: pass`?cursor=`back unchanged (`page_size`1-200).

## Errors

`{"detail": "...", "code": "..."}`with the HTTP status; validation errors map each field to its messages. API-client credential failures are a uniform`401 {"detail": "Invalid client signature."}`.`423`means the space is frozen for a migration;`503`a dependency is down.

## Rate limits

`429`with`Retry-After`. Signed clients are limited per client by tier (public 30/min, standard 120/min, trusted 600/min by default); tokens and app connections per credential (120/min); credential management and consent per person.

## Webhooks

SpaceWorks can call your HTTPS endpoint on events (bookings, events, requests, payments...), signed`X-SpaceWorks-Signature: t=...,v1=...`. Version 2 envelopes are described in[`webhooks-v2.md`](https://spaceworkslabs.tech/docs/space-works/webhooks-v2/) ; version 1 and verification code are in[`api-client-protocol.md`](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/api-client-protocol.md#outbound-webhooks) .

## Versioning

Everything is under`/api/v1/`.`/api/public/`is the frozen pre-v1 alias of the public catalogue. Additive changes (new fields, routes, scopes) land in v1; a breaking change gets a new prefix, with the old one kept for at least one release. The schema at`/schema/`always matches the running version.

From[SpaceWorks/docs/api-guide.md](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/api-guide.md) at c447a11, updated 2026-11-16.[Suggest a change](https://github.com/SpaceWorks-Labs/SpaceWorks/edit/dev/docs/api-guide.md)  [PreviousRun your space on your own domain or frontend](https://spaceworkslabs.tech/docs/space-works/own-domain-and-frontend/) [NextSigned webhook v2](https://spaceworkslabs.tech/docs/space-works/webhooks-v2/)

On this page
- [Pick a credential](#pick-a-credential)
- [API clients](#api-clients)
- [Scopes](#scopes)
- [Space to space](#space-to-space)
- [Signing a request](#signing-a-request)
- [Personal access tokens](#personal-access-tokens)
- [App connections (OAuth 2.0 / OIDC)](#app-connections-oauth-20-oidc)
- [Pagination](#pagination)
- [Errors](#errors)
- [Rate limits](#rate-limits)
- [Webhooks](#webhooks)
- [Versioning](#versioning)
