Skip to content

Get a single cookie-consent by id

GET
/cookie-consents/{id}
id
required
string

DocumentId

OK

object
data
object
actor_email
string
visitor_id

Anonymous visitor identifier (client-generated UUID) — used when there is no authenticated user.

string
necessary
boolean
analytics
boolean
marketing
boolean
policy_version

Cookie policy version this consent was recorded against — used to detect re-consent needs when the policy changes.

string
ip_address
string
user_agent
string
consented_at
string format: date-time
withdrawn_at
string format: date-time
organisation
One of:

DocumentId reference to api::organisation.organisation

string
documentId
string
id
integer
createdAt
string format: date-time
updatedAt
string format: date-time
publishedAt
string format: date-time
nullable

Missing or invalid authentication

Not authorized (tenant scope or capability)

Not found