Get started
01 / 01DocumentationCorpus · reference · markdown

Organisation SIEM audit trail

Source

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.

text
GET /api/v1/org/audit-log
text
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

ParameterMeaning
formatOutput format: json (default), jsonl (Datadog, Snowflake, S3), cef (Splunk, QRadar, Sentinel), or csv (RFC 4180 with formula-injection neutralization)
sinceOptional lower bound (YYYY-MM-DD or RFC 3339 UTC timestamp)
untilOptional upper bound (YYYY-MM-DD or RFC 3339 UTC timestamp)
categoryOptional category filter: governance, identity, security, or billing
actionOptional exact action filter (for example key.revoked, member.removed, decision.accepted)
actorOptional case-insensitive substring filter on actor
limitPage size from 1 to 1000 (default 200)
cursorOpaque cursor from meta.nextCursor or the X-Vitna-Next-Cursor header
downloadWhen 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
  }
}