v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
Devices

Create Device

Create Device

This endpoint allows you to create a new device.

Request Body

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

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

Response

Upon successful creation, the response will include an array of devices, each containing the following details:

  • 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 date and time when the device was created.

  • updated_at (string, nullable): The date and time when the device was last updated.

  • login_user_id (string): The unique identifier of the user who last logged in to the device.

  • last_login (string, nullable): The date and time of the last login to the device.

post/devices

Request body

extensionstring
namestring

Example request

{
  "extension": "dasdasdasdd",
  "name": "aaa"
}

Response

Success

Example response

{
  "devices": [
    {
      "created_at": "2023-06-06 10:46:08",
      "extension": "108",
      "id": "9",
      "last_login": null,
      "login_user_id": "0",
      "name": "aaa",
      "password": "6d37bbbe6bd361187c3a044db689e4d0",
      "updated_at": null
    }
  ]
}