API Reference
Reference for the API
Get consent by ID
cURL
curl --request GET \ --url https://cookiechimp.com/api/v1/consents/{id} \ --header 'Authorization: <api-key>'
{ "id": "consent321", "session_id": "sess123", "user_id": "user456", "user_preferences": { "accept_type": "all", "accepted_categories": [ "cat1", "cat2" ], "rejected_categories": [ "cat3", "cat4" ], "accepted_services": { "company1": [ "cookie1", "cookie2" ] }, "rejected_services": {} }, "created_at": "2023-01-20T12:46:30Z" }
ID of the resource
Consent
Show child attributes
Unique identifier for the consent
ID of the session
Date and time when the consent was created
ID of the user set by your website
Was this page helpful?