ErasureDocs
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

  1. Open the project → Consent.
  2. Add categories and purposes (at least one required purpose).
  3. Edit notice title, description, and labels.
  4. Click Publish — creates an immutable consent version.
  5. Open DevelopCreate publishable key → copy pk_live_… once.
  6. Install SDK and call Anumati.init with the key and your Erasure origin.
  7. Accept the notice in a browser.
  8. Confirm a row under Receipts.
npm install @erasurehq/anumati
import { 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

CheckExpected
VersionsAt least one published version
KeyKey exists (raw secret only at create time)
Receipts≥1 receipt after accept

Next