## GET /v1/account/audit-log

List your account's 100 most recent audit log events, newest first. Events record changes to limits, webhooks, the GitHub App installation, credit, refunds, auto-recharge, and the platform fee.

Required permissions: read:account.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "events": [
    {
      "created_at": str,
      "details": {
        "[str]": any
      },
      "id": str,
      "type": str
    }
  ]
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.account.audit_log()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.account.auditLog();
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/account/audit-log" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "events": {
      "items": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "details": {
            "additionalProperties": true,
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "system_limits_updated",
              "webhook_state_changed",
              "github_installation_created",
              "github_installation_removed",
              "github_installation_suspended",
              "github_installation_unsuspended",
              "credit_granted",
              "refund_issued",
              "auto_recharge_updated",
              "platform_fee_updated"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "created_at",
          "type",
          "details"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "events"
  ],
  "type": "object"
}
```
