# Read the audit log

`GET /api/v1/audit-log`

Append-only: there is no create, update or delete route for audit entries. Cursor-paginated, most-recent-first.

Needs a full-access key (`*`). No narrower scope opens this route.

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | string | optional | Default 20, max 100. |
| `cursor` | string | optional | `next_cursor` from the previous page. |
| `actor` | string | optional | Filter by acting user id. |
| `from` | string | optional |  |
| `to` | string | optional |  |

## Responses

### 200

A page of audit entries.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
              },
              "actorId": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
              },
              "actorType": {
                "type": "string",
                "enum": [
                  "user",
                  "api_key",
                  "agent",
                  "system",
                  "platform_admin"
                ]
              },
              "method": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "resourceType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "resourceId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "statusCode": {
                "type": "integer"
              },
              "payloadDelta": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {}
              },
              "requestId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "occurredAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "actorType",
              "method",
              "path",
              "statusCode",
              "occurredAt"
            ]
          }
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "next_cursor"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
