App öffnen
Moonborn — API · admin

Verify audit_log hash chain integrity (per-org tamper detection)

Walks the audit_log SHA-256 hash chain for an org and reports whether any row was modified after insert. Use this from incident response runbooks when you suspect compromise; CI cron also calls it nightly per org.

POST/v1/admin/audit/verify-chainscope · Bearer (API key or session JWT)
Request body
FieldTypeDescription
orgIdreqstring
pageSizenumber

Responses

200Chain verdict (valid or break with locator)
403Forbidden — platform admin only
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring

Examples

cURL
curl -X POST https://api.moonborn.co/v1/admin/audit/verify-chain \
  -H "Authorization: Bearer $MOONBORN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "orgId": "<string>"
    }'
TypeScript
import Moonborn from '@moonborn/sdk';

const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });

const result = await client.admin.adminVerifyAuditChain({
  orgId: "<string>",
});
Python
import os
from moonborn import Moonborn

client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])

result = client.admin.admin_verify_audit_chain(
    org_id="<string>",
)