Device API / Getting started
Quickstart
Connect a script to your workspace and make your first request.
Get an API key
Open Account → Device API and choose Create API key. Save the key in your environment as APPCLOUD_API_KEY.
Find your first phone
Terminal
export APPCLOUD_BASE="https://appcloud.gg"
curl "$APPCLOUD_BASE/api/v1/devices" -H "Authorization: Bearer $APPCLOUD_API_KEY"The response includes an Appcloud id for each provisioned device. An empty list means your account has no provisioned phones yet.
Send a command
Choose a phone with canControl set to true. Replace the example ID below with its ID to open Chrome on that phone.
Terminal
export DEVICE_ID="phone_123"
curl -X POST "$APPCLOUD_BASE/api/v1/devices/$DEVICE_ID/actions" -H "Authorization: Bearer $APPCLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"startApp","value":"com.android.chrome"}'See Control a device for the available commands and their results.