Performance
Last updated
Last updated
- 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.
GET
https://voicetrends.plumvoice.com/api/performance/{start}/{end}/{period}/{phone}
This service fetches any of the available data in the Performance 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.
Name | Type | Description |
---|---|---|
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):
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:
start
integer
The start date (inclusive) for this request in YYYYMMDD format.
end
integer
The end date (inclusive) for this request in YYYYMMDD format.
period
string
The period that the data will be grouped into (day, week, month).
phone
string
The single phone number for this report or “ALL” to merge data across all numbers.
Name
Data Type
Always Present
Description
error
string
no
Indicates what went wrong when an HTTP code other than 200 is returned.
calls
array
no
A 200 HTTP code returns this value, the list of call counts grouped by period timestamp.
js_errors
array
no
A 200 HTTP code returns this value, the list of JavaScript error counts grouped by period timestamp.
js_errors_per_call
array
no
A 200 HTTP code returns this value, the list of average JavaScript errors per call grouped by period timestamp.
fetch_errors
array
no
A 200 HTTP code returns this value, the list of fetch error counts grouped by period timestamp.
fetch_errors_per_call
array
no
A 200 HTTP code returns this value, the list of average fetch errors per call grouped by period timestamp.
average_page_load
array
no
A 200 HTTP code returns this value, the list of average page load in seconds grouped by period timestamp.