This endpoint allows you to retrieve report data (calls, texts, etc..) from your account for a specified date range. You have a few modifiers that allow you to limit your result set, if desired. If you only specify the required start and end datetime strings, then your report will contain all records of all types for the date range.
The optional direction parameter will allow you to limit by incoming calls/texts, outgoing calls/texts, internal calls/texts (one user calling another user), rapidresponse calls (which are a special case), or all calls/texts. If you leave this parameter out of your request, it is automatically defaulted to “all”.
The optional call_type parameter lets you limit for “voicecalls” or “texts”. If you leave this out of your request or specify the value of “all”, both types are returned to you.
API Request
GET URL
https://api.teletracker.net/reports/call-data
Sorry about the endpoint name of call-data. It’s named that for historic reasons, but it’s not limited to voice calls. You’ll get any kind of communication supported by our platform with this endpoint.
URL Parameters
None
Request Parameters
Parameter
Type
Usage
Description
start_date
string
Required
A ISO 8601 formatted datetime string
end_date
string
Required
A ISO 8601 formatted datetime string
direction
string
Optional
This can be “incoming” or “outgoing”, “internal”, “rapidresponse” or “all”. Defaults to “all”.
call_type
string
Optional
This can be “voicecall” or “text”, or “all”. Defaults to “all”.
account_id
integer
Depends
Specify the account id explicitly to request call data under this particular account. Optional for users. Required for integrators.