Create an extension

Creates an extension and, optionally, its mailbox, device lines and follow-me setup in one request. The SIP password is generated for you.

A request that fails validation creates nothing. If the mailbox cannot be saved after the extension is created, the request returns an error and the extension exists.

To create many extensions at once, use Import extensions in bulk.

Requires an API key with the Admin role.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The extension number. It must not be in the reserved range 10000 to 19999 or already be used by an extension or shared mailbox.

string
required

The caller ID name shown on internal calls. Cannot be empty.

string
required

The caller ID number shown on outbound calls. Cannot be empty.

string | null

The caller ID name shown on outbound calls, up to 15 characters of plain letters, digits and punctuation. Accented letters are converted.

string

The UUID of the account to create the extension on. Defaults to your account. Any other account returns 403.

string

The SIP domain name the extension belongs to. Leave it out to use your account's domain.

string | null

A description of the extension.

string | null

The first name shown in the dial-by-name directory.

string | null

The last name shown in the dial-by-name directory.

boolean

Whether the extension is listed in the dial-by-name directory.

boolean

Whether the extension number is shown in the directory.

string | null

Calling permissions. null allows outbound and international calls, domestic allows outbound only, and local blocks outbound calls.

number | null

How long the extension rings, in seconds.

string | null

Which calls are recorded: all, local, inbound or outbound. null turns recording off.

hold_music

What callers hear when this extension puts them on hold: a recording, music on hold, an internet stream or silence. Send a sound reference, or null for the default hold music.

string | null

The mailbox that drives this extension's message-waiting indicator.

string | null

How missed-call notices are sent, such as email. If you set it, missed_call_data is required.

string | null

Where missed-call notices go, such as an email address.

string

The extension type: User, Doorphone, Paging, Common Area or Fax. Any other value leaves the type empty.

voicemail
object

The extension's mailbox. To create one, set voicemail_action to create. The mailbox uses the extension number and the PIN 1234. To change the PIN afterward, use Update an extension or Update a mailbox. voicemail_id, voicemail_password, voicemail_enabled, voicemail_sms_to, voicemail_recording_instructions, voicemail_recording_options and voicemail_options are ignored.

string

Devices and lines to set up with the extension. Each entry needs a device_uuid. Set line_action to create to add a line.

follow_me
object

The follow-me setup, as an object with follow_me_enabled, follow_me_destinations, follow_me_ignore_busy, cid_name_prefix and cid_number_prefix.

string

Ignored. Cannot be set through this API.

string

Ignored. Cannot be set through this API.

string

Ignored. The SIP password is generated for you.

string

Ignored. Cannot be set through this API.

Responses

401

Missing or invalid API key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json