For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/list-audit-log-entries.md. Documentation index: https://www.pubnub.com/llms-full.txt.
List audit log entries
GET/v2/audit-log
Lists the audit log entries of the account that owns the credential.
Requirements:
- The credential must carry the account-level
audit-log:readpermission. Service integrations created before this permission existed have to be recreated with the Audit Log resource. - The account must be on a paid plan. Free-tier accounts receive a
403plan-required error.
Entries can be filtered by event type and time range, are ordered by timestamp and are paged with a cursor.
Request
Example
{
"data": [
{
"id": "string",
"timestamp": "string",
"initiator": {
"type": "User",
"id": "string"
},
"eventType": "string",
"labels": {},
"correlationId": "string",
"authentication": "string",
"client": "CLI"
}
],
"count": 0,
"nextCursor": "string"
}Example
{
"statusCode": 0,
"error": "BadRequest",
"message": [
"string"
]
}Example
{
"statusCode": 0,
"error": "Unauthorized",
"message": [
"string"
]
}Example
{
"statusCode": 0,
"error": "Forbidden",
"message": [
"string"
]
}Example
{
"statusCode": 0,
"error": "InternalError",
"message": [
"string"
]
}