Devices API

Manage and monitor all connected devices

Devices

Manage and monitor all connected devices in your LEXOH system. The Devices API allows you to list, create, update, and delete device registrations.

GET /api/v1/devices

List all devices registered in your account with their current status and configuration.

Request Example

⎘ Copy
curl -X GET "https://api.lexoh.com/v1/devices" \
                            -H "Authorization: Bearer YOUR_API_KEY"

Response Example

{
  "devices": [
    {
      "id": "dev_123456",
      "name": "Gate Controller 1",
      "type": "access_control",
      "location": "Main Entrance",
      "status": "online",
      "created_at": "2024-01-15T10:30:00Z"
    }
  ],
  "total": 1
}
POST /api/v1/devices

Register a new device in your LEXOH system.

Request Example

⎘ Copy
curl -X POST "https://api.lexoh.com/v1/devices" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Gate Controller 1",
    "type": "access_control",
    "location": "Main Entrance",
    "serial_number": "GC-2024-001"
  }'

Parameters

Parameter Type Required Description
name string Yes Device name
type string Yes Device type
location string No Physical location
serial_number string No Device serial number
GET /api/v1/devices/{id}

Retrieve detailed information about a specific device.

DELETE /api/v1/devices/{id}

Remove a device from the system.

Next: Access Control

Learn how to manage access permissions and entry points

Continue to Access Control →