Diagnostic Flow

- NEW! - Interactive API docs, now live!

Visit api-docs.plumvoice.com to read Plum API documentation, build and test requests in our interactive API sandbox, review the responses, and share it all with your team.

Diagnostic Flow Data

GET https://voicetrends.plumvoice.com/api/path/{start}/{end}/{phone}

This service fetches any of the available data in the Diagnostic Flow section in VoiceTrends. To use this service, provide your temporary authentication credentials and several GET parameters, which function as filters for this data. This API is rate-limited in a group with all other raw data resources to 150 requests per 15-minute window.

Path Parameters

HTTP/1.1 200 OK
X-RateLimit-Limit: 150
X-RateLimit-Remaining: 148
X-RateLimit-Reset: 1519664400
Content-Length: 1908
Content-Type: application/json

{
  "applications":{
    "https:\/\/demos.plumgroup.com\/vxml\/start.php":[
      {
        "page":"main.php",
        "form":"main_menu",
        "item":"selection",
        "visits":985,
        "filled":941,
        "nomatch":32,
        "noinput":12,
        "transfer":0,
        "disconnect":0
      },
      {
        "page":"sales.php",
        "form":"product_menu",
        "item":"selection",
        "visits":462,
        "filled":425,
        "nomatch":20,
        "noinput":4,
        "transfer":0,
        "disconnect":13
      },
      {
        "page":"customer.php",
        "form":"enter_customer_number",
        "item":"customer_number",
        "visits":523,
        "filled":488,
        "nomatch":12,
        "noinput":8,
        "transfer":0,
        "disconnect":15
      },
      {
        "page":"customer.php",
        "form":"confirm_customer_number",
        "item":"confirmation",
        "visits":508,
        "filled":481,
        "nomatch":9,
        "noinput":4,
        "transfer":0,
        "disconnect":14
      },
      {
        "page":"support.php",
        "form":"select_division",
        "item":"selection",
        "visits":316,
        "filled":292,
        "nomatch":6,
        "noinput":3,
        "transfer":0,
        "disconnect":15
      },
      {
        "page":"helpdesk.php",
        "form":"helpdesk_transfer",
        "item":"transfer",
        "visits":134,
        "filled":56,
        "nomatch":0,
        "noinput":0,
        "transfer":56,
        "disconnect":134
      },
      {
        "page":"tier_one.php",
        "form":"tier_one_transfer",
        "item":"transfer",
        "visits":89,
        "filled":44,
        "nomatch":0,
        "noinput":0,
        "transfer":44,
        "disconnect":89
      },
      {
        "page":"tier_three.php",
        "form":"tier_three_transfer",
        "item":"transfer",
        "visits":78,
        "filled":32,
        "nomatch":0,
        "noinput":0,
        "transfer":32,
        "disconnect":78
      },
      {
        "page":"sales.php",
        "form":"insight",
        "item":"insight_transfer",
        "visits":87,
        "filled":23,
        "nomatch":0,
        "noinput":0,
        "transfer":23,
        "disconnect":87
      },
      {
        "page":"sales.php",
        "form":"fuse",
        "item":"fuse_transfer",
        "visits":50,
        "filled":13,
        "nomatch":0,
        "noinput":0,
        "transfer":13,
        "disconnect":50
      },
      {
        "page":"sales.php",
        "form":"dev",
        "item":"dev_transfer",
        "visits":312,
        "filled":8,
        "nomatch":0,
        "noinput":0,
        "transfer":8,
        "disconnect":312
      },
      {
        "page":"billing.php",
        "form":"billing_menu",
        "item":"selection",
        "visits":178,
        "filled":151,
        "nomatch":0,
        "noinput":20,
        "transfer":0,
        "disconnect":7
      },
      {
        "page":"billing.php",
        "form":"make_payment",
        "item":"enter_bank_number",
        "visits":87,
        "filled":64,
        "nomatch":9,
        "noinput":5,
        "transfer":0,
        "disconnect":9
      },
      {
        "page":"billing.php",
        "form":"billing_inquiry",
        "item":"selection",
        "visits":84,
        "filled":57,
        "nomatch":14,
        "noinput":9,
        "transfer":0,
        "disconnect":4
      },
      {
        "page":"billing.php",
        "form":"payment",
        "item":"payment_transfer",
        "visits":12,
        "filled":12,
        "nomatch":0,
        "noinput":0,
        "transfer":12,
        "disconnect":12
      },
      {
        "page":"billing.php",
        "form":"make_payment",
        "item":"enter_billing_address",
        "visits":78,
        "filled":63,
        "nomatch":8,
        "noinput":4,
        "transfer":0,
        "disconnect":3
      },
      {
        "page":"billing.php",
        "form":"make_payment",
        "item":"enter_payment_amount",
        "visits":75,
        "filled":58,
        "nomatch":6,
        "noinput":3,
        "transfer":0,
        "disconnect":8
      },
      {
        "page":"billing.php",
        "form":"payment_success",
        "item":"thank_you",
        "visits":55,
        "filled":55,
        "nomatch":0,
        "noinput":0,
        "transfer":0,
        "disconnect":55
      },
      {
        "page":"billing.php",
        "form":"billing_inquiry",
        "item":"billing_transfer",
        "visits":80,
        "filled":12,
        "nomatch":0,
        "noinput":0,
        "transfer":12,
        "disconnect":80
      }
    ]
  }
}

Possible Response Codes

  • 200: success, data successfully returned.

  • 400: supplied data improperly formatted or invalid

  • 401: authentication parameters invalid or the account is inactive

  • 405: invalid HTTP method supplied (only POST allowed)

  • 429: rate limit exceeded

  • 500: unknown error

The return structure will contain the following item(s):

Sample Code

This sample code makes a request to authenticate an account using PHP, but any language capable of integrating with a REST API works for this type of request:

<?php
// authentication and filter settings
$login = '<your_temporary_login>';
$password = '<your_temporary_password>';
$start = '<start_date>';
$end = '<end_date>';
$phone = '<selected_phone_number>';

// build the URL
$url = 'https://voicetrends.plumvoice.com/api/performance/'.$start.'/'.$end.'/'.$phone;

$ch = curl_init();
curl_setopt($ch, CURLOPT_USERPWD, $login.':'.$password);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
$result = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
var_dump($result);
var_dump($http_code);

Last updated