Get Device Information

Restriction: This API endpoint is not supported in the public cloud.
Restriction: This API endpoint is not supported in the Free Trial cloud.

Retrieves the information for the device specified by <deviceId>

Users can only get information for devices that are accessible by their roles.

URL

Copy
https://<your_cloud>.app.perfectomobile.com/api/v1/device-management/devices/<DEVICE_ID>

Method

GET

For information on a previous version of this endpoint, see Get Device Information | Legacy.

Header parameters

Name

Description

Perfecto-Authorization

The Perfecto security token. For more information, see Generate security tokens.

Request parameters

Name

Type

Default

Description

admin

boolean

false

true to provide administrative information in the response. This is permitted only for users with administrative credentials, for devices that the user is allowed to administrate.

Success response

Code: 200 OK

where: 

  • handset status can take on one of the following values:

    • Never Connected

    • Not Connected

    • Ready

    • Connected

    • Loading

    • Error

    • Unknown

    • Invalid

    • Ready to connect

    • Unsupported

  • mode can take on one of the following values:

    • NEVER_CONNECTED

    • NOT_CONNECTED

    • CONNECTED

    • LOADING

    • ERROR

    • READY_TO_CONNECT

    • UNSUPPORTED

Error response

Copy
Error response format
[
    {
        "userMessage":"ERROR_MESSAGE",
        "developerMessage": "1-63dbebb1-4521fab52df9f41a578221c8"
    }
]

where:

  • userMessage is the error message to be shown.

  • developerMessage is a value that you can send to Perfecto Support to check errors if further investigation is required.

Sample error responses

Copy

A wrong securityToken is passed in the request (Unauthorized Request Code - 401)

[
    {
        "userMessage": "Unable to authenticate bearer token",
        "developerMessage": "Unable to authenticate bearer token"
    }
]