GET Device Profiles
You can discover device profiles by querying the API.
Request
| Method | GET |
| Path | /deviceProfiles |
| Header |
Realm: account_realm Authorization: Bearer access_token |
Response
| Body |
"results": [ { "sref": "deviceprofiles/1", "name": "Phone - Apple - iPhone 4s - Portrait", "characteristics": [ "- UA string for iPhone 4s", "- viewport 320x480" ], "deprecated": false }, { "sref": "deviceprofiles/2", "name": "Tablet - Apple - iPad - Landscape", "characteristics": [ "- UA string for iPad", "- viewport 1024x768" ], "deprecated": false }, { "sref": "deviceprofiles/3", "name": "Viewport size 1280x1024", "characteristics": [ "- viewport 1280x1024" ], "deprecated": false } ] |
Device Profile Parameters
| Parameter | Details |
|---|---|
| sref | A self-reference path that describes how you request the specific device profile |
| name | The descriptive name of the device profile, as seen in the portal |
| characteristics | An array of JSON strings that describe the behavior of the device profile (i.e., the user agent string or viewport size) |
| deprecated | Boolean. Whether or not the device profile is deprecated. If a profile is no longer available ("deprecated": true), it cannot be used for creating new job templates, but is included to describe the profile that might have been used for an older test. |