Get operation log overview

Summarize operation-record counts for the current identity in the current workspace, so you can quickly see the counts of successful and failed operations. This API does not return individual operation records and does not support filters.

GET https://moi.matrixorigin.cn/newmoi/audit/logs/overview

Preparation before calling

Prepare a personal access token with access to the current workspace and the current workspace ID.

Query parameters

curl "https://moi.matrixorigin.cn/newmoi/audit/logs/overview" \
  -H "X-API-Key: $AI_STUDIO_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

This API accepts no additional query parameters.

Success response

On success, the API returns a summary of operation records for the current identity.

{
  "code": "OK",
  "msg": "OK",
  "data": {
    "total": 3,
    "success": 2,
    "failed": 1
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.total

integer

Total number of operation records.

data.success

integer

Number of successful operations.

data.failed

integer

Number of failed operations.

Error response

{
  "code": "ErrServer",
  "msg": "Internal server error",
  "data": null
}

Field

Type

Description

code

string

Error code.

msg

string

Error message.

data

null

Next steps

To inspect individual operations, list operation logs.

Last updated on