Guides
Publish your first consent form
Configure purposes, publish a version, create a key, and collect a receipt.
Publish your first consent form
Goal
A published consent version, a publishable key, and at least one receipt.
Prerequisites
- Account, organization, and project (Access)
Steps
Workflow · Consent go-live
- Open the project → Consent.
- Add categories and purposes (at least one required purpose).
- Edit notice title, description, and labels.
- Click Publish — creates an immutable consent version.
- Open Develop → Create publishable key → copy
pk_live_…once. - Install SDK and call
Anumati.initwith the key and your Erasure origin. - Accept the notice in a browser.
- Confirm a row under Receipts.
npm install @erasurehq/anumatiimport { Anumati } from "@erasurehq/anumati";
const client = await Anumati.init({
publicKey: "pk_live_…",
apiBaseUrl: "https://app.erasurehq.in", // origin only
});Verify: banner on first visit → accept → reload with no banner if stored consent valid → Receipts / Develop shows live traffic.
Verify
| Check | Expected |
|---|---|
| Versions | At least one published version |
| Key | Key exists (raw secret only at create time) |
| Receipts | ≥1 receipt after accept |
Next
- Connect PostgreSQL if you need deletion
- SDKs for deeper integration notes