Create extension voicemail greeting
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
file_idinteger
required
-
extension_idinteger
required
The id of the extension.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/greeting_file/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"file_id": 1234,
"extension_id": 1234
}'
Responses
404
200
application/json
-
idinteger
400
Sample Response
{
"id": 1234
}
List extension groups
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
optional
Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/extensions/group/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
pagesizeinteger
-
countinteger
-
paginationinteger
-
groupsarray
Show child attributes -
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}
Retrieve extension group
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idinteger
required
Extension group ID
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/extensions/group/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
enable_management_console_accessboolean
Indicates if extension group members are allowed to access the PortSIP PBX Management Console. IMPORTANT NOTE: Make sure that the Access Password configured is secure. -
group_namestring
Name of extension group to be created. -
enable_call_cross_groupboolean
enable_call_cross_group -
enable_intercomboolean
Indicates if extension group members are allowed for intercom. -
group_descriptionstring
Description for extension group to be created. -
enable_external_callboolean
Indicates if extension group members are allowed to call external numbers. -
membersarray
Show child attributes -
idinteger
Extension group unique ID.
Sample Response
{}
Add a new extension group to the system.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
enable_management_console_accessboolean
required
Indicates if extension group members are allowed to access the PortSIP PBX Management Console. IMPORTANT NOTE: Make sure that the Access Password configured is secure. -
group_namestring
required
Name of extension group to be created. -
enable_call_cross_groupboolean
required
enable_call_cross_group -
enable_intercomboolean
required
Indicates if extension group members are allowed for intercom. -
group_descriptionstring
required
Description for extension group to be created. -
enable_external_callboolean
required
Indicates if extension group members are allowed to call external numbers. -
membersarray
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/group/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
application/json
-
group_namestring
Name of extension group to be created. -
idinteger
Extension group unique ID.
Sample Response
{}
List extensions
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
optional
Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/extensions/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
pagesizeinteger
-
countinteger
-
extensionsarray
Show child attributes -
paginationinteger
-
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}
Retrieve extension
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idinteger
required
The id of the extension.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/extensions/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
office_hoursobject
Show child attributes -
extension_numberstring
Extension number -
profileobject
Show child attributes -
passwordstring
Extension SIP password -
forward_rulesobject
Show child attributes -
web_access_passwordstring
Extension independent password -
optionsobject
Show child attributes -
idinteger
The id of the extension. -
voice_mailobject
Show child attributes -
blfsarray
Show child attributes -
belong_groupsarray
Show child attributes
Sample Response
{
"office_hours": {
"friday_from": "09:00",
"thursday_from": "09:00",
"wednesday_to": "17:00",
"tuesday_to": "17:00",
"monday_to": "17:00",
"sunday_to": "17:00",
"saturday_to": "17:00",
"monday_from": "09:00",
"friday_to": "17:00",
"thursday_to": "17:00",
"sunday_from": "09:00",
"saturday_from": "09:00",
"office_hours_mode": "CUSTOM",
"wednesday_from": "09:00",
"tuesday_from": "09:00"
},
"id": 1234
}
Update extension group.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
enable_management_console_accessboolean
required
Indicates if extension group members are allowed to access the PortSIP PBX Management Console. IMPORTANT NOTE: Make sure that the Access Password configured is secure. -
group_namestring
required
Name of extension group to be created. -
enable_call_cross_groupboolean
required
enable_call_cross_group -
enable_intercomboolean
required
Indicates if extension group members are allowed for intercom. -
group_descriptionstring
required
Description for extension group to be created. -
enable_external_callboolean
required
Indicates if extension group members are allowed to call external numbers. -
membersarray
required
-
idinteger
required
Extension group unique ID.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/group/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Sample Response
Retrieves status of extensions
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
extensionsarray
required
Extension numbers array
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/status \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"extensions": [
1,
2,
3
]
}'
Sample Response
{}
Udpate extension
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
office_hoursobject
required
Show child attributes -
profileobject
required
Show child attributes -
passwordstring
required
Extension SIP password -
forward_rulesobject
required
Show child attributes -
web_access_passwordstring
required
Extension independent password -
optionsobject
required
Show child attributes -
voice_mailobject
required
Show child attributes -
blfsarray
required
-
idinteger
required
The id of the extension.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"office_hours": {
"friday_from": "09:00",
"thursday_from": "09:00",
"wednesday_to": "17:00",
"tuesday_to": "17:00",
"monday_to": "17:00",
"sunday_to": "17:00",
"saturday_to": "17:00",
"monday_from": "09:00",
"friday_to": "17:00",
"thursday_to": "17:00",
"sunday_from": "09:00",
"saturday_from": "09:00",
"office_hours_mode": "CUSTOM",
"wednesday_from": "09:00",
"tuesday_from": "09:00"
},
"id": 1234
}'
Responses
200
Sample Response
Destroy an extension group
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
required
Extension group unique ID.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/group/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
404
200
400
Sample Response
Add a new extension to the system.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
office_hoursobject
required
Show child attributes -
profileobject
required
Show child attributes -
passwordstring
required
Extension SIP password -
forward_rulesobject
required
Show child attributes -
web_access_passwordstring
required
Extension independent password -
optionsobject
required
Show child attributes -
voice_mailobject
required
Show child attributes -
blfsarray
required
-
extension_numberstring
required
Extension number
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"office_hours": {
"friday_from": "09:00",
"thursday_from": "09:00",
"wednesday_to": "17:00",
"tuesday_to": "17:00",
"monday_to": "17:00",
"sunday_to": "17:00",
"saturday_to": "17:00",
"monday_from": "09:00",
"friday_to": "17:00",
"thursday_to": "17:00",
"sunday_from": "09:00",
"saturday_from": "09:00",
"office_hours_mode": "CUSTOM",
"wednesday_from": "09:00",
"tuesday_from": "09:00"
}
}'
Responses
405
200
application/json
-
idinteger
The id of the extension.
Sample Response
{
"id": 1234
}
search extensions
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
optional
Default value will be used when user does not specify value for this field. -
extension_numberstring
optional
Extension number
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/extensions/search \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
pagesizeinteger
-
countinteger
-
extensionsarray
Show child attributes -
paginationinteger
-
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}
Set extension voicemail greeting activated or deactivated
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
extension_idinteger
required
The id of the extension. -
idinteger
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/greeting_file/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"extension_id": 1234,
"id": 1234
}'
Responses
404
200
400
Sample Response
Delete an extension
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
required
The id of the extension.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 1234
}'
Responses
404
200
400
Sample Response
List extension voicemail greetings
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
optional
Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/extensions/greeting_file/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
pagesizeinteger
-
countinteger
-
paginationinteger
-
rulesarray
Show child attributes -
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}
Destroy extension voicemail greeting
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
extension_idinteger
required
The id of the extension. -
idinteger
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/greeting_file/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"extension_id": 1234,
"id": 1234
}'
Responses
404
200
400
Sample Response
make call by extension
Request body
application/json
-
extensionstring
required
Extension number -
tostring
required
Extension number -
authstring
required
Extension independent password -
srcstring
required
Extension number -
domainstring
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/extensions/call \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"domain": "abc.com"
}'
Responses
200
Sample Response