Create a shared voicemail box

Creates a shared box, your account's, with its own number, and answers 201 with it. Your account's admins and API keys only.

Leave extension_number out to get the next free number from 2000 to 2999, or send one no other destination uses. The number is the box's for good. Defaults: enabled, no transcription, nobody e-mailed, attachment, no copies, the standard greeting, and a random 6-digit PIN. Add greetings after, with POST /voicemail_boxes/{voicemail_box_id}/greetings.

Example:

POST /voicemail_boxes
Idempotency-Key: 5f0c6b9e-3a1d-4c8e-9b7a-2d4f6e8a0c13
Content-Type: application/json

{ "name": "Support" }

Notes:

  • Send Idempotency-Key: a retry after a lost answer then never creates a second box.
  • Every answer carries X-Request-Id and Cache-Control: private, no-store.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

A JSON object.

A new shared box. Greetings are added after, with POST …/greetings.

string
required
length between 1 and 60

What people see the box as, 1 to 60 characters.

string
^[0-9]{2,15}$

Its own number, 2 to 15 digits, which callers and call flows reach it by. Left out: the next free number from 2000 to 2999. It is the box's for good: it can't be changed later.

boolean

Default true.

boolean

Default false.

string
^[0-9]{4,10}$

Its phone PIN, 4 to 10 digits. Left out: a random 6-digit PIN. Write-only.

email
object

Who new voicemails are e-mailed to, and how. Default: nobody, attachment.

copy_to_ids
array of uuids
length ≤ 100

Other boxes of your account that get a copy of each new voicemail. Default: none.

copy_to_ids
Headers
string
length between 1 and 255

A value of yours, unique per request (a UUID is usual), 1 to 255 printable ASCII characters. Send the same key again when you retry after a lost answer: you get the first answer back, with Idempotent-Replayed: true, and the work is never done twice. Keys last 24 hours.

uuid

Send Account-Id when your credentials reach more than one account (GET /me lists them in accounts). An API key acts in its own account, and a person in one organization in theirs: neither needs it. A person in several organizations must name it on every write (400 account_required); their reads without it use their home account. Credentials with no home account in GET /me need it on every request but GET /me. An account your credentials can't act in: 403 forbidden. Empty, not an account id, or sent twice: 400 parameter_invalid. Each names Account-Id in param.

Responses

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