Configure OneTrust cookie scanning to auto-categorize cookies and trigger a rescan via API

domain: developer.onetrust.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In OneTrust, create an App Scan workflow for your domain and note the appId returned in the UI.
  2. Authenticate with an OAuth 2.0 client-credentials token scoped to CookieCompliance.Write.
  3. Trigger a rescan via POST https://{hostname}/api/cookiecompliance/v1/apps/{appId}/scan with an empty body or optional scanType field; capture the returned scanId.
  4. Poll GET https://{hostname}/api/cookiecompliance/v1/apps/{appId}/scan/{scanId}/status until the status field returns COMPLETED.
  5. Fetch the delta of added or removed cookies since the last scan via GET https://{hostname}/api/cookiecompliance/v1/apps/{appId}/scan/{scanId}/delta to identify newly appearing or removed trackers.
  6. Review uncategorized cookies in the delta response and call PATCH on each cookie record to assign the correct category (e.g., StrictlyNecessary, Performance, Targeting) before publishing the updated cookie declaration.

Known gotchas

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans