Skip to main content

The inline consent stub for a server-side plugin (WordPress plugin)

GET 

/api/public/consent/stub

Doc 106 §21 — what the WordPress plugin reads when its settings are saved and then hourly, with the widget key and the site's own address as Origin, so a WordPress site never pastes the stub: whether ConnectWiz consent is on, the install mode, the banner version and code — the stub's JavaScript WITHOUT its <script> tags, the same text the panel's install block carries (Consent Mode default with the site's region rules). code is null unless the page needs it: consent off, or mode B (the GTM template sets the defaults). Same keys, domain check, CORS and rate limit as getWebsiteTouchConfig. Cache-Control: private, max-age=300.

Request​

Responses​

The stub, or why there is none.