Provision a new device
Requests a new device for the authenticated user from the device spec in the request body. Optional query parameters select the canonical device type, target country, billing mode, and a profile to use as the base spec; deprecated device-type aliases remain accepted only during the documented compatibility grace period. The response returns the device and its stream token.
Query parameters
Deprecated device type aliases are accepted during a compatibility grace period: dedicated_premium_device maps to android_cloud_phone, dedicated_physical_device maps to android_physical_phone, dedicated_ios_device maps to ios_stealth_phone, and dedicated_emulated_device maps to android_emulator.
Deprecated device type aliases are accepted during a compatibility grace period: dedicated_premium_device maps to android_cloud_phone, dedicated_physical_device maps to android_physical_phone, dedicated_ios_device maps to ios_stealth_phone, and dedicated_emulated_device maps to android_emulator.
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"
}