Sauce Labs Customer Idea Portal

Submit an idea and make Sauce Labs even better!

Get device make, model, and operating system via API

When using dynamic allocation, would like the ability to obtain the device information that was automatically chosen for the test session

  • Guest
  • Aug 30 2018
  • Needs review
  • Attach files
  • Sergio Neves Barros commented
    September 06, 2018 14:04


    This should already be possible. The web/appium driver will have an update set of desired capabilities after the session is created which has the testobject device name:


    With that name, i believe there there is another API to get the device details.{deviceId}

    However you will need to be logged in/have a token for that API.

    Hope this helps.

    Sergio (not part of SauceLabs btw).

  • Guest commented
    September 21, 2018 14:16

    Yes, it is possible in the real device cloud (former testobject):
    You can request all or certain devices via get request. Here an example for terminal:
    curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic [YOUR_CREDENTIALS] ''

    Cheers Hajo
    (also just a "user" :-))