# Get operation log overview

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

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.

```text
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](../../../../guides/ai-studio/resource-center/workspace.md#copy-a-workspace-id).

## Query parameters

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Input example

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

:::::
:::::{tab-item} Parameter description

This API accepts no additional query parameters.

:::::
::::::
:::::::

## Success response

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

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

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

:::::
:::::{tab-item} Field details

| 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

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

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

:::::
:::::{tab-item} Field details

| Field | Type | Description |
| --- | --- | --- |
| code | string | Error code. |
| msg | string | Error message. |
| data | null | — |

:::::
::::::
:::::::

## Next steps

To inspect individual operations, [list operation logs](list-operation-logs.md#filter-operation-logs).
