Get Call Logs
Get call logs within a timeframe
- 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 Call Logs
GET
https://fuse.plumvoice.com/api/calls/{start}/{end}
Fetch information about completed outbound calls
Path Parameters
start
string
UNIX timestamp
end
string
UNIX timestamp
Query Parameters
number
string
The phone number of the deployment for which to retrieve call log data.
limit
integer
The maximum number of records per page to return.
offset
integer
Indicates the record number that begins the list of returned records.
Possible Response Codes
200: success
401: authentication headers invalid or the account is inactive
405: invalid HTTP method supplied (only GET allowed)
500: database error
The return structure contains the following item(s):
Name
Data Type
Always Present
Description
error
string
no
Message indicating what went wrong with the request when the HTTP code is not 200.
calls
mixed
no
Array of calls that match the query parameters. Supplied when the HTTP code is 200. See the table below for more information on the data in this item.
total_calls
int
no
The total number of calls for the given start, end and number parameters. Supplied when the HTTP code is 200. See the table below for more information on the data in this item.
Definitions: Single Call Entry
Name
Data Type
Value
dest
string
Destination phone number of the call.
src
string
Source phone number of the call.
Outbound calls will be shown as "Outbound"
start
int
Start UNIX timestamp for this call.
end
int
End Unix timestamp for this call.
session_id
string
Unique ID for this call, also used to fetch individual call logs.
type
string
Type for this call (inbound, outbound or transfer).
log
bool
Flag indicating if a call log is available for this call.
Sample Code
This sample PHP code makes a request to this method:
Last updated