Retrive virtual receptionists
Request
access_tokenstring
required
Access token is a 32-byte string with validity of 30 seconds.paginationinteger
required
The pagination of paging.pagesizeinteger
optional
The pagesize of paging.sort_byenum
optional
Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.
Sample Request
https://example.com/api/virtual_receptionist/list?access_token=196ACE20C6F34027895F7F95402BB164&pagesize=100&pagination=1&sort_by=DEFAULT
Response
paginationinteger
required
The pagination of paging.pagesizeinteger
optional
The pagesize of paging.sort_byenum
optional
Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.page_countinteger
required
The total count of pages.countinteger
required
Current pagesize.virtual_receptionistsarray
required
Show child attributesThe virtual receptionists.
Sample Response
{
"pagination": 1,
"pagesize": 100,
"sort_by": "DEFAULT",
"page_count": 100,
"count": 100,
"virtual_receptionists": [
{
"virtual_receptionist_number": "101",
"name": "vr101",
"status": "ONLINE"
}
]
}
Add a virtual receptionist
Request
access_tokenstring
required
Access token is a 32-byte string with validity of 30 seconds.namestring
required
The name of virtual receptionist.virtual_receptionist_numberstring
required
Extension number for Virtual Receptionist. NOTE: It MUST be a non-existent extension.promptstring
optional
Audio prompt file. The file must be in PCM, 8kHz, 16bit, or Mono format. .mp3 is not supported.languagestring
required
Default Audio prompt file's language.gap_timeinteger
required
Gap time between DTMF digits.key0object
optional
Show child attributeskey1object
optional
Show child attributeskey2object
optional
Show child attributeskey3object
optional
Show child attributeskey4object
optional
Show child attributeskey5object
optional
Show child attributeskey6object
optional
Show child attributeskey7object
optional
Show child attributeskey8object
optional
Show child attributeskey9object
optional
Show child attributestimeoutobject
optional
Show child attributeskey10object
optional
Show child attributes
Sample Request
{
"access_token": "196ACE20C6F34027895F7F95402BB164",
"virtual_receptionist_number": "101",
"name": "vr101",
"status": "ONLINE",
"prompt": "sample.wav",
"language": "en-us",
"play_count": 3,
"gap_time": 2,
"key0": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key1": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key2": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key3": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key4": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key5": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key6": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key7": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key8": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key9": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"timeout": {
"timeout": 30,
"action": "END_CALL",
"extension_number": ""
},
"key10": {
"action": "END_CALL",
"extension_number": ""
}
}
Response
Sample Response
Update settings for virtual receptionist
Request
access_tokenstring
required
Access token is a 32-byte string with validity of 30 seconds.namestring
required
The name of virtual receptionist.virtual_receptionist_numberstring
required
Extension number for Virtual Receptionist. NOTE: It MUST be a non-existent extension.promptstring
optional
Audio prompt file. The file must be in PCM, 8kHz, 16bit, or Mono format. .mp3 is not supported.languagestring
required
Default Audio prompt file's language.gap_timeinteger
required
Gap time between DTMF digits.key0object
optional
Show child attributeskey1object
optional
Show child attributeskey2object
optional
Show child attributeskey3object
optional
Show child attributeskey4object
optional
Show child attributeskey5object
optional
Show child attributeskey6object
optional
Show child attributeskey7object
optional
Show child attributeskey8object
optional
Show child attributeskey9object
optional
Show child attributestimeoutobject
optional
Show child attributeskey10object
optional
Show child attributes
Sample Request
{
"access_token": "196ACE20C6F34027895F7F95402BB164",
"virtual_receptionist_number": "101",
"name": "vr101",
"status": "ONLINE",
"prompt": "sample.wav",
"language": "en-us",
"play_count": 3,
"gap_time": 2,
"key0": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key1": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key2": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key3": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key4": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key5": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key6": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key7": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key8": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key9": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"timeout": {
"timeout": 30,
"action": "END_CALL",
"extension_number": ""
},
"key10": {
"action": "END_CALL",
"extension_number": ""
}
}
Response
Sample Response
Retrive settings for virtual receptionist
Request
access_tokenstring
required
Access token is a 32-byte string with validity of 30 seconds.virtual_receptionist_numberstring
required
Extension number for Virtual Receptionist of which the information to be obtained.
Sample Request
{
"access_token": "196ACE20C6F34027895F7F95402BB164",
"virtual_receptionist_number": "vr001"
}
Response
namestring
required
The name of virtual receptionist.virtual_receptionist_numberstring
required
Extension number for Virtual Receptionist. NOTE: It MUST be a non-existent extension.promptstring
optional
Audio prompt file. The file must be in PCM, 8kHz, 16bit, or Mono format. .mp3 is not supported.languagestring
required
Default Audio prompt file's language.gap_timeinteger
required
Gap time between DTMF digits.key0object
optional
Show child attributeskey1object
optional
Show child attributeskey2object
optional
Show child attributeskey3object
optional
Show child attributeskey4object
optional
Show child attributeskey5object
optional
Show child attributeskey6object
optional
Show child attributeskey7object
optional
Show child attributeskey8object
optional
Show child attributeskey9object
optional
Show child attributestimeoutobject
optional
Show child attributeskey10object
optional
Show child attributes
Sample Response
{
"virtual_receptionist_number": "101",
"name": "vr101",
"status": "ONLINE",
"prompt": "sample.wav",
"language": "en-us",
"play_count": 3,
"gap_time": 2,
"key0": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key1": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key2": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key3": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key4": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key5": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key6": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key7": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key8": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"key9": {
"user_input": "1#",
"action": "END_CALL",
"extension_number": ""
},
"timeout": {
"timeout": 30,
"action": "END_CALL",
"extension_number": ""
},
"key10": {
"action": "END_CALL",
"extension_number": ""
}
}
Remove virtual receptionist
Request
access_tokenstring
required
Access token is a 32-byte string with validity of 30 seconds.virtual_receptionist_numberstring
required
Extension number for Virtual Receptionist to be deleted.
Sample Request
{
"access_token": "196ACE20C6F34027895F7F95402BB164",
"virtual_receptionist_number": "123"
}