Real Device API Endpoints
The Real Device Cloud (RDC) API allows you to manage real devices and jobs in your data center. Use the RDC API methods to:
- Look up device types and availability
- View current device activity
- Manage real device jobs by stopping, deleting, or updating job details
- Assign a private device to a team
- Update private device settings
Refer to Getting Started for Authentication and Server information.
Real Devices
Get Devices
GET /v1/rdc/devices
Parameters
This method takes no parameters.- United States
- Europe
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.us-west-1.saucelabs.com/v1/rdc/devices' | json_pp
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.eu-central-1.saucelabs.com/v1/rdc/devices' | json_pp
Responses
200 | Success. Device info returned. | |
404 | Not found. |
[
{
"abiType": "armeabi-v7a",
"apiLevel": 23,
"cpuCores": 4,
"cpuFrequency": 2300,
"defaultOrientation": "PORTRAIT",
"dpi": 440,
"hasOnScreenButtons": true,
"id": "HTC_One_M8_real",
"internalOrientation": "PORTRAIT",
"internalStorageSize": 16384,
"isArm": true,
"isKeyGuardDisabled": false,
"isPrivate": false,
"isRooted": false,
"isTablet": false,
"manufacturer": [
"HTC"
],
"modelNumber": "HTC One_M8",
"name": "HTC One (M8)",
"os": "ANDROID",
"osVersion": "6.0",
"pixelsPerPoint": 1,
"ramSize": 2048,
"resolutionHeight": 1920,
"resolutionWidth": 1080,
"screenSize": 5.0,
"sdCardSize": 2048,
"supportsAppiumWebAppTesting": true,
"supportsGlobalProxy": false,
"supportsMinicapSocketConnection": false,
"supportsMockLocations": true,
"cpuType": "ARM",
"deviceFamily": "ANY",
"dpiName": "xxhdpi",
"isAlternativeIoEnabled": true,
"supportsManualWebTesting": true,
"supportsMultiTouch": true,
"supportsXcuiTest": false
},
{...more devices},
]
Get a Specific Device
GET /v1/rdc/devices/{device_id}
Parameters
device_id | | PATH | REQUIRED | STRING | The unique identifier of a device in the Sauce Labs data center. You can look up device IDs using the Get Devices endpoint. |
- United States
- Europe
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.us-west-1.saucelabs.com/v1/rdc/devices/iPad_Pro_11_14_2018_real' | json_pp
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.eu-central-1.saucelabs.com/v1/rdc/devices/iPad_Pro_11_14_2018_real' | json_pp
Responses
200 | Success. Device info returned. | |
404 | Not found. |
{
"abiType": "arm64",
"apiLevel": 0,
"cpuCores": 6,
"cpuFrequency": 2600,
"defaultOrientation": "LANDSCAPE",
"dpi": 265,
"hasOnScreenButtons": true,
"id": "iPad_Pro_11_14_2018_real",
"internalOrientation": "LANDSCAPE",
"internalStorageSize": 65536,
"isArm": true,
"isKeyGuardDisabled": false,
"isPrivate": false,
"isRooted": false,
"isTablet": true,
"manufacturer": [
"Apple"
],
"modelNumber": "iPad8,1",
"name": "iPad Pro 11 2018",
"os": "IOS",
"osVersion": "14.4.1",
"pixelsPerPoint": 2,
"ramSize": 4096,
"resolutionHeight": 2388,
"resolutionWidth": 1668,
"screenSize": 11.0,
"sdCardSize": 0,
"supportsAppiumWebAppTesting": true,
"supportsGlobalProxy": false,
"supportsMinicapSocketConnection": true,
"supportsMockLocations": true,
"cpuType": "ARM",
"deviceFamily": "IPAD",
"dpiName": "hdpi",
"isAlternativeIoEnabled": true,
"supportsManualWebTesting": true,
"supportsMultiTouch": true,
"supportsXcuiTest": true
}
Get Available Devices
GET /v1/rdc/devices/available
This endpoint is deprecated. Please transition to the status endpoint for continued service.
Parameters
This method takes no parameters.- United States
- Europe
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.us-west-1.saucelabs.com/v1/rdc/devices/available' | json_pp
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.eu-central-1.saucelabs.com/v1/rdc/devices/available' | json_pp
Responses
200 | Success. Device info returned. | |
404 | Not found. |
[
"Google_Pixel_3a_XL_real",
"Samsung_Galaxy_A5_real",
"Google_Pixel_4_real_us",
"iPhone_8_14_4_real_us",
"iPhone_6_10_3_real",
"Huawei_P10_real",
"Samsung_Galaxy_Fold_5G_real_us",
"iPhone_11_14_4_real_us",
"iPhone_12_Pro_Max_real_us",
"iPad_Pro_12_9_2018_real",
"Samsung_Galaxy_M20_real_us",
"Samsung_Galaxy_S10_real",
"Samsung_Galaxy_Tab_S4_real_us",
"OnePlus_8_real_us",
"iPad_Mini_2_12_real_us",
"iPad_mini_2019_real",
"Samsung_note_5_real_us",
"iPad_Pro_11_2020_14_real_us",
"ZTE_Axon_7_real2_us",
"Essential_PH_1_real",
"Huawei_P20_Pro_real_us",
"Samsung_Galaxy_Tab_S_105_real_us",
"iPod_Touch_6_10_real_us",
"Samsung_Galaxy_Tab_S3_real",
"Amazon_Kindle_Fire_HD_7_real_us",
"OnePlus_5T_real",
"Sony_Xperia_10_real_us",
"OnePlus_6_real",
...
]
Get Devices Status
GET /v1/rdc/devices/status
The inUseBy
field is exposed only for private devices isPrivateDevice: true
.
Users can view information about who is currently using the device only if they have the required permissions.
Lack of permissions will result in the inUseBy field being omitted from the response for private devices.
List of Available States:
State | Description |
---|---|
AVAILABLE | Device is available and ready to be allocated |
IN_USE | Device is currently in use |
CLEANING | Device is being cleaned (only available for private devices) |
MAINTENANCE | Device is in maintenance (only available for private devices) |
REBOOTING | Device is rebooting (only available for private devices) |
OFFLINE | Device is offline (only available for private devices) |
Parameters
This method takes no parameters.- United States
- Europe
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.us-west-1.saucelabs.com/v1/rdc/devices/status' | json_pp
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.eu-central-1.saucelabs.com/v1/rdc/devices/status' | json_pp
Responses
200 | Success. Device info returned. | |
404 | Not found. |
{
"devices": [
{
"descriptor": "iPhone_12_mini_16_real_private",
"state": "IN_USE",
"inUseBy": [
{
"username": "user-name"
}
],
"isPrivateDevice": true
},
{
"descriptor": "iPhone_12_16_real",
"state": "CLEANING",
"inUseBy": [],
"isPrivateDevice": true
},
{
"descriptor": "Google_Pixel_7_Pro_14_real",
"state": "MAINTENANCE",
"inUseBy": [],
"isPrivateDevice": true
},
{
"descriptor": "Samsung_Galaxy_S10_real",
"state": "REBOOTING",
"inUseBy": [],
"isPrivateDevice": true
},
{
"descriptor": "iPhone_XS_13_real",
"state": "OFFLINE",
"inUseBy": [],
"isPrivateDevice": true
},
{
"descriptor": "iPhone_8_Plus_13_4_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Google_Pixel_4_10_real",
"state": "IN_USE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Samsung_Galaxy_S21_5G_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Samsung_Galaxy_A7_2018_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "iPad_Pro_11_2021_17_real",
"state": "IN_USE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Google_Pixel_5_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Samsung_Galaxy_A9s_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "iPhone_SE_15_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "iPhone_13_mini_17_real_2",
"state": "IN_USE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Google_Pixel_4_XL_13_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Samsung_Galaxy_S23_14_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Samsung_Galaxy_Tab_S8_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Samsung_Galaxy_A8_2018_real",
"state": "IN_USE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "iPad_10_2_14_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "iPad_mini_2_12_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "iPad_10_2_2020_16_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Samsung_Galaxy_S21_5G_13_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "Huawei_Mate_30_Pro_real",
"state": "IN_USE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "iPad_Pro_10_5_2017_15_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
{
"descriptor": "iPad_Pro_11_2022_16_real",
"state": "AVAILABLE",
"inUseBy": [],
"isPrivateDevice": false
},
...
]
}
Jobs
Get Real Device Jobs
GET /v1/rdc/jobs
Parameters
limit | | QUERY | OPTIONAL | INTEGER | The maximum number of jobs to return. |
offset | | QUERY | OPTIONAL | INTEGER | Limit results to those following this index number. Defaults to |
type | | QUERY | OPTIONAL | STRING | Filter results to show manual tests only with |
- United States
- Europe
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.us-west-1.saucelabs.com/v1/rdc/jobs?limit=5' | json_pp
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.eu-central-1.saucelabs.com/v1/rdc/jobs?limit=5' | json_pp
Responses
200 | Success. Device info returned. | |
404 | Not found. |
{
"entities": [
{
"assigned_tunnel_id": null,
"device_type": "real_device",
"owner_sauce": "walkerlj",
"consolidated_status": "failed",
"end_time": 1618283190151,
"id": "fdb5600685fc4779b394c552293b37da",
"name": "lockedOutLoginFlow",
"os": "Android",
"os_version": "10",
"device_name": "Samsung Galaxy A30",
"start_time": 1618283139160,
"status": "failed",
"creation_time": 1618283139160,
"automation_backend": "APPIUM",
"automated": true
},
{...4 more}
],
"metaData": {
"offset": 1,
"limit": 5,
"searchTerm": null,
"sortDirection": "DESCENDING",
"moreAvailable": true
}
}
Get a Specific Real Device Job
GET /v1/rdc/jobs/{job_id}
Parameters
job_id | | PATH | REQUIRED | STRING | The unique identifier of a job running on a real device in the data center. You can look up job IDs using the Get Real Device Jobs endpoint. |
- United States
- Europe
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.us-west-1.saucelabs.com/v1/rdc/jobs/293d84fb2f634ff29a750c3f8eaee592' | json_pp
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.eu-central-1.saucelabs.com/v1/rdc/jobs/48c6d12f9ef944439453b5abc6715b54' | json_pp
Responses
200 | Success. Device info returned. | |
404 | Not found. |
{
"appium_session_id" : null,
"application_summary" : {
"appStorageId" : "861d0f58-ff75-450b-b063-344e7216cc5b",
"filename" : "my-demo-app-android.apk",
"groupId" : 944918,
"minOsVersion" : null,
"minSdkLevel" : 19,
"name" : "My Demo App",
"packageName" : "com.saucelabs.mydemoapp.android",
"shortVersion" : null,
"targetOsVersion" : null,
"targetSdkLevel" : 31,
"version" : "1.0.12",
"versionCode" : "14"
},
"assigned_tunnel_id" : null,
"automation_backend" : null,
"base_config" : {},
"build" : null,
"client" : null,
"collects_automator_log" : true,
"consolidated_status" : "complete",
"crash_log_url" : "https://api.eu-central-1.saucelabs.com/v1/rdc/jobs/51873a114a6141239c933042e948aa54/crash.json",
"creation_time" : 1678124750664,
"device_descriptor" : {
"abiType" : "arm64-v8a",
"apiLevel" : 29,
"cpuCores" : 8,
"cpuFrequency" : 1950,
"cpuType" : "ARM",
"defaultOrientation" : "PORTRAIT",
"deviceFamily" : "ANY",
"dpi" : 550,
"dpiName" : "xxhdpi",
"hasOnScreenButtons" : true,
"id" : "Samsung_Galaxy_S10_ws",
"internalOrientation" : "PORTRAIT",
"internalStorageSize" : 131072,
"isAlternativeIoEnabled" : true,
"isArm" : true,
"isKeyGuardDisabled" : false,
"isPrivate" : true,
"isRooted" : false,
"isTablet" : false,
"manufacturer" : [
"Samsung"
],
"modelNumber" : "SM-G973F",
"name" : "Samsung Galaxy S10",
"os" : "ANDROID",
"osVersion" : "10",
"pixelsPerPoint" : 1,
"ramSize" : 8192,
"resolutionHeight" : 3040,
"resolutionWidth" : 1440,
"screenSize" : 6.1,
"sdCardSize" : 0,
"supportsAppiumWebAppTesting" : true,
"supportsGlobalProxy" : false,
"supportsManualWebTesting" : true,
"supportsMinicapSocketConnection" : false,
"supportsMockLocations" : true,
"supportsMultiTouch" : true,
"supportsXcuiTest" : false
},
"device_log_url" : "https://api.eu-central-1.saucelabs.com/v1/rdc/jobs/51873a114a6141239c933042e948aa54/deviceLogs",
"device_name" : "Samsung Galaxy S10",
"device_session_id" : null,
"device_type" : "real_device",
"end_time" : 1678124809717,
"error" : null,
"framework_log_url" : null,
"id" : "51873a114a6141239c933042e948aa54",
"junit_log_url" : null,
"manual" : true,
"modification_time" : 1678124809717,
"name" : "My Demo App (Version: 1.0.12; Build: 14)",
"network_log_url" : "https://api.eu-central-1.saucelabs.com/v1/rdc/jobs/51873a114a6141239c933042e948aa54/network.har",
"os" : "Android",
"os_version" : "10",
"owner_sauce" : "wim.selles",
"passed" : null,
"proxied" : false,
"record_screenshots" : true,
"record_video" : true,
"remote_app_file_url" : null,
"requests_url" : null,
"screenshots" : [],
"start_time" : 1678124764713,
"status" : "complete",
"tags" : [],
"test_cases_url" : null,
"test_report_type" : "LIVE",
"testfairy_log_url" : "https://api.eu-central-1.saucelabs.com/v1/rdc/jobs/51873a114a6141239c933042e948aa54/insights.json",
"crash_log_url": "https://api.us-west-1.saucelabs.com/v1/rdc/jobs/c6dd70531df5454290e110514dc7ca8b/crash.json",
"used_cached_device" : null,
"video_url" : "https://api.eu-central-1.saucelabs.com/v1/rdc/jobs/51873a114a6141239c933042e948aa54/video.mp4"
}
Download a Specific Real Device Job's Asset
GET /v1/rdc/jobs/{job_id}/{asset_type}
Assets
Asset Type | Path | Test Framework | Feature |
Device Logs | deviceLogs | Appium, Espresso, XCUITest | - |
Appium Logs | appiumLogs | Appium | - |
Appium Requests | appiumRequests | Appium | - |
JUnit XML | junit.xml | Espresso, XCUITest | - |
XCUITest Logs | xcuitestLogs | XCUITest | - |
Video | video.mp4 | Appium, Espresso, XCUITest | - |
Screenshots | screenshots.zip | Appium, Espresso | Espresso Screenshot Capture |
App Logs | deviceLogs | Appium, Espresso, XCUITest | App Logs |
Network Logs | network.har | Appium, Espresso, XCUITest | Network Capture |
Device Vitals | insights.json | Appium, Espresso, XCUITest | Device Vitals |
Crash Logs | crash.json | Appium | Crash/Error Reporting |
Parameters
job_id | | PATH | REQUIRED | STRING | The unique identifier of a job running on a real device in the data center. You can look up job IDs using the Get Real Device Jobs endpoint. |
asset_type | | PATH | REQUIRED | STRING | The specific file path for the asset. |
download | | QUERY | OPTIONAL | BOOLEAN | Whether to force the download of the compressed version of the file. Defaults to ( |
- United States
- Europe
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.us-west-1.saucelabs.com/v1/rdc/jobs/293d84fb2f634ff29a750c3f8eaee592/deviceLogs'
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" --location \
--request GET 'https://api.eu-central-1.saucelabs.com/v1/rdc/jobs/48c6d12f9ef944439453b5abc6715b54/deviceLogs'