Skip to main content

Get Audit Log Details API

Introduction

Queries audit log details for the current organization by scope.


Plan Description

This is a paid advanced feature. For details, contact our Sales Team.


API Version

API Version

Updated On

Description

v1

2026-05-28

Initial release


API Call

Rate Limit: 30 requests/second

Method: POST

Request Parameters:

Parameter

Type

Required

Description

domain

String

Yes

The log scope.

time_range.start

String

Yes

The query start time in UTC. Format example: 2026-04-01T00:00:00.000Z.

time_range.end

String

Yes

The query end time in UTC. Format example: 2026-04-13T23:59:59.000Z.

event_types

String[]

No

The list of event types. If omitted, all event types supported by the current log scope, namely domain, are queried.

limit

Number

No

The number of records returned per request. Default: 200. Maximum: 200.

cursor

String

No

The pagination cursor. Omit this parameter for the first query. To query the next page, use the cursor returned in the previous response.

filters

Object

No

Filter conditions.

Notes:

  1. The span of time_range must not exceed 31 days.

  2. Each request can query only one log scope, namely one domain.

  3. If a filters field that is not supported by the current log scope, namely domain, is passed, a parameter error will be returned.

  4. Pagination is sorted by event time in descending order.

Request Example

{

"domain": "api",

"time_range": {

"start": "2026-04-01T00:00:00.000Z",

"end": "2026-04-13T23:59:59.000Z"

},

"event_types": [

"api.request.invoke_failed"

],

"filters": {

"outcomes": [

"failure"

],

"endpoints": [

"/api/v5/app/list"

]

},

"limit": 100

}

Response Parameters

Parameter

Description

has_more

Indicates whether more pages are available.

cursor

The cursor for the next page. Returned when has_more is true.

items

The list of audit logs.

items[].event_id

The event ID in the format {collection}:{id}.

items[].event_time

The event occurrence time as a UTC time string.

items[].event_type

The standard event type.

items[].domain

The audit log scope.

items[].tenant

Organization information.

items[].actor

Information about the actor.

items[].event

Event information.

items[].resource

Information about the operated resource.

items[].context

Scenario context.

items[].detail

Event details.

Response Example

{

"has_more": true,

"cursor": "MTc3NjE1OTAwMDAwMCw2NjExMjIzMzQ0NTU2Njc3ODg5OWFhYmI=",

"items": [

{

"event_id": "api_request_logs:66112233445566778899aabb",

"event_time": "2026-04-13T09:30:00.000Z",

"event_type": "api.request.invoke_failed",

"domain": "api",

"tenant": {

"id": "58744c7322577d7b5ee6c8f5"

},

"actor": {

"type": "member",

"id": "58744c7322577d7b5ee6c8f5",

"ip": "203.0.113.10",

"user_agent": "Mozilla/5.0"

},

"event": {

"category": "api",

"action": "invoke",

"outcome": "failure",

"severity": "medium"

},

"resource": {

"type": "api",

"id": "/api/v5/app/list",

"name": "/api/v5/app/list"

},

"context": {

"endpoint": "/api/v5/app/list"

},

"detail": {

"err_code": 17017

}

}

]

}


Filter Conditions

Log Scope (domain)

Supported Filter Fields

Description

login

actor_ids

Filters by actor member ID.

platform

actor_ids

Filters by actor member ID.

app_builder

actor_ids
app_ids
entry_ids
types

Filters by actor member ID, app ID, form/dashboard ID, or operation object.

kms

actor_ids

Filters by actor member ID.

Filter Field Descriptions

Parameter

Type

Description

filters.actor_ids

String[]

The list of actor member IDs.

filters.app_ids

String[]

The list of app IDs. Supported only when the log scope is app management.

filters.entry_ids

String[]

The list of form, dashboard, and other entry IDs. Supported only when the log scope is app management, namely app_builder.

filters.types

String[]

The underlying raw log types. Supported only when the log scope is app management. In general, it is recommended to use the event_types parameter first.

filters.key_ids

String[]

The list of API Key names. Supported only when the log scope is api.

filters.endpoints

String[]

The list of API endpoints. Supported only when the log scope is api.

filters.outcomes

String[]

API response status. Supported values: success, failure.

Did this answer your question?