Authorization: Bearer ********************
{
"attendant-name": "Main AA Example",
"user": "3009",
"time-frame": "Default",
"auto-attendant": {
"no-key-press": "option-1",
"unassigned-key-press": "repeat",
"3-digit-dial-by-extension": "no",
"4-digit-dial-by-extension": "yes",
"5-digit-dial-by-extension": "yes",
"audio": {
"file-script-text": "Hello! Please press 1 2 or 3. "
},
"option-1": {
"destination-application": "to-user",
"destination-user": "1000",
"description": "Press 1 to go to user 1000",
},
"option-2": {
"destination-application": "to-user",
"destination-user": "1001",
"description": "Press 2 to go to user 1001",
},
"option-3": {
"destination-application": "to-callqueue",
"destination-user": "2001",
"description": "Press 4 to go to queue 1001",
"auto-attendant": {
"no-key-press": "hangup",
"unassigned-key-press": "option-3",
"3-digit-dial-by-extension": "yes",
"4-digit-dial-by-extension": "no",
"audio": {
"file-script-text": "This is a second tier message. Press some digits. "
},
"option-1": {
"destination-application": "to-user",
"destination-user": "1000",
"description": "Press 1 to go to user 1000",
},
"option-2": {
"destination-application": "to-user",
"destination-user": "2003",
"description": "Press 2 to go to user 1001",
},
"option-3": {
"description": "Press 3 to go to user 1001",
"auto-attendant": {
"audio": {
"file-script-text": "This is a third tier message. Press some digits. "
},
"option-3": {
"destination-application": "to-user",
"destination-user": "1001",
"description": "Press 3 to go to user 1001",
}
}
}
}
}
}
}
curl --location -g --request POST 'https://awqacore01.crexendocloud.com/ns-api/v2/domains/{{domain}}/autoattendants' \
--header 'Content-Type: application/json' \
--data-raw '{
"attendant-name": "Main AA Example",
"user": "3009",
"time-frame": "Default",
"auto-attendant": {
"no-key-press": "option-1",
"unassigned-key-press": "repeat",
"3-digit-dial-by-extension": "no",
"4-digit-dial-by-extension": "yes",
"5-digit-dial-by-extension": "yes",
"audio": {
"file-script-text": "Hello! Please press 1 2 or 3. "
},
"option-1": {
"destination-application": "to-user",
"destination-user": "1000",
"description": "Press 1 to go to user 1000",
},
"option-2": {
"destination-application": "to-user",
"destination-user": "1001",
"description": "Press 2 to go to user 1001",
},
"option-3": {
"destination-application": "to-callqueue",
"destination-user": "2001",
"description": "Press 4 to go to queue 1001",
"auto-attendant": {
"no-key-press": "hangup",
"unassigned-key-press": "option-3",
"3-digit-dial-by-extension": "yes",
"4-digit-dial-by-extension": "no",
"audio": {
"file-script-text": "This is a second tier message. Press some digits. "
},
"option-1": {
"destination-application": "to-user",
"destination-user": "1000",
"description": "Press 1 to go to user 1000",
},
"option-2": {
"destination-application": "to-user",
"destination-user": "2003",
"description": "Press 2 to go to user 1001",
},
"option-3": {
"description": "Press 3 to go to user 1001",
"auto-attendant": {
"audio": {
"file-script-text": "This is a third tier message. Press some digits. "
},
"option-3": {
"destination-application": "to-user",
"destination-user": "1001",
"description": "Press 3 to go to user 1001",
}
}
}
}
}
}
}'
{
"attendant-name": "string",
"user": "string",
"time-frame": "string",
"auto-attendant": {
"intro-greetings": "string",
"audio": {
"filename": "string",
"ordinal-order": 0,
"file-duration-seconds": 0,
"file-size-kilobytes": "string",
"file-access-url": "string",
"file-script-text": "string",
"text-to-speech-voice-id": "en-US-Wavenet-C",
"text-to-speech-language": "en_US"
},
"unassigned-key-press": "repeat",
"no-key-press": "repeat",
"3-digit-dial-by-extension": "yes",
"4-digit-dial-by-extension": "yes",
"5-digit-dial-by-extension": "yes",
"option-1": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-2": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-3": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-4": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-5": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-6": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-7": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-8": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-9": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-0": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
},
"option-*": {
"destination-application": "available-number",
"destination-user": "string",
"caller-name-translation": "[*]",
"description": "string",
"call-to-record": "string",
"auto-attendant": {},
"remove": "yes"
}
}
}