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.
<script
src="https://sdk.expressconsent.com/sdk/v1/sdk.js"
data-ec-cid="YOUR_CID"
></script>2. Capture on submit
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 Record (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.
Disclosure Tracking
Tag disclosure text and track agreement status in your CDRs.
Highlighting & Masking
Auto-highlighted consent buttons, manual overrides, and sensitive field redaction.
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 & Package CDRs
Bundle CDRs into composite evidence documents for multi-step consent flows.