Skip to content

REST API

Fresh

The REST API provides HTTP endpoints for controlling Android devices from any programming language or tool.

Download: TotalControl-REST-API-3.4.0-EN.zip (full manual)

Authentication

REST API uses token-based authentication.

Device Management

EndpointDescription
connectAllAuto-connect all detected devices
getMainGet primary device ID
searchObject(name)Find device by name
searchObject(group)Find device by group
searchObject(tag)Find device by tag

App Control

EndpointDescription
runAppLaunch application
closeAppClose application
restartAppRestart application
installAppInstall APK
uninstallAPKRemove application
getActivityGet current activity
getForegroundAppGet active app
getInstalledAPKListList installed apps

Input Operations

EndpointDescription
clickTap at coordinates
swipeSwipe gesture
scrollScroll direction
sendSend key event
shiftShift event
movePage movement

Color Operations

EndpointDescription
getPixelColorGet color at coordinates
compareColorCompare colors
compareColorExExtended comparison
seekColorFind color in area
getColorBitsColor depth
getColorCountCount colors

Image Operations

EndpointDescription
screenshotCapture screen
screenshotToDeviceSave to device
screenshotToMemorySave to memory slot
seekImageFind image on screen
seekImageByIDFind by image ID
getDataGet image data
clearMemslotClear memory slot

Text Operations

EndpointDescription
inputTextEnter text
inputFormFill form fields
getClipboardTextRead clipboard

System Operations

EndpointDescription
execExecute device command
getGet device property
setSet device property
setNameSet device name
lock / unlockLock/unlock screen
getNotificationRead notification bar

OCR

EndpointDescription
analyzeTextOCR text recognition

AAI / FindNode

EndpointDescription
sendAaiExecute FindNode query
getSettingGet AAI settings
clickSyncSynchronous click
inputTextSyncSynchronous text input
runAppSyncSynchronous app launch

Script Management

EndpointDescription
scriptRunExecute script
scriptKillStop script
scriptListList running scripts
scriptWaitWait for script completion

File Operations

EndpointDescription
UploadUpload file to device
DownloadDownload from device
Get infoFile information

Task Management

EndpointDescription
taskCreateCreate parallel task
taskDeleteRemove task
taskInfoTask details
taskListList tasks
taskPause / taskResumePause/resume
taskStopStop task
taskSetConfigure task

Calling JS API from REST

The REST API supports calling JS API functions via a POST endpoint, enabling the full power of the JavaScript API from external tools.

Unofficial documentation. Source: sigma-rt.com