---
title: "List Audit Log"
method: POST
path: "/log/audit/list"
tags: ["Log"]
---

# List Audit Log

`POST /log/audit/list`

Retrieves a list of audit logs for an account.

## Query parameters

- `startTime` string, date-time
- `endTime` string, date-time

## Response `200`

OK

- AuditSearchResult
  - `events` AuditEvent[], nullable
    - `eventType` 0 | 500 | 501 | 502 | 1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1050 | 1051 | 1052 | 1060 | 1061 | 1062 | 1063 | 1070 | 1071 | 1072 | 1073 | 1080 | 1081 | 1082 | 1083 | 1084 | 1085 | 1090 | 1091 | 1092 | 1093 | 1094 | 1100 | 1101 | 1102 | 1103 | 1105 | 1106 | 1107 | 1108 | 1109 | 1110 | 1111 | 1112 | 1113 | 1114 | 1115 | 1116 | 1200 | 1201 | 1202 | 1220 | 1221 | 1222 | 1223 | 1224 | 1230 | 1231
    - `timestamp` string, date-time — The timestamp of the audit event.
    - `relatedId` string, nullable — The Id of the related entity, if applicable.
    - `relatedName` string, nullable — The name of the related entity, if applicable.
    - `relatedType` integer, nullable — The type of the related entity, if applicable.
    - `targetId` string, nullable — The Id of the event target, such as the Query Id.
    - `targetName` string, nullable — The target resource name, such as a user's email or a connection name.
    - `targetType` integer, nullable — The type of the event target, such as a query or connection change.
    - `userId` string, nullable — The Id of user who performed the event.
    - `userName` string, nullable — The name of user who performed the event.
    - `userType` integer, nullable — The type of user who performed the event.

---

[API](https://skmtc.dev/cdata/apis/cdata-connect-ai-rest-api-embedded.md) · [All operations](https://skmtc.dev/cdata/apis/cdata-connect-ai-rest-api-embedded/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cdata/cdata-connect-ai-rest-api-embedded/revisions/c13133ad66c0/schema)
