v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
Devices

Get devices list

This endpoint makes an HTTP GET request to retrieve a list of devices from the server.

Response

The response will have a status code of 200 and a content type of application/json. The response body will contain an array of "devices" where each device object includes the following properties:

  • id (string): The unique identifier of the device.

  • name (string): The name of the device.

  • extension (string): The extension of the device.

  • password (string): The password of the device.

  • created_at (string): The timestamp indicating when the device was created.

  • updated_at (string): The timestamp indicating when the device was last updated.

  • login_user_id (string or null): The ID of the user who last logged into the device, or null if no user has logged in.

  • last_login (string or null): The timestamp indicating the last login time, or null if the device has not been logged into.

get/devices

Response

Success

Example response

{
  "devices": [
    {
      "created_at": "2023-06-01 11:08:40",
      "id": "1",
      "last_login": null,
      "login_user_id": "0",
      "name": "100",
      "updated_at": null
    }
  ]
}