Skip to content
Sign in Create account

GET audit/export

GET /api/v1/audit/export

Exports the organization's hash-linked audit rows for a date range with signed daily anchors and a signed manifest.

Authenticate with a portal session token.

Parameters

  • from string query
  • to string query

Responses

200 Successful response.

application/json ReceiptsAuditChainExport

  • anchors array of object required
  • canonical_preimages object required
  • entries array of object required
  • manifest object required
    • anchor_count integer required
    • entry_count integer required
    • exported_at string (date-time) required
    • first_id integer or null required
    • from string (date) required
    • jwks_uri string (uri) required
    • last_id integer or null required
    • org_id integer or null required
    • row_cap integer required
      Range: at most 50000
    • rows_available integer required
    • signature_alg string required
    • to string (date) required
    • truncated boolean required
    • type string required
      Value: "audit_log_chain_export_v1"
  • manifest_sha256 string required
  • manifest_signature string required

Generated sample

{
  "anchors": [
    {}
  ],
  "canonical_preimages": {},
  "entries": [
    {}
  ],
  "manifest": {
    "anchor_count": 0,
    "entry_count": 0,
    "exported_at": "2026-01-01T00:00:00Z",
    "first_id": 0,
    "from": "2026-01-01",
    "jwks_uri": "https://example.com",
    "last_id": 0,
    "org_id": 0,
    "row_cap": 0,
    "rows_available": 0,
    "signature_alg": "string",
    "to": "2026-01-01",
    "truncated": true,
    "type": "audit_log_chain_export_v1"
  },
  "manifest_sha256": "string",
  "manifest_signature": "string"
}
401 Authentication is required.

application/json object

  • error object required
    • message string required
    • code string required
      Value: "unauthenticated"
403 The account lacks audit export permission.

application/json object

  • error object required
    • message string required
    • code string required
      Value: "forbidden"
422 The audit export query parameters are invalid.

application/json object

  • error object required
    • code string required
      Value: "validation_error"
    • message string required
    • fields object required

      Other keys: array of string

429 Route rate limit exceeded.

Response headers

  • Retry-After string header
  • X-RateLimit-Scope string header

application/json object

  • error object required
    • code string required
      Value: "too_many_attempts"
    • scope string required
      Value: "route"
    • message string required
    • retry_after_s integer required
      Range: at least 1

text/html string