POST/v1/preferenceanalytics/summary

Create preferenceanalytics summary

Not yet documented — no summary in the API source.

RequiresAuthorization: Bearer sk_...tenant_id

Request body application/json

fromstring (date-time)
tostring (date-time)
businessUnitIdstringnullable

Responses

optInOutTimeSeriesarray of objectTimeSeriesPointnullable
datestringnullable
optInCountinteger (int32)
optOutCountinteger (int32)
pageSubmissionsarray of objectMetricPointnullable
labelstringnullable
valueinteger (int32)
preferenceBreakdownarray of objectMetricPointnullable
labelstringnullable
valueinteger (int32)
channelDistributionarray of objectMetricPointnullable
labelstringnullable
valueinteger (int32)
curl --request POST \
  --url 'https://api.4comply.io/v1/preferenceanalytics/summary' \
  --header 'Authorization: Bearer sk_...' \
  --header 'tenant_id: your-tenant-id' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "2026-09-07T12:00:00Z",
  "to": "2026-09-07T12:00:00Z",
  "businessUnitId": "00000000-0000-0000-0000-000000000000"
}'