OneTrust Scripts API

The Scripts APIs are used to manage publishing of scripts to websites.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /api/cmp/v1/applications/{id}/publish Publish an app's SDK configuration · Publish Application SDK #
Ask an LLM
“Can I publish the consent SDK configuration for a mobile application?”
“Is it possible to require reconsent when publishing an app's SDK?”
Tell an agent
Publish the SDK configuration for application {id}.
Publish app {id} SDK to production {production} for languages {langCodes}.
GET /api/cmp/v1/applications/{id}/script-details Get an application's script details · Get Script for Application #
Ask an LLM
“Where can I see the script details configured for a mobile app?”
“Can I check an application's consent script settings?”
Tell an agent
Get script details for application {id}.
Show the app script configuration of {id}.
PUT /api/cmp/v1/domains/publish Publish cookie script to a website (CMP v1) · Publish Script to Website #
Ask an LLM
“Can I publish my cookie consent script to a website through the CMP v1 endpoint?”
“Does the CMP publish call let me turn on auto-blocking and SPA support?”
Tell an agent
Publish the cookie script to website {website} via the CMP v1 endpoint.
Publish CMP script version {scriptVersion} to {website} with autoblock {autoblockEnabled}.
GET /api/cmp/v1/domains/scripts Get a website's script (CMP v1) · Get Script for Website #
Ask an LLM
“Can I fetch a website's consent script from the CMP v1 path?”
“Which script type does the CMP script lookup return for my site?”
Tell an agent
Get the website script for {website} from the CMP v1 endpoint.
Fetch the {scriptType} CMP script for site {website}.
GET /api/cmp/v1/domains/{domainId}/script-details Get script details for a domain ID · Get Script for Domain #
Ask an LLM
“Can I get script details using a domain's ID rather than its URL?”
“Where are the script settings for one domain stored?”
Tell an agent
Get script details for domain {domainId}.
Show the {scriptType} script details of domain ID {domainId}.
GET /api/cmp/v1/domains/{domainId}/scripts Download a domain's script files (CMP) · Download Script File #
Ask an LLM
“Can I download the published cookie script files to self-host them?”
“Does a domain need to be published before its script files can be downloaded?”
Tell an agent
Download the CMP script files for domain {domainId}.
Grab the script folder blob for published domain {domainId} from the CMP path.
GET /v1/script-integration/{domainId}/downloadscriptv2 Download a domain's script files (integration) · Download Script File #
Ask an LLM
“Is there a script-integration endpoint for downloading script files locally?”
“Can I pull script files through the downloadscriptv2 route?”
Tell an agent
Download script files for domain {domainId} via the script-integration endpoint.
Save domain {domainId}'s scripts locally using downloadscriptv2.
GET /v2/websites/scripts Get a website's script (v2) · Get Script for Website #
Ask an LLM
“Can I fetch a site's cookie script from the v2 websites endpoint?”
“What script does the v2 websites lookup return?”
Tell an agent
Get the v2 website script for {website}.
Fetch the {scriptType} script for {website} from the v2 websites path.
PUT /v2/websites/publish Publish cookie script to a website (v2) · Publish Script to Website #
Ask an LLM
“Can I publish a website's cookie script through the v2 websites endpoint?”
“Does the v2 publish let me suppress the banner or preference center?”
Tell an agent
Publish the cookie script to {website} via the v2 websites endpoint.
Publish v2 script to {website} for languages {languages} with reconsent {requireReconsent}.

Documentation

📖
Documentation
https://developer.onetrust.com/onetrust/reference/attribute-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/activity-log
📖
Documentation
https://developer.onetrust.com/onetrust/reference/preferences-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/banner
📖
Documentation
https://developer.onetrust.com/onetrust/reference/consent-receipts
📖
Documentation
https://developer.onetrust.com/onetrust/reference/applications
📖
Documentation
https://developer.onetrust.com/onetrust/reference/categorizations
📖
Documentation
https://developer.onetrust.com/onetrust/reference/domain-data
📖
Documentation
https://developer.onetrust.com/onetrust/reference/preferences
📖
Documentation
https://developer.onetrust.com/onetrust/reference/mobile-app-data
📖
Documentation
https://developer.onetrust.com/onetrust/reference/privacy-notice-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/collection-points
📖
Documentation
https://developer.onetrust.com/onetrust/reference/catalog-search-v1
📖
Documentation
https://developer.onetrust.com/onetrust/reference/classification
📖
Documentation
https://developer.onetrust.com/onetrust/reference/custom-scan
📖
Documentation
https://developer.onetrust.com/onetrust/reference/carbon-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/audit-records
📖
Documentation
https://developer.onetrust.com/onetrust/reference/bulk-export
📖
Documentation
https://developer.onetrust.com/onetrust/reference/attachments
📖
Documentation
https://developer.onetrust.com/onetrust/reference/system-credentials
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory-relationships-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/model-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/tasks
📖
Documentation
https://developer.onetrust.com/onetrust/reference/groups-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/assessment-actions
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory-1
📖
Documentation
https://developer.onetrust.com/onetrust/reference/drop-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/incidents
📖
Documentation
https://developer.onetrust.com/onetrust/reference/document-controller
📖
Documentation
https://developer.onetrust.com/onetrust/reference/audits
📖
Documentation
https://developer.onetrust.com/onetrust/reference/initiatives
📖
Documentation
https://developer.onetrust.com/onetrust/reference/document-attachments
📖
Documentation
https://developer.onetrust.com/onetrust/reference/issues
📖
Documentation
https://developer.onetrust.com/onetrust/reference/control-implementations
📖
Documentation
https://developer.onetrust.com/onetrust/reference/training
📖
Documentation
https://developer.onetrust.com/onetrust/reference/contracts

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onetrust:onetrust-scripts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onetrust-scripts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onetrust Scripts API
  version: '1.0'
  description: 'Operations tagged Scripts across 2 of this provider''s published API definitions: onetrust-consent-preferences-cookie-consent-openapi.json, onetrust-consent-preferences-cookie-consent-swagger-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{hostname}
  variables:
    hostname:
      default: hostname
      description: The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com.
- url: https://customer.my.onetrust.com/api/cookiemanager
tags:


# --- truncated at 32 KB (44 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/onetrust/refs/heads/main/openapi/onetrust-scripts-api-openapi.yml