Destroy inbound rule
POST
/destroy
Destroy inbound rule
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idstring
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
Retrieve inbound rule
GET
/show
Retrieve inbound rule
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idstring
required
id of rule.
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
-
forwardobject
Show child attributes -
did_number_maskstring
DID Mask number for inbound rule. -
idstring
Inbound rule ID. -
provider_idstring
id of the provider. -
enabledboolean
Enabled or not. -
namestring
Inbound rule name. -
cid_number_maskstring
CID Mask number for inbound rule. -
office_hoursobject
Show child attributes
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. -
extension_idstring
required
id of extension.
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
-
sort_bystring
-
rulesarray
Show child attributes -
paginationinteger
-
countinteger
Sample Response
{
"pagesize": 10,
"sort_by": "DEFAULT",
"pagination": 8,
"count": 100
}
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
-
provider_idstring
required
id of the provider. -
forwardobject
required
Show child attributes -
enabledboolean
required
Enabled or not. -
did_number_maskstring
required
DID Mask number for inbound rule. -
namestring
required
Inbound rule name. -
cid_number_maskstring
required
CID Mask number for inbound rule. -
office_hoursobject
required
Show child attributes
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
-
idstring
Inbound rule ID.
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
-
provider_idstring
required
id of the provider. -
forwardobject
required
Show child attributes -
enabledboolean
required
Enabled or not. -
did_number_maskstring
required
DID Mask number for inbound rule. -
idstring
required
Inbound rule ID. -
cid_number_maskstring
required
CID Mask number for inbound rule. -
office_hoursobject
required
Show child attributes
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