Docs API & Developer GET /api/v1/call-logs

GET /api/v1/call-logs

Fetch your inbound and outbound call history with filtering and pagination.


GET /api/v1/call-logs

Returns paginated call logs for your business.

Query parameters

ParameterTypeDescription
fromdate (Y-m-d)Filter from date
todate (Y-m-d)Filter to date
typestringinbound or outbound
per_pageintegerResults per page (max 100, default 20)

Request

curl -X GET "https://app.6xcom.com/api/v1/call-logs?from=2026-06-01&per_page=10" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Response

{
  "data": [
    {
      "id": 207,
      "direction": "inbound",
      "caller": "+447911123456",
      "agent": "John Doe",
      "duration": 142,
      "status": "answered",
      "started_at": "2026-06-20T10:30:00.000000Z"
    }
  ],
  "total": 179,
  "per_page": 10,
  "current_page": 1,
  "last_page": 18
}
Was this article helpful?