Brekeke PBX Wiki

searchExtensions

The following APIs are available on Brekeke PBX 3.16.0 or later.

 

searchExtensions

 

Description:

get extension date by conditions

 

Parameters:

condition – an object or an array of objects including the following fields

property_name – property key.

text – A search text.

type – one of the following values – “startswith”, “endswith”, “equals”, “regex”, “contains”.

tenant_condition

text – A search text.

type – one of the following values – “startswith”, “endswith”, “equals”, “regex”, “contains”.

property_names –  an array of property fileds that should be return. (optional)

limit – the maximum number of search results to be returned.

 

Retruns:

data – an array of extensions data for each tenant.

 

 

Example of the request 1:

 

Example of the request 2:

 

Yes No
Suggest Edit