GET /call_logs

This version of the API is deprecated and will stop working from February 1, 2015, please see API v2

Get call logs for the employee’s mobile and the company’s receptions.

Request

Parameters

number
optional Get call logs for a specific number
limit
optional Number of results to return.

Default: 30

offset
optional Number of results to skip
from
optional Time specifying when to start getting call logs. Requires to.
to
optional Time specifying when to stop getting call logs. Requires from.
status
optional Filter on end status.

Possible values: answered, missed, voicemail

direction
optional Filter on direction.

Possible values: incoming, outgoing

Response

total
The number of call log records that matches the supplied filter.
call_log.status
End status of the call.

Possible values: answered, missed, voicemail

call_log.direction
The direction of the call.

Possible values: incoming, outgoing

call_log.duration
The duration of the call in seconds.
call_log.caller.type
Type of caller, if known.

Possible values: reception, employee, external

call_log.callee.type
Type of callee, if known.

Possible values: reception, employee, external

call_log.answered_by
Present in calls to receptions, indicating who answered the call.

Example

Request

GET /call_logs?limit=1&from=2012-02-19T15:00:00Z&to=2012-02-12T15:00:00Z

Response

Status: 200 OK
{
  "total": 281,
  "call_logs": [
    {
      "id": 20,
      "started_at": "2012-02-23T13:59:43+01:00",
      "status": "answered",
      "duration": 64,
      "direction": "incoming",
      "caller": {
        "id": null,
        "type": "external",
        "hidden": false,
        "number": "4571999900",
        "name": "John Doe"
      },
      "callee": {
        "id": 321,
        "type": "reception",
        "name": "Hovednummer",
        "number": "4571990808"
      },
      "answered_by": {
        "id": 431,
        "type": "employee",
        "name": "Ben Bo"
      }
    }
  ]
}