Fetch call history

Request

GET https://api.46elks.com/a1/calls

Optional request parameters

Parameter Example Description
start 2018-02-14T09:52:07.302000 Retrieve calls before this date.
end 2018-02-14T09:52:07.302000 Retrieve calls after this date.
limit 30 Limit the number of results on each page

Response structure

Example JSON response
{
  "data": [
    {
      "direction": "outgoing",
      "from": "+46766861004",
      "to": "+46700371815",
      "created": "2018-02-20T11:55:27.756000",
      "owner": "ufb9e21cb046b15feeed314e732a0e9d1",
      "actions": [
        {
          "connect": "+46704508449",
          "result": "success"
        }
      ],
      "start": "2018-02-20T11:55:41.528000",
      "state": "success",
      "cost": 11400,
      "timeout": 60,
      "duration": 30,
      "legs": [
        {
          "duration": 17,
          "to": "+46704508449",
          "state": "success",
          "from": "+46766861004"
        }
      ],
      "id": "c70b23624c022a93a87907712cf804aca"
    },
    // ...
  ],
  "next": "2018-02-20T10:48:03.349000"
}
Parameter Description
data list of calls with the same format as in get call by id.
next start tme for the next page if more calls are available

Additional info

At most 100 calls can be retrieved at once. Use the start and end parameters to page through the history.