Skip to content
Lexoh API

Devices API

OpenAPI JSON

Read device data and use authorized operations

Device operations use the singular /v1/device route family. Use the API session and the permissions assigned to the account.

POST /v1/device/list

List devices

Required permissions

  • can_view_devices

Authentication, MFA and resource-scope restrictions still apply.

Requires can_view_devices. Send filters and pagination in the JSON body. The response contains success, devices and count. Non-empty results also include next_cursor.

JSON request body

ParameterTypeDescription
pageintegerPage number; default 1.
page_limitintegerResults per page; default 25.
searchstringOptional search text.
cursor_idintegerUse next_cursor to retrieve the following, older batch.

Request Example

curl -X POST "https://your-lexoh-server.app.lexoh.com:3000/v1/device/list" \
  -H "SessionID: SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"page":1,"page_limit":25}'

Response Example

Example with no matching devices.

{
  "success": true,
  "devices": [],
  "count": 0
}

POST /v1/device

Retrieve one device

Required permissions

  • can_view_devices

Authentication, MFA and resource-scope restrictions still apply.

Send the numeric device id in the JSON body. A successful response contains success and device.

JSON request body

ParameterTypeDescription
idintegerDevice identifier; replace the example value.

Request Example

curl -X POST "https://your-lexoh-server.app.lexoh.com:3000/v1/device" \
  -H "SessionID: SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"id":123}'

Configuration and lane operations

  • PUT /v1/device creates a device and requires can_add_devices.
  • PATCH /v1/device/config updates device configuration and requires can_edit_devices.
  • POST /v1/device/open and /v1/device/close send lane commands with an id in the JSON body and require can_control_devices. A successful API response records the command; it does not prove physical gate movement.

Work with access records

Retrieve credentials and the access records associated with the site.

Access Control API →
Call Lexoh 1-888-401-8019