Usage Guide

Basic Usage

Working with Multiple Purposes

# Add new purpose to existing agreement
consent_manager.add_purpose(
    agreement_id="agreement123",
    purpose={
        "id": "email-marketing",
        "name": "Email Marketing",
        "description": "Send marketing emails",
        "retention_period": 90 * 24 * 60 * 60  # 90 days
    }
)