---
title: Adapter API reference | Space Works docs
description: Every Device Adapter API v1 route with its request and response JSON. Adapter API reference in the Space Works documentation: developers.
url: https://spaceworkslabs.tech/docs/space-works/device-adapters-api/
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

# Adapter API reference

Base path:`/api/v1/device/adapter/v1/`. All routes are signed ([authentication](https://spaceworkslabs.tech/docs/space-works/device-adapters-authentication/) ), JSON, and validated against the schemas in[`schemas/`](https://github.com/SpaceWorks-Labs/SpaceWorks/tree/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/device-adapters/schemas) (the same dicts the server uses). Errors are`{"detail": "...", "code": "..."}`; see[errors.md](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/device-adapters/errors.md) .

## `POST hello` `{ "protocol_version": 1, "adapter_kind": "fdm_printer", "vendor": "acme", "software_version": "1.4.2", "capabilities": [{ "name": "status", "version": 1 }, { "name": "control", "version": 1 }] }`

Response`200`: `{ "device_id": "...", "protocol_version": 1, "server_time": 1760000000, "config_version": 3, "poll_seconds": 15, "capabilities": [{ "name": "status", "version": 1 }], "unknown_capabilities": [], "bindings": [{ "id": "...", "target_type": "machine", "machine_id": 12, "target_id": "", "external_ref": "printer-a", "capabilities": ["control", "events"] }] }`

`adapter_kind`is one of`fdm_printer resin_printer laser cnc generic shelf_pointer label_printer scanner door sensor kiosk`. Unknown capability names are returned in`unknown_capabilities`, never fatal.`config_version`rises when staff bind or unbind a target; re-read`GET bindings`when it changes.

## `GET bindings`

`{ "bindings": [ ...as in hello... ] }`

## `POST status` `{ "items": [{ "binding_id": "...", "observed_at": 1760000000, "state": "running", "progress_percent": 40, "power": "on", "busy": true, "error_codes": ["filament_runout"] }] }`

`state`:`idle preparing running paused finished failed error offline maintenance`(`running`= busy/active). Response:`{"results": [{"binding_id": "...", "result": "stored|stale|throttled|unknown_binding"}], "config_version": 3, "server_time": ...}`. A report not newer than the stored one is`stale`; more than one per binding per 5 s is`throttled`. Status is advisory: it never changes`Machine.status`.

## `POST events` `{ "events": [{ "operation_id": "<uuid>", "binding_id": "<uuid>", "type": "maintenance.fault", "observed_at": 1760000000, "data": { "code": "hotend_clog", "severity": "fault", "detail": "..." } }] }`

Up to 50 per call. Idempotent by`operation_id`(`{"result": "stored|duplicate"}`). The type must belong to a capability the adapter declared (else`event_not_declared`) and, with a`binding_id`, to one that binding serves. Server reactions:`maintenance.fault`is written to the machine's technical-fault log;`safety.area_cleared`records the area-clear confirmation the access decision enforces; the rest are stored for staff.

## `POST commands/lease`and`POST commands/{id}/ack`

Lease returns`{"command": null}`or `{ "command": { "command_id": "...", "binding_id": "...", "capability": "control", "command": "pause", "params": {}, "lease_token": "...", "lease_expires_at": 1760000300 } }`

Ack:`{"lease_token": "...", "outcome": "succeeded|failed", "result_code": "ok"}`. At-least-once: an unacknowledged lease expires and the command returns to the queue (bounded attempts, a TTL of ten minutes). A re-ack is idempotent. Every lease is audited as`devices.adapter_command_leased`(binding, command, capability, command name and attempt; never the token or the params), next to`adapter_command_queued`(who asked) and`adapter_command_acked`. A command whose capability's child switch went off after it was queued is never leased (it fails with`capability_switched_off`). Commands:`control`(`pause resume cancel power`),`door.access`(`unlock`),`locate.indicate`(`indicate`),`locate.calibrate`(`aim jog`),`media.snapshot`(`snapshot`),`label.print`(`print`),`diagnostics`(`log_bundle`),`job.dispatch`(`cancel_job`). Params match`schemas/command.*.json`.

## `POST access/authorize`(child switch`machines.integrations.access`) `{ "binding_id": "...", "credential": { "type": "card_qr|nfc|pin", "value": "...", "member_number": "123", "pin": "..." } }`

Response`200`:`{"allowed": true, "decision": "allowed", "reason": "ok", "max_seconds": 14400}`or`{"allowed": false, "decision": "denied", "reason": "no_machine_access"}`.

Credentials (identification is not authentication): -`nfc`:`value`is the tag id. -`pin`:`value`is the PIN and`member_number`the number printed on the member card. -`card_qr`:`value`is the member card's desk QR (32 hex characters) and`pin`the member's PIN. A card QR alone is refused with`pin_required`(prompt for the PIN and retry). A public card check link (`/verify/c/...`) or its bare token is never accepted: it is printed for anyone to verify a card, so it proves nothing about who holds it.

Every member-level failure (unknown tag, card or member number, no PIN set, wrong PIN, a locked or disabled credential) answers the same`unknown_credential`, so a keypad cannot learn who has a PIN. Five wrong PINs in a row still lock that member's PIN for 15 minutes (silently). Each binding (10) and each space (30) also has a budget of failed PIN and card-QR attempts per 15 minutes; when it runs out, PIN and card-QR attempts there answer`too_many_attempts`for a cooldown that doubles each time it trips within a day (5 minutes up to 24 hours), even for a correct PIN. NFC is not budgeted. Reasons:`access.response.json`(`unknown_credential pin_required too_many_attempts member_restricted membership_required waiver_acceptance_required presence_required no_machine_access machine_access_expired machine_unavailable machine_in_use session_already_live booking_required booked_by_other maintenance_lockout area_not_clear filter_alert internal_error_fail_closed ...`). The decision is the existing session rules (machine; a space manager's machine-access grant; certifications no longer matter) or active, unrestricted membership (door/space). A denial never changes a running session; any unexpected error is a denial (`internal_error_fail_closed`). Every decision is an append-only log row and an audit row.

Bridges that map our reasons onto another system's refusal vocabulary (a Fabman-style bridge, for example) should map`no_machine_access`to "member not authorised for this resource" and`machine_access_expired`to "authorisation expired"; both are fixed by the space manager's grant, so the bridge shows "ask a space manager", not "get trained".

## `POST sessions/start`and`POST sessions/{id}/stop`

Start takes the same body as authorize and, when allowed, starts a machine session (source`device`) through the machine-session service:`{"allowed": true, "session_id": 77, "max_seconds": 14400}`(denials as authorize). It needs`machines.sessions`on. Stop:`{"reason": "member|device|idle", "active_minutes": 20, "idle_minutes": 2}`and only for a session this adapter started; the usage entry and any charge are raised by the session service (charge-tracking ledger).

## `POST usage`(child switch`machines.integrations.usage_billing`)

An immutable usage record (`schemas/usage.log.json`), idempotent by`operation_id`:`{"result": "stored|duplicate"}`.

## Staff routes (`/api/v1/admin/`, MANAGE_DEVICES, machine scope)

These routes power the console's adapter area. In short: enroll through the device routes with`kind: "adapter"`;`GET makerspace/{id}/adapters`,`GET adapters/{id}`,`POST adapters/{id}/bindings`,`DELETE adapter-bindings/{id}`,`POST adapter-bindings/{id}/commands`,`GET adapters/{id}/commands|events`; poses, aim, jog, indicate and position for shelf pointers; credentials; camera watch sessions.

### Console read-back and log lists
- `AdapterSummary`also carries`online: bool`(active, seen at least once, no open offline edge) and`offline_since: datetime|null`(null when online; for a never-seen adapter`online`is false and`offline_since`null). Each summary binding and every`Binding`response carries`config`(the binding's OWN overrides,`{}`if none) and`effective_config`(`{key: {"value": ..., "source": "type"|"binding"}}`:`type`= follows the machine-type profile,`binding`= overridden). Keys:`auto_off_idle_minutes, require_area_clear, max_session_minutes, require_filter_ok`(type or binding) and`auto_apply_terminal`(binding only, audited as`devices.adapter_auto_apply_set`).
- `PUT adapter-bindings/{id}/config`accepts all five keys and answers`200 {id, config, effective_config}`; an unknown key is 400.
- `GET adapters/{id}/access-decisions`-> DRF page`{count, next, previous, results: [{id, binding|null, member|null (user id only), credential_type, allowed, reason, session_id|null, created_at}]}`, newest first (page size 24,`?page=`). Filters:`binding`(uuid),`allowed`(true|false),`reason`,`credential_type`,`since`,`until`(ISO 8601 on`created_at`).
- `GET adapters/{id}/usage`-> DRF page of`{id, binding|null, operation_id, session_id|null, started_at, ended_at, active_minutes, idle_minutes, outcome, error_code, consumptions, created_at}`; filters`binding`,`outcome`,`since`,`until`.
- `GET adapter-bindings/{id}/jobs`(same path as the POST dispatch) -> DRF page of`{id, service_request_id, service_request_name, machine_name, state (awaiting|reported|applied|needs_review|cancelled), telemetry_state, progress_percent, telemetry_at, outcome, actual_minutes, percent_complete, failure_reason, reported_at, applied_at, created_at, command_status, command_attempts, command_error}`; filter`state`. Empty for a non-machine binding.
- All three need the`machines.integrations`switch, MANAGE_DEVICES in the space (machine scope for a binding), are 404 across tenants, and never return credential digests, PINs or member contact details.

### Paged lists

Every list marked "DRF page" above, plus`admin/adapter-bindings/{id}/artifacts`,`admin/adapter-bindings/{id}/detections`, the job owner's`member/adapter-artifacts/requests/{id}`and`member/adapter-detections/requests/{id}`lists and the shelf-check history (`GET admin/makerspace/{id}/shelf-checks`), answers the standard DRF page`{count, next, previous, results}`(page size 24 unless noted,`?page=`), not a bare array. The OpenAPI document describes each as that envelope (`AdapterAccessDecisionPage`,`AdapterUsageRecordPage`,`AdapterBindingJobPage`,`AdapterArtifactPage`,`AdapterDetectionPage`,`MemberAdapterArtifactPage`,`MemberAdapterDetectionPage`,`ShelfCheckPage`). The unpaged lists (`adapters`, poses, credentials, config history, shelf locations) stay plain.

## Jobs (`job.dispatch`,`file.fetch`)

`POST jobs/lease`->`{"job": null | {job_id, lease_token, lease_expires_at, binding_id, machine_id, service_request_id, has_files}}`;`POST jobs/{id}/ack`(`schemas/job.ack.json`);`POST jobs/{id}/progress`(`job.progress.json`);`POST jobs/{id}/report`(`job.report.json`, idempotent by`operation_id`, a different replay is 409; optional`profile_consumptions` `[{key, quantity, attributes?}]`reports measured use by the machine type's consumable-profile key, e.g.`filament`in grams,`sheet`in sheets,`thread`in 1,000 stitches; see[machine consumables](https://spaceworkslabs.tech/docs/space-works/how-to-machine-consumables/) );`GET jobs/{id}/file`->`{files: [{file_id, name, content_type, size_bytes, kind, url}]}`(short-lived signed URLs, only while the job is acknowledged). Staff:`POST admin/adapter-bindings/{id}/jobs {service_request_id}`;`PUT admin/adapter-bindings/{id}/config`(`auto_off_idle_minutes`,`require_area_clear`,`max_session_minutes`, enforced by the server).

## Kiosk (`checkout.kiosk`, child switch`machines.integrations.kiosk`)

`POST kiosk/sessions`,`POST kiosk/sessions/{sid}/scan|evidence|issue|return`,`DELETE kiosk/sessions/{sid}`; schemas`kiosk.*.json`. The credential follows the same rules as`access/authorize`(a card QR needs the member's`pin`). A denied credential answers 201 with`allowed: false`and a reason; a member the self-checkout workflow refuses (not a personal account, no current term, a guest pass that cannot borrow) gets that typed`4xx`, and the attempt is still written to the access log. Every later call without a live session for this device is 404. The`evidence`call's`size_bytes`is at most 10 MiB (`schemas/kiosk.evidence.json`, the default`EVIDENCE_MAX_BYTES`, the same ceiling the presign enforces); a deployment that lowers the cap refuses a larger declared size with`413 artifact_too_large`.

## Media (`media.stream`,`media.snapshot`, child switch`machines.integrations.video`)

`GET|POST media/{watch}/signal`(schema`media.signal.json`; GET takes`?after=`and returns`ice_servers`),`POST media/{watch}/snapshot`(`media.frame.json`),`POST media/{watch}/recording`(`media.recording.json`; needs`machines.integrations.recording`and a watch opened with`record: true`). Viewer routes are under`member/adapter-watch/`.

## Media and data

Audio, two-way talk, artifacts, detections, telemetry history, diagnostics, the offline access cache, remote config and signed time are specified in[media-and-data.md](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/device-adapters/media-and-data.md) .

## Notifications

Needs attention, material runout, detections, session ending soon (member) and access denied (staff) go through the notification catalogue (feature`devices`:`adapter_attention`,`adapter_runout`,`adapter_detection`,`adapter_session_ending`,`adapter_access_denied`). A terminal job report that waits for staff review (every failed report, and every report while`auto_apply_terminal`is off) tells staff once per job (`adapter_job_review`); the member hears the outcome through the machine-service notices (`printing` `completed`/`failed`) when staff apply it. Offline/recovered use the device state edges (a`status`call counts as liveness); maintenance due is the maintenance schedule's. The full event list is in[notifications](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/architecture/notifications.md) .

## Webhook push (optional)

Staff:`PUT admin/adapters/{id}/webhook {url, include_data}`(public https only, port 443 or 8443; the secret`whsec_...`is returned ONCE, on creation),`POST .../webhook/rotate`(new secret, shown once; the old one stops verifying),`GET .../webhook`,`DELETE .../webhook`,`GET .../webhook/deliveries`(the delivery log). A push is a wake-up (`command.queued`,`job.queued`,`config.changed`,`ping`; schema`webhook.envelope.json`), content-free unless`include_data`adds the capability and command names; the work is still leased over the signed API. Verify`X-SpaceWorks-Signature: t=<unix>,v1=<hex>`where`v1`is HMAC-SHA256 of`"<t>.<raw body>"`with the secret, and reject a`t`older than five minutes. Failed pushes retry with backoff (30 s, 2 min, 10 min, 30 min, 1 h; six tries), and the endpoint disables itself after ten consecutive failed attempts (re-saving it re-enables it). Each attempt claims the delivery under a 60-second lease, sends with a 5-second timeout and no redirects, then records the result, so the same delivery is never sent twice at once; after a crash the lease expires and the push is retried, which is why receivers should deduplicate on`X-SpaceWorks-Delivery`. A space with adapters switched off sends nothing; its pushes wait and resume when it is switched back on. Each push resolves the host name once, refuses it if any answer is not a public address, connects to that exact address (TLS still checks the certificate against the name), reads at most 4 KiB of your reply and gives up after five seconds in total. The delivery log says only delivered or failed (`last_error`=`delivery_failed`, or`url_refused`when the name stopped resolving to a public address); it never shows the status code or network error of a failed attempt.

## Safety config and type profiles

`PUT admin/makerspace/{id}/machine-types/{type}/adapter-profile`sets defaults for every adapter binding on machines of that type (`schemas/safety.profile.json`:`auto_off_idle_minutes`,`require_area_clear`,`max_session_minutes`,`require_filter_ok`).`PUT admin/adapter-bindings/{id}/config`overrides any key for one binding and is the only place`auto_apply_terminal`lives (`schemas/safety.config.json`): off by default, so every terminal report waits for staff; on, a clean (completed) report goes straight through the workflow, and a failed one still goes to review. The setting is audited. The sweep warns the member five minutes before`max_session_minutes`, then ends the session through the session service (stop reason`max_length`) and queues`control power off`, exactly like idle auto-off. The sweep also runs in a read-only space (it only powers a machine off or ends a session, which protects people); a paused space runs nothing.

## Shelf pointer poses and caps

Poses are validated by kind when saved (`schemas/pose.pan_tilt.json`,`pose.led_segment.json`,`pose.galvo_xy.json`; a pose with no`kind`stays free-form, an unknown`kind`is`invalid_pose`). A binding's own config may set`laser_max_power_pct`(1..100) and`max_on_seconds`(1..600); the server clamps every`indicate`and`aim`to them and`clear`is never capped. See[hardware/shelf-pointer.md](https://spaceworkslabs.tech/docs/space-works/device-adapters-hardware-shelf-pointer/) .

## Kiosk shelf light

When a kiosk scan finds a tool with a calibrated pose on a bound pointer, the server queues`locate.indicate`itself; the scan response only says`"indicated": true|false`(poses and locations never leave the server).

## Not in this release

The usage-billing rate model.

From[SpaceWorks/docs/device-adapters/api.md](https://github.com/SpaceWorks-Labs/SpaceWorks/blob/c447a11e657ba3979b594cf855dbb7aa5195412d/docs/device-adapters/api.md) at c447a11, updated 2026-11-16.[Suggest a change](https://github.com/SpaceWorks-Labs/SpaceWorks/edit/dev/docs/device-adapters/api.md)  [PreviousBuild an adapter in another repository](https://spaceworkslabs.tech/docs/space-works/device-adapters-build-an-adapter/) [NextAdapter authentication](https://spaceworkslabs.tech/docs/space-works/device-adapters-authentication/)

On this page
- [POST hello](#post-hello)
- [GET bindings](#get-bindings)
- [POST status](#post-status)
- [POST events](#post-events)
- [POST commands/lease and POST commands/{id}/ack](#post-commandslease-and-post-commandsidack)
- [POST access/authorize (child switch machines.integrations.access)](#post-accessauthorize-child-switch-machinesintegrationsaccess)
- [POST sessions/start and POST sessions/{id}/stop](#post-sessionsstart-and-post-sessionsidstop)
- [POST usage (child switch machines.integrations.usage_billing)](#post-usage-child-switch-machinesintegrationsusage_billing)
- [Staff routes (/api/v1/admin/, MANAGE_DEVICES, machine scope)](#staff-routes-apiv1admin-manage_devices-machine-scope)
- [Console read-back and log lists](#console-read-back-and-log-lists)
- [Paged lists](#paged-lists)
- [Jobs (job.dispatch, file.fetch)](#jobs-jobdispatch-filefetch)
- [Kiosk (checkout.kiosk, child switch machines.integrations.kiosk)](#kiosk-checkoutkiosk-child-switch-machinesintegrationskiosk)
- [Media (media.stream, media.snapshot, child switch machines.integrations.video)](#media-mediastream-mediasnapshot-child-switch-machinesintegrationsvideo)
- [Media and data](#media-and-data)
- [Notifications](#notifications)
- [Webhook push (optional)](#webhook-push-optional)
- [Safety config and type profiles](#safety-config-and-type-profiles)
- [Shelf pointer poses and caps](#shelf-pointer-poses-and-caps)
- [Kiosk shelf light](#kiosk-shelf-light)
- [Not in this release](#not-in-this-release)
