API Reference
Reference for the API
List all consents
cURL
curl --request GET \ --url https://cookiechimp.com/api/v1/consents \ --header 'Authorization: <api-key>'
{ "pagination": { "prev_url": "/api/v1/consents?page=", "next_url": "/api/v1/consents?page=2", "count": 4, "page": 1, "prev": null, "next": 2 }, "data": [ { "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" } ] }
Number of resources to return
1 <= x <= 100
Number of resources to skip
x >= 0
Field to sort by
Sort order
asc
desc
ID of the session to filter by
ID of the user to filter by
List of consents
Show child attributes
{ "prev_url": "/api/v1/consents?page=", "next_url": "/api/v1/consents?page=2", "count": 4, "page": 1, "prev": null, "next": 2}
Was this page helpful?