Record Logs

Get unified record audit logs (change + action) with filters and pagination

GET
/api/record-logs

Paginated, filterable per-record audit log. Two fetch modes: contact-hub (contactId) returns every log for a contact plus its conversations, applications and custom entities; single-entity (entityType + entityId) returns just that record. Filter by kind (change|action), changeCategory (state|field), field, action, actorUserId, actorType (user|system|automation|workflow) and a from/to date range. excludeCustomEntity drops linked custom-entity rows (used by the Main entity changes surface). Org-scoped; non-SUPERADMIN callers are pinned to their own org.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

contactId?string

Contact-hub mode: all logs rolling up to this contact.

entityType?string

Value in

  • "Contact"
  • "Application"
  • "Conversation"
  • "CustomEntity"
entityId?string
kind?string

Value in

  • "change"
  • "action"
changeCategory?string

Value in

  • "state"
  • "field"
field?string
action?string
actorUserId?string
actorType?string

Value in

  • "user"
  • "system"
  • "automation"
  • "workflow"
from?string
Formatdate-time
to?string
Formatdate-time
excludeCustomEntity?boolean
page?integer
Range1 <= value
Default1
size?integer
Range1 <= value <= 200
Default50

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/record-logs"
{  "success": true,  "data": [    {      "_id": "6a3b6b9b0b9ea0c1d6da9359",      "organizationId": "68d504c9aa4c0ca510f46fed",      "timestamp": "2026-06-25T06:43:40.825Z",      "kind": "change",      "entityType": "Contact",      "entityId": "6a390f4ac5cd810bd491c8fe",      "contactId": "6a390f4ac5cd810bd491c8fe",      "actor": {        "type": "user",        "userId": "68cd6b13f5b13e3d2da22e8f"      },      "field": "status",      "oldValue": "QA 11",      "newValue": "QA 22",      "changeCategory": "state"    }  ],  "meta": {    "total": 312,    "page": 1,    "size": 50  }}