Genymotion HTTP API is a way to remotely control all Genymotion widgets and edit the Genymotion device Configuration.
Access the API reference from the instance UI
1. Access the instance from a web browser. 2. Click API reference.
From the API reference page, choose the HTTP API request that you are interested in for details. You can also test an API request by using the Try it out button.
Access the API reference from a URL
The API reference page can also be accessed from the URL https://{your_instance_IP}/documentation/api.
Call the HTTP API with curl
The HTTP API can be called using curl with the -u option for authentication.
This example calls the android/shell API endpoint and executes the command ls to the instance.
{username} and {password} are the instance credentials. {instance_IP} is your instance IP.
> Note: If you are not using a SSL/TLS certificate, you will need to add the -k switch to your curl command:
Get the curl command line without authentication
You can get the CURL command line (without authentication) when trying the API.
Example request
Get the current android id
GET /android/id
Get the current android id of the device.