MachinesRetrieve all machines

Retrieve all machines

Retrieves all machines associated with the authenticated user's company. The user must have the necessary permissions to access the machines. An optional query parameter can be used to include inactive machines.

curl -X GET "https://wm.novoai.de/v2/machine?all=true" \
  -H "Content-Type: application/json" \
  -H "accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-KEY: YOUR_API_KEY"
{
  "status": 1,
  "machine_list": [
    {
      "id": 1,
      "name": "Machine A",
      "public_id": "MACH-001",
      "description": "High precision lathe",
      "current": 5.2,
      "voltage": 220,
      "meta_frontend": {},
      "meta_backend": {},
      "active": true,
      "ratings": 4.5,
      "created_at": "2025-02-25",
      "hall": {
        "id": 1,
        "name": "Main Hall"
      },
      "tag_list": [
        {
          "id": 11,
          "name": "Tag1"
        }
      ],
      "ava": [
        {
          "id": 21,
          "name": "AVA1",
          "mac_id": "MAC123",
          "priority": 1
        }
      ],
      "shift_group": {
        "id": 31,
        "name": "Day Shift"
      }
    }
  ]
}
GET
/v2/machine
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT Bearer token authentication. Include in the Authorization header as Bearer <token>.

JWT Bearer token authentication. Include in the Authorization header as Bearer <token>.
API Key (header: X-API-KEY)
X-API-KEYstring
Required

API-Access Key authentication. Include the generated key in the X-API-KEY header.

API-Access Key authentication. Include the generated key in the X-API-KEY header.
query
allboolean

If set to true, includes inactive machines in the response.

header
acceptstring
Required

Must be application/json.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT Bearer token authentication. Include in the Authorization header as Bearer \<token\>.

header
X-API-KEYstring
Required

API Key for authentication. API-Access Key authentication. Include the generated key in the X-API-KEY header.

Query Parameters

allboolean

If set to true, includes inactive machines in the response.

Example:
true

Headers

acceptstring
Required

Must be application/json.

Example:
application/json

Responses

statusinteger
Required

Indicates the success of the request. 1 for success, 0 for failure.

machine_listarray
Required

A list of machines associated with the company.