Get list connected devices

GET /app/devices

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code string
    • message string
    • results array[object]
      Hide results attributes Show results attributes object
      • name string
      • device string
  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • code string

      SYSTEM_CODE_ERROR

    • message string

      Detail error message

    • results object

      additional data

GET /app/devices
curl \
 --request GET 'http://localhost:3000/app/devices' \
 --user "username:password"
Response examples (200)
{
  "code": "SUCCESS",
  "message": "Fetch device success",
  "results": [
    {
      "name": "Aldino Kemal",
      "device": "628960561XXX.0:64@s.whatsapp.net"
    }
  ]
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "you are not loggin",
  "results": {}
}