Skip to main content

Create Phone

Create a new phone with a specified phone number or other parameters. Requires "Grant write resource" API permission.

Basic Parameters

ParameterDescription
NameFree-form label for the phone.
NumberThe phone number; E.164 format recommended (i.e. "+17345551212").If no leading plus sign is provided then it is assumed to be a United States number and an implicit "+1" country code is prepended.Dashes and spaces are ignored.A phone with a smartphone platform but no number is a tablet.

Advanced Parameters

ParameterDescription
ExtensionThe phone extension.
PlatformThe phone platform.Note that windows phone is accepted as a synonym for windows phone 7. This includes devices running Windows Phone 8.If a smartphone's exact platform is unknown but it will have Duo Mobile installed, use generic smartphone and generate an activation code.When the phone is activated its platform will be automatically detected.
Post DelayThe time (in seconds) to wait after the extension is dialed and before the speaking the prompt.
Pre DelayThe time (in seconds) to wait after the number picks up and before dialing the extension.
TypeThe type of phone.

Example Output

{
"response": {
"activated": false,
"capabilities": [
"sms"
],
"encrypted": "Unknown",
"extension": "",
"fingerprint": "Unknown",
"last_seen": "",
"model": "Unknown",
"name": "test-phone",
"number": "+12142144286",
"phone_id": "DPERLUZ8CIO49STDMKDP",
"platform": "Google Android",
"screenlock": "Unknown",
"sms_passcodes_sent": false,
"tampered": "Unknown",
"type": "Mobile",
"users": []
},
"stat": "OK"
}

Workflow Library Example

Create Phone with Duo and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop