> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Audit Log - GET /v1/workspaces/:workspace_id/audit

> Return a workspace's operation audit log (latest 200) via GET /v1/workspaces/:workspace_id/audit. Minimum role admin.

Return a workspace's operation audit log, newest first, up to 200 entries. Key actions such as KB creation and document upload are recorded.

## Endpoint

```http theme={null}
GET /v1/workspaces/:workspace_id/audit
```

## Authentication

`Authorization: Bearer <jwt>` or `X-API-Key <sk_...>`. Minimum role: **admin**.

## Path parameters

**workspace\_id** `string` *required*

Workspace id.

## Response

The response is an array; each element is an audit record:

**id** `string`

Record id (`aud_...`).

**workspace\_id** `string`

Owning workspace id.

**user\_id** `string`

Actor user id.

**action** `string`

Action type (e.g. `create_kb`, `upload_document`).

**object** `string`

Id of the object the action targeted.

**detail** `string`

Action detail (JSON string).

**created\_at** `string`

Occurred time (RFC3339).

## Example

```bash cURL theme={null}
curl https://memo.ariacompute.com/v1/workspaces/ws_01a2b3c4d5e6/audit \
  -H "Authorization: Bearer <jwt>"
```

```json 200 theme={null}
[
  {
    "id": "aud_01a2b3c4d5e6",
    "workspace_id": "ws_01a2b3c4d5e6",
    "user_id": "usr_01a2b3c4d5e6",
    "action": "create_kb",
    "object": "kb_01a2b3c4d5e6",
    "detail": "Product Docs",
    "created_at": "2026-10-12T08:05:00Z"
  }
]
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.