create phone
create_phoneCreate a cloud Android phone and wait until it is ready (usually under two minutes). It costs $0.06 a minute while running. Always park it when you're done. If it is still creating or starting when this returns, call get_phone with its ID and wait "ready" to keep waiting: it only reads, while start_phone would renew the session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A name to tell the phone apart, up to 80 characters. The default is its ID. | |
| country | No | Where the phone appears to be: one of the listed two-letter ISO 3166-1 country codes, such as US or DE. Any other code is refused before a phone is made. Leave it out for any country. | |
| metadata | No | Up to 20 string pairs of your own, such as a customer ID. Keys have up to 40 characters and values up to 256. | |
| idle_timeout | No | Seconds after the phone's last activity, its last_active_at, at which it parks itself, from 60 to 3600. Calls move last_active_at at most once every 15 seconds. The default is 300. | |
| max_duration | No | The most seconds this session may run before the phone parks, from 60 to 10800. The default is up to 900, shortened automatically to available credit and the spending limit. | |
| idempotency_key | No | A unique key for this phone. If a call times out, repeat it with the same key and settings to get the same phone instead of a second one. If that phone has failed, create the next one with a new key. |