Retrieve inbound rule
GET
/show
Retrieve inbound rule
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idinteger
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://127.0.0.1:8990/api/inbound_rules/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
typestring
If it is set to DID, inbound rule will be configured based on the callee ID. If it is set to CID, inbound rule will be configured based on the caller ID. -
number_maskstring
Mask number for inbound rule. -
enabledboolean
Enabled or not. -
namestring
Inbound rule name. -
idinteger
Inbound rule ID. -
office_hoursobject
Show child attributes -
forwardobject
Show child attributes -
providersarray
Show child attributes
Sample Response
{}
Destroy inbound rule
POST
/destroy
Destroy inbound rule
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
required
Inbound rule ID.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/inbound_rules/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
400
Invalid inbound rule ID supplied
Sample Response
Update inbound rule
POST
/update
Update inbound rule
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
typestring
required
If it is set to DID, inbound rule will be configured based on the callee ID. If it is set to CID, inbound rule will be configured based on the caller ID. -
number_maskstring
required
Mask number for inbound rule. -
enabledboolean
required
Enabled or not. -
forwardobject
required
Show child attributes -
providersarray
required
-
office_hoursobject
required
Show child attributes -
idinteger
required
Inbound rule ID.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/inbound_rules/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
Sample Response
Create inbound rule
POST
/create
Add a new inbound rule. Please make sure you have at least one provider created
before creating a new inbound rule.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
typestring
required
If it is set to DID, inbound rule will be configured based on the callee ID. If it is set to CID, inbound rule will be configured based on the caller ID. -
number_maskstring
required
Mask number for inbound rule. -
forwardobject
required
Show child attributes -
enabledboolean
required
Enabled or not. -
office_hoursobject
required
Show child attributes -
namestring
required
Inbound rule name. -
providersarray
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/inbound_rules/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Created inbound rule
application/json
-
idinteger
Inbound rule ID.
Sample Response
{}
Retrieve a collection of inbound rules
GET
/list
Retrieve a collection of inbound rules
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
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://127.0.0.1:8990/api/inbound_rules/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesizeinteger
-
countinteger
-
paginationinteger
-
rulesarray
Show child attributes -
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}