Consent
Record user consent
Record a website visitor's consent preferences. Use this to track which cookie/data categories a visitor has accepted or rejected. The consent record is stored and can be retrieved later for compliance audits.
post/api/v1/consent
Request
- Base URL: https://policyforge.co
- URL: https://policyforge.co/api/v1/consent
- Auth: HTTP bearer
Request body
Example request
{
"user_id": "visitor_abc123",
"policy_version": "v2.1",
"consents": {
"essential": true,
"analytics": true,
"marketing": false
}
}Response
Consent recorded
Example response
{
"status": "recorded"
}Changes
No recorded changes to this operation across all 1 revision of this API.