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"
import requests
import json
url = "https://wm.novoai.de/v2/machine?all=true"
headers = {
"Content-Type": "application/json",
"accept": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN (JWT)",
"X-API-KEY": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://wm.novoai.de/v2/machine?all=true", {
method: "GET",
headers: {
"Content-Type": "application/json",
"accept": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN (JWT)",
"X-API-KEY": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://wm.novoai.de/v2/machine?all=true", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("accept", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN (JWT)")
req.Header.Set("X-API-KEY", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://wm.novoai.de/v2/machine?all=true')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['accept'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN (JWT)'
request['X-API-KEY'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"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"
}
}
]
}
{
"status": 0,
"message": "No machines found."
}
{
"status": 0,
"message": "An unexpected error occurred."
}
/v2/machine
Target server for requests. Edit to use your own host.
JWT Bearer token authentication. Include in the Authorization header as Bearer <token>.
Bearer <token>.API-Access Key authentication. Include the generated key in the X-API-KEY header.
X-API-KEY header.If set to true, includes inactive machines in the response.
Must be application/json.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token (JWT). JWT Bearer token authentication. Include in the Authorization header as Bearer \<token\>.
API Key for authentication. API-Access Key authentication. Include the generated key in the X-API-KEY header.
Query Parameters
Headers
Responses
Indicates the success of the request. 1 for success, 0 for failure.
A list of machines associated with the company.