ExpressConsent developer docs

Add a script tag, call captureCDR() on form submit, store the returned cdrId. That’s the entire integration.

1. Add the SDK

Place this in your <head>. Replace YOUR_CID with the CID from your organization settings page in the dashboard.

html
<script
  src="https://sdk.expressconsent.com/sdk/v1/sdk.js"
  data-ec-cid="YOUR_CID"
></script>

2. Capture on submit

javascript
document.getElementById("myForm")?.addEventListener("submit", async (e) => {
  e.preventDefault();
  const result = await window.ExpressConsent.captureCDR();
  if (result) console.log("Evidence saved:", result.cdrId);
  e.currentTarget.submit();
});

3. Store the CDR ID

Save cdrId with your lead/user record. That ID is your evidence reference — use it to find the Certified Digital Receipt (CDR) in the dashboard or via the API.

Quickstart

Step-by-step integration with verification and error handling.

captureCDR() reference

All inputs, return values, and error behavior.

Highlighting & Masking

Emphasize consent buttons and redact sensitive fields.

API reference

Server-to-server endpoints for listing, collecting, and sharing evidence.

Troubleshooting

Fix missing CDRs, rendering issues, CSP blocks, and timeouts.

Sharing with Lead Buyers

Generate share URLs and give lead buyers access to consent evidence.

Sessions & Packages

Group CDRs for multi-step and co-registration flows.