PBX API : GET /Dialplan/DB/:family/

To get a dial plan database family keys, make an HTTP GET request with basic authorization, resource URI:

http(s)://{PBX}/api/v1/Dialplan/DB/:family/
 

Response

TypeExample
Success{"type":"result","result":{"total":2,"records":[{"key":"\/CustomFamily\/444","value":"1"},{"key":"\/CustomFamily\/333","value":"1"}]}}
Error{"type":"error","reason":"Family 'CustomFamily' not found","result":null}

Response

GET http://{PBX}/api/v1/Dialplan/db/CustomFamily/
{
    "type":"result",
    "result":{
        "total":2,
        "records":[{
            "key":"\/CustomFamily\/444",
            "value":"1"
        },{
            "key":"\/CustomFamily\/333",
            "value":"1"
        }]
    }
}

Examples

CLI CURL
curl -X GET -u user:pass --url "http://{PBX}/api/v1/Dialplan/DB/:family/"