Logs user into the system by name and password
Path parameters
-
x-forwarded-forstring
optional
host of request client.
Request body
application/json
-
namestring
required
The name of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
languagestring
required
-
passwordstring
required
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password.
Sample Request
curl -v -X POST http://localhoost:8888/api/account/credentials/verify \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"name": "tenant",
"password": "ABCabc123"
}'
Responses
200
application/json
-
api_versionstring
API version number. -
expiresinteger
Time interval for access token expiration, in seconds. If the access token is not refreshed before the expiry, the token will become invalid. -
namestring
The name of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
rolestring
User type. It could be "administrator", "tenant" or "extension". -
idstring
The userid of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
access_tokenstring
token to be passed as a header
Sample Response
{
"api_version": "12.0",
"role": "tenant",
"expires": 3600,
"name": "tenant",
"id": 1231334,
"access_token": "4DFCF1D4C30B4D798ECE3AE43769F008"
}
List tenants
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
required
Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://localhoost:8888/api/account/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
pagesizeinteger
-
sort_bystring
-
paginationinteger
-
tenantsarray
Show child attributes -
countinteger
Sample Response
{
"pagesize": 10,
"sort_by": "DEFAULT",
"pagination": 8,
"tenants": {
"max_concurrent_calls": 10,
"role": "tenant",
"first_name": "Jack",
"domain": "tenant.com",
"company_name": "example Inc.",
"enabled": true,
"id": 1231334,
"name": "tenant",
"last_name": "Sparrow",
"max_extensions": 1000
},
"count": 100
}
Logs out current logged in user session
Path parameters
-
access_tokenstring
required
token to be passed as a header
Sample Request
curl -v -X POST http://localhoost:8888/api/account/sign_out \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Sample Response
Add a new tenant to the system.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
cdrobject
required
Show child attributes -
capabilityobject
required
Show child attributes -
extension_eventobject
required
Show child attributes -
smtpobject
required
Show child attributes -
office_hoursobject
required
Show child attributes -
domainstring
required
Tenant's domain. -
enabledboolean
required
Indicates if it has been enabled for the new user. -
smsobject
required
Show child attributes -
namestring
required
The name of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
passwordstring
required
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
profileobject
required
Show child attributes -
quotaobject
required
Show child attributes
Sample Request
curl -v -X POST http://localhoost:8888/api/account/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"password": "ABCabc123",
"cdr": {
"cdr_url": "",
"password": "",
"username": "",
"enabled": false,
"authentication_method": ""
},
"capability": {
"max_conference_rooms": 1000,
"max_concurrent_calls": 10,
"max_call_queues": 1000,
"max_ring_groups": 1000,
"max_virtual_receptionists": 1000,
"max_extensions": 1000
},
"enabled": true,
"sms": {
"token": "",
"provider": "Twilio",
"enabled": false,
"username": "",
"password": ""
},
"domain": "tenant.com",
"name": "tenant",
"smtp": {
"smtp_reply_addr": "example.com",
"smtp_server": "example.com",
"smtp_server_port": 5000,
"smtp_security_type": "NO_SECURITY",
"smtp_username": "example",
"smtp_passwd": "ABCabc123"
},
"extension_event": {
"password": "BASIC",
"username": "BASIC",
"enabled": false,
"authentication_method": "BASIC",
"event_url": ""
},
"quota": {
"auto_clean_call_reports_days": 100,
"auto_clean_voicemail_days": 100,
"disk_quota": 100,
"auto_clean_recordings_days": 100
}
}'
Responses
200
application/json
-
idstring
The userid of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only.
Sample Response
{
"id": 1231334
}
Update tenant
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
cdrobject
required
Show child attributes -
capabilityobject
required
Show child attributes -
domainstring
required
Tenant's domain. -
smtpobject
required
Show child attributes -
idstring
required
The userid of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
extension_eventobject
required
Show child attributes -
enabledboolean
required
Indicates if it has been enabled for the new user. -
smsobject
required
Show child attributes -
namestring
required
The name of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
passwordstring
required
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
profileobject
required
Show child attributes -
office_hoursobject
required
Show child attributes -
quotaobject
required
Show child attributes
Sample Request
curl -v -X POST http://localhoost:8888/api/account/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"password": "ABCabc123",
"cdr": {
"cdr_url": "",
"password": "",
"username": "",
"enabled": false,
"authentication_method": ""
},
"capability": {
"max_conference_rooms": 1000,
"max_concurrent_calls": 10,
"max_call_queues": 1000,
"max_ring_groups": 1000,
"max_virtual_receptionists": 1000,
"max_extensions": 1000
},
"enabled": true,
"sms": {
"token": "",
"provider": "Twilio",
"enabled": false,
"username": "",
"password": ""
},
"domain": "tenant.com",
"name": "tenant",
"smtp": {
"smtp_reply_addr": "example.com",
"smtp_server": "example.com",
"smtp_server_port": 5000,
"smtp_security_type": "NO_SECURITY",
"smtp_username": "example",
"smtp_passwd": "ABCabc123"
},
"id": 1231334,
"extension_event": {
"password": "BASIC",
"username": "BASIC",
"enabled": false,
"authentication_method": "BASIC",
"event_url": ""
},
"quota": {
"auto_clean_call_reports_days": 100,
"auto_clean_voicemail_days": 100,
"disk_quota": 100,
"auto_clean_recordings_days": 100
}
}'
Responses
200
Sample Response
Logs user into the system by extension sip password
Path parameters
-
x-forwarded-forstring
optional
host of request client.
Request body
application/json
-
extension_numberstring
required
-
sip_passwordstring
required
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
languagestring
required
-
domainstring
required
Tenant's domain.
Sample Request
curl -v -X POST http://localhoost:8888/api/account/extension/sip/verify \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"sip_password": "ABCabc123",
"domain": "tenant.com"
}'
Responses
200
application/json
-
extension_passwordstring
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
api_versionstring
API version number. -
expiresinteger
Time interval for access token expiration, in seconds. If the access token is not refreshed before the expiry, the token will become invalid. -
transportsarray
Show child attributes -
domainstring
Tenant's domain. -
indept_passwordstring
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
rolestring
User type. It could be "administrator", "tenant" or "extension". -
idstring
The userid of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
namestring
The name of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
extension_numberstring
-
access_tokenstring
token to be passed as a header
Sample Response
{
"extension_password": "ABCabc123",
"api_version": "12.0",
"expires": 3600,
"domain": "tenant.com",
"indept_password": "ABCabc123",
"role": "tenant",
"id": 1231334,
"name": "tenant",
"access_token": "4DFCF1D4C30B4D798ECE3AE43769F008"
}
Periodic refreshment of access token
Path parameters
-
access_tokenstring
required
token to be passed as a header
Sample Request
curl -v -X POST http://localhoost:8888/api/account/token/refresh \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
expiresinteger
Time interval for access token expiration, in seconds. If the access token is not refreshed before the expiry, the token will become invalid.
Sample Response
{
"expires": 3600
}
Update domain
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
domainstring
required
Tenant's domain.
Sample Request
curl -v -X POST http://localhoost:8888/api/domain/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"domain": "tenant.com"
}'
Responses
200
Sample Response
Retrive domain settings
Path parameters
-
access_tokenstring
required
token to be passed as a header
Sample Request
curl -v -X GET http://localhoost:8888/api/domain/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
domainstring
Tenant's domain.
Sample Response
{
"domain": "tenant.com"
}
Show tenant
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idstring
required
The tenant id of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only.
Sample Request
curl -v -X GET http://localhoost:8888/api/account/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
application/json
-
cdrobject
Show child attributes -
capabilityobject
Show child attributes -
domainstring
Tenant's domain. -
smtpobject
Show child attributes -
idstring
The userid of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
extension_eventobject
Show child attributes -
enabledboolean
Indicates if it has been enabled for the new user. -
smsobject
Show child attributes -
namestring
The name of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
passwordstring
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
profileobject
Show child attributes -
office_hoursobject
Show child attributes -
quotaobject
Show child attributes
Sample Response
{
"password": "ABCabc123",
"cdr": {
"cdr_url": "",
"password": "",
"username": "",
"enabled": false,
"authentication_method": ""
},
"capability": {
"max_conference_rooms": 1000,
"max_concurrent_calls": 10,
"max_call_queues": 1000,
"max_ring_groups": 1000,
"max_virtual_receptionists": 1000,
"max_extensions": 1000
},
"enabled": true,
"sms": {
"token": "",
"provider": "Twilio",
"enabled": false,
"username": "",
"password": ""
},
"domain": "tenant.com",
"name": "tenant",
"smtp": {
"smtp_reply_addr": "example.com",
"smtp_server": "example.com",
"smtp_server_port": 5000,
"smtp_security_type": "NO_SECURITY",
"smtp_username": "example",
"smtp_passwd": "ABCabc123"
},
"id": 1231334,
"extension_event": {
"password": "BASIC",
"username": "BASIC",
"enabled": false,
"authentication_method": "BASIC",
"event_url": ""
}
}
Delete tenant
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idstring
required
The userid of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only.
Sample Request
curl -v -X POST http://localhoost:8888/api/account/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 1231334
}'
Responses
200
404
400
Sample Response
Logs user into the system by email
Path parameters
-
x-forwarded-forstring
optional
host of request client.
Request body
application/json
-
domainstring
required
Tenant's domain. -
languagestring
required
-
web_passwordstring
required
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
emailstring
required
The email address of tenant or admin user.
Sample Request
curl -v -X POST http://localhoost:8888/api/account/email/verify \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"email": "example@example.com",
"web_password": "ABCabc123",
"domain": "tenant.com"
}'
Responses
200
application/json
-
extension_passwordstring
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
api_versionstring
API version number. -
expiresinteger
Time interval for access token expiration, in seconds. If the access token is not refreshed before the expiry, the token will become invalid. -
transportsarray
Show child attributes -
domainstring
Tenant's domain. -
rolestring
User type. It could be "administrator", "tenant" or "extension". -
idstring
The userid of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
namestring
The name of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
extension_numberstring
-
access_tokenstring
token to be passed as a header
Sample Response
{
"extension_password": "ABCabc123",
"api_version": "12.0",
"role": "tenant",
"domain": "tenant.com",
"expires": 3600,
"id": 1231334,
"name": "tenant",
"access_token": "4DFCF1D4C30B4D798ECE3AE43769F008"
}
Logs user into the system by extension web password
Path parameters
-
x-forwarded-forstring
optional
host of request client.
Request body
application/json
-
extension_numberstring
required
-
languagestring
required
-
web_passwordstring
required
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
domainstring
required
Tenant's domain.
Sample Request
curl -v -X POST http://localhoost:8888/api/account/extension/web/verify \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"web_password": "ABCabc123",
"domain": "tenant.com"
}'
Responses
200
application/json
-
extension_passwordstring
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
api_versionstring
API version number. -
expiresinteger
Time interval for access token expiration, in seconds. If the access token is not refreshed before the expiry, the token will become invalid. -
transportsarray
Show child attributes -
domainstring
Tenant's domain. -
indept_passwordstring
By default, password for admin user is admin. For extension, the password should be the "Web Access Password" of extensioninstead of extension's SIP password. -
rolestring
User type. It could be "administrator", "tenant" or "extension". -
idstring
The userid of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
namestring
The name of the tenant or admin user. Admin user has access to details for his account and other tenantusers, whilst tenant user has access to his account info only. -
extension_numberstring
-
access_tokenstring
token to be passed as a header
Sample Response
{
"extension_password": "ABCabc123",
"api_version": "12.0",
"expires": 3600,
"domain": "tenant.com",
"indept_password": "ABCabc123",
"role": "tenant",
"id": 1231334,
"name": "tenant",
"access_token": "4DFCF1D4C30B4D798ECE3AE43769F008"
}