Inbound Rules

Manage your inbound rules.

Export extension users

get

Export a collection of extension users to file.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/octet-stream
Responsestring · binary
get
/users/export

List inbound rules

get

Retrieve a collection of inbound rules

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
filterstringOptional

Use the filter query parameter to retrieve just a subset of a collection.

searchstringOptional

Use the search query parameter to restrict the results of a request to match a search criterion.

orderbystringOptional

Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.

skipinteger · int32Optional

Use the skip query parameter to set the number of items to skip at the start of a collection.

Default: 0
topinteger · int32 · min: 1 · max: 100Optional

Use the top query parameter to specify the page size of the result set.

Default: 100
Responses
200

OK

application/json
get
/inbound_rules

Create an inbound rule

post

Add a new inbound rule. Please make sure you have at least one provider created before creating a new inbound rule.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestring · min: 1 · max: 64Required

Inbound rule name.

enabledbooleanOptional

Enabled or not.

Default: true
usagestring · enumOptional

The inbound rule usage, can be either:

  • BOTH: Applies to both messages and calls.
  • SIP: Applies to calls only.
  • MESSAGE: Applies to messages only.
Default: BOTHPossible values:
cid_number_maskstringOptional

The CID number Mask for inbound rule.
You can add the number in it's entirety, identifying a single caller,
or use the * as a wildcard. For example 0044********** will identify a UK Caller and 004420******** will identify a caller from London.
Note: the * digits must matched number actually digits. If the number is 3 digits, then should use *** The CID number mask also allow set a number range, for example: 00442012345670-00442012345680.

did_numbersstring · min: 1Required

A single DID/DDI number or a hyphen-separated range of DID/DDI numbers.

provider_idall ofRequired

The unique ID of trunk.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
enable_advanced_routingbooleanOptional

Whether to enable advanced routing.

Default: false
advanced_routingstringOptional

Advanced routing rules.

play_recording_disclaimerbooleanOptional

Whether to play recording disclaimer to inbound calls.

Default: false
Responses
post
/inbound_rules

Retrieve an inbound rule

get

Retrieve an inbound rule.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idall ofRequired

The unique ID of inbound rule.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200

OK

application/json
get
/inbound_rules/{id}

Update an inbound rule

post

Update an inbound rule.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idall ofRequired

The unique ID of inbound rule.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Body
namestring · min: 1 · max: 64Optional

Inbound rule name.

enabledbooleanOptional

Enabled or not.

Default: true
usagestring · enumOptional

The inbound rule usage, can be either:

  • BOTH: Applies to both messages and calls.
  • SIP: Applies to calls only.
  • MESSAGE: Applies to messages only.
Default: BOTHPossible values:
cid_number_maskstringOptional

The CID number Mask for inbound rule.
You can add the number in it's entirety, identifying a single caller,
or use the * as a wildcard. For example 0044********** will identify a UK Caller and 004420******** will identify a caller from London.
Note: the * digits must matched number actually digits. If the number is 3 digits, then should use *** The CID number mask also allow set a number range, for example: 00442012345670-00442012345680.

did_numbersstring · min: 1Optional

A single DID/DDI number or a hyphen-separated range of DID/DDI numbers.

provider_idall ofOptional

The unique ID of trunk.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
enable_advanced_routingbooleanOptional

Whether to enable advanced routing.

Default: false
advanced_routingstringOptional

Advanced routing rules.

play_recording_disclaimerbooleanOptional

Whether to play recording disclaimer to inbound calls.

Default: false
Responses
200

OK

No content

post
/inbound_rules/{id}

No content

Delete an inbound rule

post

Destroy an inbound rule.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idall ofRequired

The unique ID of inbound rule.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
post
/inbound_rules/{id}/destroy

No content

Export inbound rules

get

Export a collection of inbound rules to file.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/octet-stream
Responsestring · binary
get
/inbound_rules/export

Last updated