Skip to main content
GET
/
consents
/
{id}
Get consent
curl --request GET \
  --url https://cookiechimp.com/api/v1/consents/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cookiechimp.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API token obtained from the login endpoint or the dashboard

Path Parameters

id
string
required

ID of the resource

Response

Consent

user_preferences
object
required
user_id
string

ID of the user set by your website

id
string

Unique identifier for the consent

session_id
string

ID of the session

created_at
string<date-time>

Date and time when the consent was created