Skip to content

Consent

consent_stats_get

Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d).

Tool

Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d).

Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d). Returns integer percentages 0..100; due to per-bucket rounding the sum may be 99..101. Read-only.

HTTP
GET /consent/consent/stats

Arguments

NameTypeRequiredDescription
rangestringTime window for aggregation in days, e.g. "30d". Omit to use the server default (30d). Maximum: 365d.

Response

FieldTypeAlwaysDescription
rangeobject
totalinteger
custom_pctinteger
by_categoryobject
deny_all_pctinteger
accept_all_pctinteger

Try it

Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d).

When to use

Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d). Returns integer percentages 0..100; due to per-bucket rounding the sum may be 99..101. Read-only.

Example

Ask your agent something like this:

Returns aggregated consent decision stats for the current product over a configurable window (default 30d, max 365d).

The agent will invoke consent_stats_get with these arguments:

{}

Esc

Start typing to search the docs.

navigateselect