Event Logs

Get event logs with filters and pagination

GET
/api/event-logs

Paginated list of EventLog records, with optional filters (organizationId, userId, contactId, direction, automationTriggered) and a days lookback window. Powers the audit/event-log surface; non-SUPERADMIN callers are pinned to their own org.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value
Default50
organizationId?string
userId?string
contactId?string
direction?string
automationTriggered?string
days?number
Default7

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/event-logs"
{  "success": true,  "data": [    {      "_id": "65e0a0b0c0d0e0f0a0b0c0d0",      "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0",      "userId": "65b1f0a2c3d4e5f6a7b8c9d0",      "eventType": "message.received",      "direction": "inbound",      "automationTriggered": true,      "createdAt": "2026-05-18T14:30:00.000Z"    }  ],  "pagination": {    "currentPage": 1,    "totalPages": 7,    "totalCount": 312,    "hasNext": true,    "hasPrev": false  }}