---
title: "Create Live Answer Script"
method: POST
path: "/v4/accounts/{voip_id}/live-answer"
tags: ["Live Answer"]
---

# Create Live Answer Script

`POST /v4/accounts/{voip_id}/live-answer`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/live-answer`
- Auth: HTTP bearer

Add a live answer script to your account

## Path parameters

- `voip_id` integer, required

## Request body

- LiveAnswer
  - `code` integer, required: Live answer plan associated with the script
  - `name` string, required: Name of live answer script
  - `business_name` string, nullable: Business name
  - `business_description` string, nullable: Description of your business
  - `greeting` string, nullable: Greeting of live answer, ex. 'Guten tag! You reached American office of Bratwurst GmBH'
  - `call_handling_notes` string, nullable: Call handling notes for the whole resource
  - `enabled` boolean, nullable: Status
  - `appointments_enabled` boolean, nullable: Wheather your business should accept appointments
  - `appointments_description` string, nullable: Description of appointments policy
  - `business_contact` object, required: Business contact object
    - `name` string, nullable: Business contact: name
    - `company` string, nullable: Business contact: company
    - `fax` string, nullable: Business contact: fax number
    - `address` object: Business contact address object
      - `line_1` string, nullable: Business contact: address
      - `line_2` string, nullable: Business contact: address line 2
      - `city` string, nullable: Business contact: city
      - `province` string, nullable: Business contact: state
      - `postal_code` string, nullable: Business contact: zip
      - `country` 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AN' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BM' | 'BN' | 'BO' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CV' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'MA' | 'MC' | 'MD' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SM' | 'SN' | 'SO' | 'SR' | 'ST' | 'SV' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW', nullable: Business contact: country
  - `contacts` object[], nullable: Array of contact objects associated with your live answer
    - `id` integer, nullable: Contact ID
    - `first_name` string, nullable: Contact first name
    - `last_name` string, nullable: Contact last name
    - `title` string, nullable: Contact title
    - `call_handling_notes` string, nullable: Call handling notes for the specific contact
    - `is_default` boolean, nullable: Defines if contact should be used as default (only 1 per script; it has HIGHER priority than value in default_contact_id)
    - `destinations` object[], required: Array of of destination objects for the specific contact
      - `id` integer, nullable: Destination ID
      - `type` 'email' | 'extension' | 'phone_number' | 'voicemail', nullable: Destination type (can be: email, extension, phone_number or voicemail)
      - `destination` string, nullable: Acctual value of destination. For extension/voicemail it should be stringified version of extension's id or "ext:EXT_NUMBER". For phone_number type provide phone number.
      - `is_warm_transfer` boolean, nullable: Transfer type
  - `vendor` object, nullable: Live answer vendor object
    - `id` integer, nullable: Vendor ID
    - `name` string, nullable: Vendor name
  - `did` object, nullable: DID (Phone number)
    - `id` integer, nullable: ID of the Phone number
    - `name` string, nullable: Name of the Phone number
    - `did` string, nullable: Number of the Phone number
  - `default_contact_id` integer, nullable: Default contact ID (it has LOWER priority than flag in contacts.*.is_default) - it can be used for update only

## Response `201`

Created

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/6a06b2da42aa?raw)
