Consent Events
Create consent event(s)
Compliance Requests
Consent State
Consent Types
Trackers
Health Check
Session
Site Client
Consent Events
Create consent event(s)
Create consent event(s) for the current user.
POST
/
{projectId}
/
consent-events
curl --request POST \
--url https://api.concord.tech/site-v1/{projectId}/consent-events \
--header 'Content-Type: application/json' \
--header 'x-session: <api-key>' \
--data '{
"items": [
{
"consentType": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "disclosure",
"subcategory": [
"<any>"
],
"label": "<string>",
"consentState": "implied",
"consentAction": "implied"
}
]
}'
{
"count": 123,
"items": [
{
"createdAt": [
"<any>"
],
"updatedAt": [
"<any>"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"concordId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"consentAction": "implied",
"consentDate": "2023-11-07T05:31:56Z",
"consentState": "implied",
"dateCreated": "2023-11-07T05:31:56Z",
"dateUpdated": "2023-11-07T05:31:56Z",
"consentType": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expirationDate": "2023-11-07T05:31:56Z",
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ipAddress": "127.0.0.1",
"domain": "localhost",
"geography": "<string>",
"userAgent": "<string>"
},
"submitter": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "disclosure",
"subcategory": [
"<any>"
],
"label": "<string>",
"version": 123
}
]
}
Authorizations
Path Parameters
Body
application/json
Available options:
implied
, viewed
, accepted
, declined
Available options:
implied
, user_click
, import
Available options:
disclosure
, communication
, privacy_setting
, custom
Response
201
application/json
Default Response
Available options:
implied
, user_click
, import
Available options:
implied
, viewed
, accepted
, declined
Available options:
disclosure
, communication
, privacy_setting
, custom
Maximum length:
128
curl --request POST \
--url https://api.concord.tech/site-v1/{projectId}/consent-events \
--header 'Content-Type: application/json' \
--header 'x-session: <api-key>' \
--data '{
"items": [
{
"consentType": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "disclosure",
"subcategory": [
"<any>"
],
"label": "<string>",
"consentState": "implied",
"consentAction": "implied"
}
]
}'
{
"count": 123,
"items": [
{
"createdAt": [
"<any>"
],
"updatedAt": [
"<any>"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"concordId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"consentAction": "implied",
"consentDate": "2023-11-07T05:31:56Z",
"consentState": "implied",
"dateCreated": "2023-11-07T05:31:56Z",
"dateUpdated": "2023-11-07T05:31:56Z",
"consentType": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expirationDate": "2023-11-07T05:31:56Z",
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ipAddress": "127.0.0.1",
"domain": "localhost",
"geography": "<string>",
"userAgent": "<string>"
},
"submitter": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "disclosure",
"subcategory": [
"<any>"
],
"label": "<string>",
"version": 123
}
]
}