Cookie Guard

Integrate Cookie Guard in minutes — REST API, WordPress plugin, and embed widgets.

https://cookie.api.jetweb.appREST APIEU-hosted

Overview

Cookie Guard is a drop-in consent banner that blocks tracking scripts until the visitor consents, detects the visitor language, shows legally-reviewed copy in 62 languages, and stores a tamper-proof audit trail for regulators.

Quick start

Add the script tag below to your site with your site ID. The banner renders on first paint and blocks every tracker until the visitor accepts.

html
<script
  src="https://cookie.api.jetweb.app/widget.js"
  data-site-id="YOUR_SITE_ID"
  async
></script>

Authentication

Every API endpoint requires a Bearer token. Generate one in the dashboard under "API Keys" for the relevant product. Keep tokens server-side — never commit them to public repositories or ship them in frontend bundles.

bash
Authorization: Bearer YOUR_API_KEY

Endpoints

Base URL: https://cookie.api.jetweb.app

GET
/api/sites
List the sites registered to the account.
POST
/api/sites/:id/scan
Trigger an on-demand scanner run for a given site. Returns the detected cookies and scripts.
GET
/api/sites/:id/consents
List stored consent records for a site (audit export).
POST
/api/consents
Record a consent manually (for server-rendered apps that cannot use the client widget).

Integrations

WordPress, Shopify, and static sites use the one-line script tag. For custom SPAs, call the REST API directly to record consent and apply the blocklist.