> Source: https://vitna.ai/docs/api/v1/engine/org-audit-log
> Raw Markdown: https://vitna.ai/docs/api/v1/engine/org-audit-log.md
> Corpus index: https://vitna.ai/llms.txt

# Organisation SIEM audit trail

Export a read-only, SHA-256 hash-chained `vitna-audit-log-v1` stream of governance, identity, security, and billing events for an authenticated organisation in JSON, JSONL, ArcSight CEF, or CSV format.

```
GET /api/v1/org/audit-log
```

```
Authorization: Bearer vitna_key_...
```

```bash
curl "https://vitna.ai/api/v1/org/audit-log?format=jsonl&since=2026-12-01" \
  -H "Authorization: Bearer vitna_key_..."

curl "https://vitna.ai/api/v1/org/audit-log?format=cef&category=security&download=1" \
  -H "Authorization: Bearer vitna_key_..."
```

Accepts either an organisation platform credential (`vitna_key_...`) or push credential (`vitna_push_...`). Reads append-only records across decisions, org memberships, credential lifecycle, webhooks, subscriptions, and prepaid PAYG credit grants without exposing token digests or webhook signing secrets.

## Query parameters

| Parameter | Meaning |
|---|---|
| `format` | Output format: `json` (default), `jsonl` (Datadog, Snowflake, S3), `cef` (Splunk, QRadar, Sentinel), or `csv` (RFC 4180 with formula-injection neutralization) |
| `since` | Optional lower bound (`YYYY-MM-DD` or RFC 3339 UTC timestamp) |
| `until` | Optional upper bound (`YYYY-MM-DD` or RFC 3339 UTC timestamp) |
| `category` | Optional category filter: `governance`, `identity`, `security`, or `billing` |
| `action` | Optional exact action filter (for example `key.revoked`, `member.removed`, `decision.accepted`) |
| `actor` | Optional case-insensitive substring filter on `actor` |
| `limit` | Page size from `1` to `1000` (default `200`) |
| `cursor` | Opaque cursor from `meta.nextCursor` or the `X-Vitna-Next-Cursor` header |
| `download` | When `1` or `true`, set `Content-Disposition: attachment` |

## Tamper-evident hash chain

Every event carries `prevHash` and `eventHash` computed as SHA-256 over the canonical sorted JSON of `{ prevHash, ...event }`. Each response returns `X-Vitna-Audit-Chain-Head` and `X-Vitna-Audit-Genesis-Prev` so SIEM pollers can verify continuous chain integrity across cursor pages without losing or reordering an event.

## Response shape (`format=json`)

```json
{
  "schema": "vitna-audit-log-v1",
  "orgId": "convexity",
  "genesisPrevHash": "0000000000000000000000000000000000000000000000000000000000000000",
  "chainHeadSha256": "6b2f8c1d9a4e7b0c5d3f1a8e2b4c6d9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d",
  "count": 1,
  "events": [
    {
      "id": "key:2:revoked",
      "occurredAt": "2026-12-04T15:00:00.000Z",
      "orgId": "convexity",
      "category": "security",
      "action": "key.revoked",
      "actor": "org-admin",
      "target": "key:2:ci-runner",
      "outcome": "success",
      "summary": "Revoked push API key ci-runner (Rotated)",
      "metadata": {
        "keyId": 2,
        "label": "ci-runner",
        "reason": "Rotated",
        "scope": "push"
      },
      "prevHash": "0000000000000000000000000000000000000000000000000000000000000000",
      "eventHash": "6b2f8c1d9a4e7b0c5d3f1a8e2b4c6d9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d"
    }
  ],
  "meta": {
    "generatedAt": "2026-12-04T15:00:00.000Z",
    "orgId": "convexity",
    "format": "json",
    "totalMatched": 1,
    "hasMore": false,
    "nextCursor": null
  }
}
```
