aYOUne
← Configuration API

IoTDevices

Singular: IoTDevice — Base URL: https://config-api.ayoune.app — Access: CRUD

play_circle Try it now beta

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": {
    "device": {
      "stats": {
        "netstat": [],
        "inOut": []
      },
      "maintenanceForecast": {
        "reasons": []
      },
      "factoryTestResults": [],
      "_id": "6a618cca31196b877e84fb13",
      "active": true,
      "capabilities": [],
      "status": "offline",
      "createdBy": "6045f4d25704710012485569",
      "last_active": "2026-07-23T03:38:50.726Z",
      "values": [],
      "createdAt": "2026-07-23T03:38:50.727Z",
      "updatedAt": "2026-07-23T03:44:25.672Z",
      "offlineSince": "2026-07-23T03:44:25.672Z"
    },
    "history": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://iot.ayoune.app/iotdevices/6a618cca31196b877e84fb13",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "CompanyLocations",
        "title": "MODEL_COMPANYLOCATION",
        "href": "https://api.ayoune.app/config/companylocations",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.companylocations"
      },
      {
        "rel": "Departments",
        "title": "MODEL_DEPARTMENT",
        "href": "https://api.ayoune.app/config/departments",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.departments"
      },
      {
        "rel": "WorkCenters",
        "title": "MODEL_WORKCENTER",
        "href": "https://api.ayoune.app/production/workcenters",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "production.workcenters"
      },
      {
        "rel": "Machines",
        "title": "MODEL_MACHINE",
        "href": "https://api.ayoune.app/config/machines",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.machines"
      },
      {
        "rel": "WallBoards",
        "title": "MODEL_WALLBOARD",
        "href": "https://api.ayoune.app/pm/wallboards",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pm.wallboards"
      },
      {
        "rel": "IoTDeviceBlueprints",
        "title": "MODEL_IOTDEVICEBLUEPRINT",
        "href": "https://api.ayoune.app/iot/iotdeviceblueprints",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "iot.iotdeviceblueprints"
      }
    ],
    "debugId": "6a62e064791639755462418e",
    "errors": [],
    "actions": [],
    "version": {
      "host": "2026.35.1",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2497",
      "reset": "1784868468",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 197.284829,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /iotdevices List with filters/pagination config.iotdevices.view
GET /iotdevices/:id Single record config.iotdevices.view
POST /iotdevices Create new record config.iotdevices.new
PUT /iotdevices Update record config.iotdevices.edit
DELETE /iotdevices/:id Delete record config.iotdevices.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.config.ioTDevices.find().limit(10).exec();

// Single record
const one = await ay.config.ioTDevices.findById('OBJECT_ID').exec();

// Create
const created = await ay.config.ioTDevices.create({ name: 'Foo' });

See also