GET
/
consents
/
{id}
curl --request GET \
  --url https://cookiechimp.com/api/v1/consents/{id} \
  --header 'X-API-KEY: <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"
}

Authorizations

X-API-KEY
string
headerrequired

Path Parameters

id
string
required

ID of the resource

Response

200 - application/json
user_id
string

ID of the user set by your website

user_preferences
object
required
id
string

Unique identifier for the consent

session_id
string

ID of the session

created_at
string

Date and time when the consent was created