v1
latestOpenAPI 3.1.02026-07-22154213404.8 KBProvision a new device
Requests a new device for the authenticated user from the device spec in the request body. Optional query parameters select the device type, target country, billing mode, and a profile to use as the base spec; the response returns the device and its stream token.
Query parameters
ISO 3166-1 alpha-2 country code. If omitted the system picks the country with the most availability.
ISO 3166-1 alpha-2 country code. If omitted the system picks the country with the most availability.
Profile ID to use as device spec
Profile ID to use as device spec
Billing mode. 'auto' uses a subscription slot when available and otherwise bills per minute; 'subscription' requires an available subscription slot; 'minute' bills per minute. Only cloud phone and cloud emulator devices support per-minute billing.
Billing mode. 'auto' uses a subscription slot when available and otherwise bills per minute; 'subscription' requires an available subscription slot; 'minute' bills per minute. Only cloud phone and cloud emulator devices support per-minute billing.
Request body
Example request
{
"$schema": "https://example.com/schemas/DeviceSpec.json",
"location": {
"$schema": "https://example.com/schemas/Location.json"
}
}Response
OK
Example response
{
"$schema": "https://example.com/schemas/DeviceInfo.json"
}