Skip to content
IQ

Compliance

Last updated: October 24, 2026.

This page walks the gateway's SOC2 posture: the audit-chain primitive that tamper-evidences every state-changing event, the SOC2 evidence pack that bundles a period for an auditor in one ZIP, and Merkle backup.

The audit-chain primitive and the SOC2 evidence-pack composer are live. The Merkle backup primitive is built but not enabled in production; the section below states what that means for a reviewer.

IQ is not currently claiming SOC2 Type I or Type II compliance and does not represent that it has completed a SOC2 audit. The tooling on this page produces evidence for your own auditor; a SOC2 report, if one exists, is provided separately under NDA.

The audience is a SOC2 auditor working through the Trust Services Criteria for the gateway. Each section names the surface, the operator endpoint, and the verification step you can run yourself using the integrity check on the Audit log page.

Audit-chain primitive

Status: Live today. The audit-chain primitive and its verifier endpoint are in force in production. Writing the chain runs on every plan; reading it back is a Team-plan feature (see below).

Audit-log rows can carry two extra fields:

  • A chain hash: a hex hash of the row's contents and the prior row's chain hash, keyed with a per-workspace chain secret.
  • A previous-hash pointer: the chain hash of the prior row for the same org.

The verifier computes the hashes and returns the result without exposing the chain secret.

The chain is forward-only from the cutover row: the verifier reports the pre-chain epoch as out of scope.

The chain shape mirrors a git commit-hash chain. Deleting a chained row can leave a detectable gap.

The verifier endpoint:

GET https://gateway.iq-routing.com/admin/compliance/audit-chain-verify?org_id=<uuid>
Authorization: Bearer <session token>

It walks the chain forward for one org, recomputes each row's hash, and returns a boolean verdict plus the first divergent row id (null if the chain holds end to end) plus the counts of rows verified and pre-chain rows skipped. A cross-org probe (an org you are not a member of) returns 404. Reading the chain back is a Team-plan feature: a Free or Trial org gets 402 from this endpoint (writing to the chain is unaffected and continues on every plan). The response carries X-Request-Id, like every gateway response, for correlating a specific run. On Team or above, an operator can run the verifier before each evidence-pack export using the integrity check on the Audit log page.

SOC2 evidence pack

Status: Live today, on the Enterprise plan. The SOC2 evidence-pack composer bundles one period's audit history into a single ZIP for an auditor. Access to the SOC2 and HIPAA packs is limited to Enterprise organisations; the GDPR DSAR export below is open to every plan. The ZIP carries audit-log.json with the chain columns intact so the auditor re-runs the chain verifier offline. The full ZIP carries:

  • audit-log.json: every audit row in the period with the chain columns intact so the auditor can re-run the chain verifier offline.
  • key-vault-access.csv: the four reveal-action audit terms (api_key_revealed, api_key_reveal_blocked, api_key_reveal_ip_blocked, api_key_reveal_hardware_token_blocked) joined to a normalised result column.
  • webhook-deliveries.csv: every webhook delivery with its delivery status, attempt number, latency, and a dead-letter flag, with the destination URL SHA-256 hashed rather than shown.
  • anomaly-events.csv: every anomaly the detector surfaced.
  • role-assignments.csv: every role grant and revocation.
  • chain-verify.py: a self-contained pure-stdlib script that re-runs the chain verifier against audit-log.json so the auditor does not need network access to the gateway.
  • manifest.json: pack metadata plus row counts per file.
  • README.md: an auditor-facing walk-through naming each file plus the offline verifier invocation.

The bundled files run through the gateway's offline redactor, which masks a few common identifier types, such as email addresses and payment card numbers, as [REDACTED:TYPE] markers. It does not catch every kind of personal data, so review the files before you share them. Source IPs are deliberately left intact because an access-trail review needs the literal value. The chain hash on each row was committed against the un-redacted canonical form, so an offline recompute reads clean only when the operator supplies the un-redacted view.

The endpoint

POST https://gateway.iq-routing.com/admin/compliance/evidence-pack?org_id=<uuid>
Authorization: Bearer <session token>
Content-Type: application/json

{
  "period_start": "2026-04-01",
  "period_end":   "2026-04-30"
}

Workspace owners and admins on Enterprise can download it. Other requests are refused with an error that depends on the caller's session, plan, role and workspace access. The shared export allowance applies. The 1-year period cap is enforced server-side: a request with period_end - period_start > 365 days returns a 400 with the inline message "Evidence pack period exceeds 1-year cap". A reversed period returns 400 with the message period_start must be <= period_end. The response carries X-Request-Id for correlating a specific export attempt.

IQ attempts to write a soc2_evidence_pack_exported audit entry before the download. The row records who exported and the period, but not the ZIP contents. If the pack's redaction step fails, IQ withholds the download and returns HTTP 503.

The manifest

manifest.json carries the pack metadata so the auditor can spot a truncated download immediately:

{
  "org_id":               "org_5d9f...",
  "period_start":         "2026-04-01",
  "period_end":           "2026-04-30",
  "generation_timestamp": "2026-05-01T12:30:00+00:00",
  "gateway_version":      "x.y.z",
  "row_counts": {
    "audit-log.json":          1247,
    "key-vault-access.csv":       8,
    "webhook-deliveries.csv":    92,
    "anomaly-events.csv":         3,
    "role-assignments.csv":       6
  }
}

The manifest carries exactly those keys; a caller-supplied key that is not on the whitelist is dropped rather than written through. The exporting actor is recorded on the audit row rather than in the manifest.

The row counts in the manifest match the row counts in each bundled file. A mismatch is the canonical "truncated download" signal and the auditor should re-export.

The README

README.md walks the auditor through the bundle in plain prose. It names each file, the column meanings, and the offline verifier invocation. The verifier runs as:

python chain-verify.py audit-log.json

It prompts for the per-org chain secret on stdin, which the operator supplies out of band. The bundle does not include the secret. The script prints ok on a clean walk and exits zero, or prints inconsistency at row <id> and exits one on the first divergence. The bundled audit-log.json has redacted metadata, so the walk reads clean only when you supply the un-redacted view for the redacted fields. Run on the redacted file alone, the script can report an inconsistency at the first row whose metadata was redacted; that is expected, and it is why the un-redacted view is needed. The script also catches reorder, fork, cycle, and mid-chain deletion when the export runs from genesis. A windowed export proves the linkage and content of the rows it contains but cannot prove the bundle is complete. The Merkle root below is designed to be the separate anchor for that, and it is not enabled in production, so a windowed export carries no completeness anchor today.

Shared export allowance

Compliance packs, audit exports, Merkle verification and some reports share one allowance: five requests per hour per caller in each workspace, enforced on a best-effort basis. Requests over it return HTTP 429.

Merkle backup

Status: Built, not enabled in production. Merkle backup is designed to seal one root per workspace each day. The audit chain remains the active tamper-evidence control.

The verifier endpoint

POST https://gateway.iq-routing.com/admin/compliance/audit-merkle-verify?org_id=<uuid>
Authorization: Bearer <session token>
Content-Type: application/json

{
  "period_start": "2026-04-01",
  "period_end":   "2026-04-30"
}

The verifier returns one integrity_status for the period: verified, pending or inconsistent. verified can also mean the period had no chained events to check. The active audit chain cannot show whether the latest records were removed. The response carries X-Request-Id for correlating a specific run.

On Enterprise, workspace owners and admins can open Audit log → Advanced verification and enter a start date and an end date to run the workspace Merkle check.

GDPR DSAR pack

Status: Live today. The GDPR DSAR composer and its export endpoint are in force in production.

The GDPR DSAR (Data Subject Access Request) composer mirrors the SOC2 evidence-pack primitive but scopes the export to one subject (a single user) inside one org for one period. The pack covers Articles 15, 17, and 30 of the GDPR: Article 15's right of access, Article 17's right to erasure, and Article 30's records of processing activities.

The composer assembles nine files into one ZIP:

  • subject-access-log.json: every audit row tagged with the subject id for the period, ordered by (created_at, id). Carries the audit chain columns intact so the offline verifier still works.
  • subject-identity.json: the subject's own identity record (id, email, name, creation date) plus their org membership role, per Article 15(3). It is left un-redacted, because this is the subject's own access copy.
  • subject-held-data.json: the held processing content the subject's requests fall under, meaning stored prompt and response bodies plus agent-session usage, scoped to the requested org. Also un-redacted, and not bounded by the one-year audit window, because Article 15(3) is about the data held rather than a one-year slice. A row limit bounds the file so a very long processing history cannot stream unbounded. Prompt and response text is included only when the person generating the pack is the subject. A pack an owner or admin generates for another member lists that member's requests (id, sensitivity, time) without the text. Any member can download their own pack, with the text, from Download my data on the Audit log page.
  • data-processing-register.json: the purposes, data categories and retention periods recorded for the subject. It does not state a lawful basis.
  • deletion-log.csv: every erasure event per Article 17. The gateway emits a subject_data_deleted_account event on account erasure, and those rows land in this file.
  • data-transfer-log.csv: a placeholder that is empty today. It is not a record of cross-border transfers.
  • retention-policy-snapshot.json: the workspace's retention settings and plan at export time.
  • manifest.json: pack metadata plus row counts per file plus the subject_id and the period bounds. The exporting actor lives on the audit row rather than in the manifest.
  • README.md: an auditor-facing walk-through naming each file plus the offline chain-verifier invocation.

The retention-policy snapshot reports what your org's configuration actually is at export time, and it is a snapshot rather than a statement of policy. The authoritative description of what the gateway retains, in particular the Zero Data Retention boundary and what stays recorded even with it on, lives on the security page and this page defers to it rather than restating it in slightly different words. If the two ever read differently, the security page is the one to hand your reviewer.

The endpoint

POST https://gateway.iq-routing.com/admin/compliance/gdpr-dsar-pack?org_id=<uuid>
Authorization: Bearer <session token>
Content-Type: application/json

{
  "subject_id":   "user_5d9f...",
  "period_start": "2026-04-01",
  "period_end":   "2026-04-30"
}

Any member can export their own data; exporting another member's data needs the owner or admin role. The endpoint then rate-limits requests using the shared export allowance. A request for an unknown subject returns 404 after the role and rate-limit checks pass.

The 1-year cap is enforced server-side: a request with period_end - period_start > 365 days returns 400 with the inline message "GDPR DSAR pack period exceeds 1-year cap". The response carries X-Request-Id for correlating a specific export attempt.

IQ attempts to write an audit entry before the download. If the pack's redaction step fails, IQ withholds the download and returns HTTP 503.

The audit row

If written, the audit entry is tagged action = 'gdpr_dsar_pack_exported'. It identifies the caller and includes the period, the subject ID, and row counts from the manifest.

HIPAA audit-control export

Status: Not a HIPAA business associate today. IQ does not currently offer or sign a Business Associate Agreement and is not a HIPAA business associate. The tooling described here is HIPAA-oriented audit-control tooling for your own review, not a signed BAA or a HIPAA-readiness attestation. A workspace PII redaction setting can mask four kinds of identifier in message text -- email addresses, phone numbers, US Social Security numbers, and payment card numbers -- before a request reaches the model. It does not detect other PHI categories (names, addresses, and the rest pass through unredacted), it is not a HIPAA Safe Harbor de-identification control, and it is off by default for every workspace. There is no dashboard switch. A workspace owner or admin can turn it on through the settings API, or you can contact us to turn it on. Do not route protected health information (PHI) through the gateway.

The HIPAA audit-control export composer lands as a sibling instance of the SOC2 plus GDPR primitives. The pack covers §164.312(b) audit controls plus the Breach Notification Rule under 45 CFR §164.400-414 plus the workforce-training requirement, packaged for a covered-entity customer's own HIPAA review. It is not evidence of a Business Associate Agreement, because IQ has none with any workspace.

The composer assembles seven files into one ZIP:

  • phi-access-log.json: audit events tagged as PHI access per §164.312(b); empty in every export -- see "Empty by construction" below.
  • baa-metadata-snapshot.json: the org's plan tier and data-residency region at generation time. Carries baa_in_place: false rather than any BAA terms, since none exist. The file keeps its historical name.
  • breach-notification-log.csv: breach-notification events for the period; empty in every export, for the same reason as the PHI-access log.
  • audit-control-report.json: an aggregate report counting total events and distinct actors for the period; its PHI breakdown is always zero, though its other totals are real.
  • workforce-training-log.csv: workforce-training events for the period; empty in every export, for the same reason as the PHI-access log.
  • manifest.json: pack metadata plus row counts plus period plus the exporting org id.
  • README.md: an auditor-facing guide. It opens by stating plainly that IQ is not a HIPAA business associate and signs no BAA, before the file roster, and explains why the three always-empty logs are empty by construction rather than by finding.

Empty by construction

phi-access-log.json, breach-notification-log.csv, and workforce-training-log.csv are empty in every export IQ produces, and empty by construction rather than by finding: nothing in the gateway currently emits the PHI-access, breach-notification, or workforce-training events these files are composed from. A zero-row file under a HIPAA heading would otherwise read as a finding that nothing happened, rather than what it actually is. audit-control-report.json is not one of these three -- its event and actor totals count real audit rows, and only its PHI breakdown is structurally zero.

The endpoint

POST https://gateway.iq-routing.com/admin/compliance/hipaa-baa-pack?org_id=<uuid>
Authorization: Bearer <session token>
Content-Type: application/json

{
  "period_start": "2024-01-01",
  "period_end":   "2026-01-01"
}

Workspace owners and admins on Enterprise can download it. Other requests are refused with an error that depends on the caller's session, plan, role and workspace access. The shared export allowance applies.

There is no subject_id parameter because the export covers the workspace (the §164.312(b) audit-control requirement targets the covered entity's full PHI-touch history, not a single individual's record).

The 6-year cap matches the HIPAA §164.316(b)(2)(i) retention floor: policies, procedures, and documentation must be retained for six years from creation or the last date in effect, whichever is later. The composer pins the ceiling at 2192 days; a longer window returns 400 with "HIPAA audit-control export period exceeds 6-year cap". The response carries X-Request-Id for correlating a specific export attempt.

IQ attempts to write an audit entry before the download. If the pack's redaction step fails, IQ withholds the download and returns HTTP 503. The ZIP is named hipaa-audit-control-export-{org-slug}-{period_start}-{period_end}.zip.

The audit row

If written, the audit entry is tagged action = 'hipaa_baa_pack_exported'. It identifies the caller and includes the period and row counts from the manifest.

Cross-workspace Merkle

Status: Built, not enabled in production. The cross-workspace verifier is for IQ operators only.

Workspace owners and admins can use the workspace verifier.

See also

  • /docs/security -- the Zero Data Retention boundary and what stays recorded even with it on.
  • /docs/auth -- API keys, scopes, and the gw_live_ prefix used on the routing API, as distinct from the dashboard session tokens this page's endpoints use.
  • /docs/webhooks -- wiring an audit event like api_key_revealed into an external destination.