---
title: "Get audit logs of entities"
method: GET
path: "/api_gateway/v2/audits"
---

# Get audit logs of entities

`GET /api_gateway/v2/audits`

This page provides you with information on entity audit log API.

## Query parameters

- `entityType` 'CUSTOMER' | 'CARD', required
- `entityId` integer, required
- `limit` integer
- `pageNo` integer
- `sortBy` string
- `sortOrder` 'ASC' | 'DESC'
- `startDate` string, date
- `endDate` string, date
- `referenceType` 'Identifier' | 'StandardField' | 'ExtendedField' | 'CustomField' | 'CustomerStatus' | 'CardStatus' | 'SubscriptionStatus' | 'CustomerMerge' | 'CardCustomField' | 'CommChannel' | 'CardExtendedField'
- `referenceValue` string
- `includeUserContext` boolean
- `source` string

## Response `200`

200

- object
  - `data` object[]
    - `updatedByUser` unknown
    - `updatedBy` integer
    - `orgId` integer
    - `entityType` string
    - `entityId` integer
    - `createdOn` integer
    - `requestId` string
    - `till` unknown
    - `store` unknown
    - `userContextDetails` unknown
    - `victimUserDetails` unknown
    - `survivorUserDetails` unknown
    - `source` string
    - `updatedByMode` string
    - `autoUpdateTime` integer
    - `events` object[]
      - `eventType` string
      - `updatedField` string
      - `additionalFields` object
        - `previousValue` string
        - `currentValue` string
      - `associateEntities` unknown
  - `pagination` object
    - `totalElements` integer
    - `totalPages` integer
    - `numberOfElements` integer
    - `number` integer

## Other responses

- `400` — 400

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/revisions/de241f2ed9b3/schema)
