function telecoms.ivr.list

List your IVR menus. This just returns the data in the main IVR records; it will not return details specific to the options for that menu (to do that, use the telcoms.ivr.get function).

Arguments:

argrequired?syntaxinfo
custIDNposintcustID of account that contains the IVR menus you want to list (default is your own account)
ivrIDNlist:posintoptional filter; if supplied, limits results to IVR menus matching these IDs
desc.startsNstringoptional filter; if supplied, limits results to IVR menus whose description starts with this string
optNset:get_in_useoptional settings for additional return data
countinfoNset:totmaches|more_rowsdetermines how this function returns information about the total number of IVR menus on account
offsetNunsintfor pagination; first matching IVR to return, counting from zero
limitNunsintfor pagination; max number of records to return (subject to built in limit of 500)

Further argument information

opt

This argument contains a list (comma separated list or array) of values. Possible values are:

countinfo

This argument contains a list (comma separated list or array) of values. This is to include useful pagination data in the result set. Possible values are:

Example 1

Fetch a list of IVR menus:

JSON example request:

POST https://live.apicontrol.co.uk/1/json
{
    "auth" : {
        "username" : "YOURUSERNAME",
        "password" : "YOURPASSWORD",
    },
    "func" : "telecoms.ivr.list",
    "args" : { }
}

The response

JSON example response:

{
   "results" : {
      "more_rows" : "0",
      "data" : [
         {
            "timeout_response" : "10",
            "timeout_digit" : "3",
            "desc" : "ACME Ltd main menu",
            "nochoice_maxreplays" : "3",
            "default_choice" : "9",
            "ivrID" : "2",
            "badchoice_fg_soundclipID" : "2",
            "custID" : "16526",
            "prompt_bg_soundclipID" : "1",
            "created" : "2010-10-29 15:59:44"
         },
         {
            "ivrID" : "3",
            "desc" : "ACME Ltd main menu",
            "nochoice_maxreplays" : "3",
            "timeout_digit" : "3",
            "timeout_response" : "10",
            "created" : "2010-10-29 16:16:56",
            "prompt_bg_soundclipID" : "1",
            "custID" : "16526",
            "badchoice_fg_soundclipID" : "2"
         }
      ]
   },
   "success" : "1"
}

Example 2

Fetch a list of IVR menus, specifying the get_in_use option so that you can see which ones are being used:

JSON example request:

POST https://live.apicontrol.co.uk/1/json
{
    "auth" : {
        "username" : "YOURUSERNAME",
        "password" : "YOURPASSWORD",
    },
    "func" : "telecoms.ivr.list",
    "args" : {
       "opt" : "get_in_use"
    }
}

The response

JSON example response:

{
   "results" : {
      "data" : [
         {
            "timeout_digit" : "3",
            "nochoice_maxreplays" : "3",
            "in_use" : "0",
            "created" : "2010-10-29 15:59:44",
            "default_choice" : "9",
            "prompt_bg_soundclipID" : "1",
            "desc" : "ACME Ltd main menu",
            "ivrID" : "2",
            "timeout_response" : "10",
            "badchoice_fg_soundclipID" : "2",
            "custID" : "16526"
         },
         {
            "custID" : "16526",
            "badchoice_fg_soundclipID" : "2",
            "timeout_response" : "10",
            "ivrID" : "3",
            "desc" : "ACME Ltd main menu",
            "prompt_bg_soundclipID" : "1",
            "created" : "2010-10-29 16:16:56",
            "in_use" : "1",
            "nochoice_maxreplays" : "3",
            "timeout_digit" : "3"
         }
      ],
      "more_rows" : "0"
   },
   "success" : "1"
}