← iot API
Printers
Singular: Printer — Base URL: https://iot.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"payload": {
"_id": "6a62e19379163975546242eb",
"active": true,
"name": "IMPORTANT_TOMATO_CHEWBACCA",
"isThermal": false,
"paired": false,
"status": "ok",
"isDraft": true,
"createdBy": "6045f4d25704710012485569",
"createdAt": "2026-07-24T03:52:51.615Z",
"updatedAt": "2026-08-07T04:09:20.092Z",
"modifiedBy": "6045f4d25704710012485569"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://iot.ayoune.app/printers/6a62e19379163975546242eb",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6a8fb40faf5889cf52f042c3",
"errors": [],
"actions": [],
"version": {
"host": "2026.39.0",
"core": "2026.298.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2480",
"reset": "1787806235",
"resetDate": "Thu Aug 27 2026"
},
"responseTime": 163.522336,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /printers |
List with filters/pagination | iot.printers.view |
| GET | /printers/:id |
Single record | iot.printers.view |
| POST | /printers |
Create new record | iot.printers.new |
| PUT | /printers |
Update record | iot.printers.edit |
| DELETE | /printers/:id |
Delete record | iot.printers.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.iot.printers.find().limit(10).exec();
// Single record
const one = await ay.iot.printers.findById('OBJECT_ID').exec();
// Create
const created = await ay.iot.printers.create({ name: 'Foo' });