What is Consent Management?
The Baanx Consent Management API (V2) provides a comprehensive system for collecting, tracking, and managing user consent throughout the user lifecycle. It enables compliant data collection with complete audit trails for regulatory requirements like GDPR, CCPA, and industry-specific regulations.All consent operations maintain an immutable audit trail for compliance reporting and regulatory audits.
Why Use Consent Management?
Regulatory Compliance
Meet GDPR, CCPA, and other data privacy regulations with complete audit trails
User Trust
Transparent consent collection builds trust with clear opt-in/opt-out mechanisms
Flexible Policies
Region-specific policy types (US vs Global) with different consent requirements
Audit Trail
Complete change history with timestamps, IP addresses, and user agent tracking
Consent Types
The API supports five distinct consent types:| Consent Type | Description | Required In |
|---|---|---|
eSignAct | Electronic signature agreement (E-Sign Act compliance) | US policy only |
termsAndPrivacy | Terms of service and privacy policy acceptance | All policies |
marketingNotifications | Marketing communications opt-in | All policies |
smsNotifications | SMS/text message notifications | All policies |
emailNotifications | Email notifications | All policies |
Policy Types
US Policy
Used for US-based users and deployments within the United States. Required Consents:- ✅
eSignAct(E-Sign Act compliance) - ✅
termsAndPrivacy - ✅
marketingNotifications - ✅
smsNotifications - ✅
emailNotifications
The US policy requires
eSignAct consent for compliance with the federal Electronic Signatures in Global and National Commerce Act (E-Sign Act).Global Policy
Used for international users and deployments outside the US. Required Consents:- ✅
termsAndPrivacy - ✅
marketingNotifications - ✅
smsNotifications - ✅
emailNotifications
The Global policy does not require
eSignAct consent as this is a US-specific regulatory requirement.Consent Status Values
Each consent can have one of three status values:| Status | Description | Use Case |
|---|---|---|
granted | User has provided consent | Initial opt-in, re-consent after revocation |
denied | User has explicitly refused consent | Opt-out during onboarding |
revoked | Previously granted consent has been withdrawn | User-initiated revocation, right to be forgotten |
Workflow Overview
The consent management workflow follows a structured lifecycle:Workflow Stages
1
Create Onboarding Consent
Collect consent during user registration using a temporary
onboardingId before a permanent userId exists.When: Registration forms, KYC processes, mobile app onboarding2
Link User to Consent Set
Associate the permanent
userId with the consent set after account creation completes.When: Post-registration linking, account activation, email verification completion3
Retrieve Consent Status
Check aggregated consent status for a user with short summary or full details.When: Login checks, feature access validation, compliance reporting
4
Track Changes with Audit Trail
Access paginated audit log of all consent changes with complete history.When: Compliance audits, regulatory reporting, user consent history review
5
Revoke Consent (Optional)
Allow users to withdraw specific consents while maintaining immutable audit trail.When: User settings, privacy preferences, right to be forgotten requests
HATEOAS Navigation
All API responses include a_links section for dynamic API discovery:
Key Features
Immutable Audit Trail
Every consent change is recorded with:- Timestamp: ISO 8601 date-time
- IP Address: User’s IP at time of consent
- User Agent: Browser/device information
- Before/After Snapshots: Complete state changes
Metadata Support
Enhance consent records with custom metadata:Flexible Retrieval
Choose between response modes based on your needs:- Short Mode: Status only (
complete,incomplete,none) - Full Mode: All consent sets with detailed records
