aYOUne
← Configuration API

Terminals

Singular: Terminal — 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": {
    "loc": {
      "coordinates": []
    },
    "config": {
      "autoDimMinutes": 10,
      "enableNFC": true,
      "enableSounds": true,
      "enableWedge": true,
      "screensaverMinutes": 30
    },
    "_id": "6a35ec301ab613e8ec5857f2",
    "serial": "10000000dcb55882",
    "_machines": [],
    "createdAt": "2026-06-20T01:26:08.827Z",
    "createdBy": "5a76d07e2d8b3270ff6df587",
    "kind": "production",
    "lastSignal": "2026-06-20T03:03:42.218Z",
    "modifiedBy": "5a76d07e2d8b3270ff6df587",
    "online": true,
    "updatedAt": "2026-06-20T04:45:50.161Z",
    "role": "production"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/terminals/6a35ec301ab613e8ec5857f2",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "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": "DashBoards",
        "title": "MODEL_DASHBOARD",
        "href": "https://api.ayoune.app/pm/dashboards",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pm.dashboards"
      }
    ],
    "debugId": "6a62df4ef27d6098834b31a1",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_TERMINAL",
        "href": "https://api.ayoune.app/config/terminals/6a35ec301ab613e8ec5857f2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_TERMINAL",
        "href": "https://api.ayoune.app/config/terminals/6a35ec301ab613e8ec5857f2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.95.0",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "7",
      "reset": "1784865648",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 118.439743,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also