How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

OneTrust Scripts API

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

OneTrust Scripts API is one of 138 APIs that OneTrust publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Scripts. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 9 operations across 9 paths, and defines 8 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 2 base URLs: https://{hostname}, https://customer.my.onetrust.com/api/cookiemanager.

9 operations 9 paths 8 schemas 6 GET3 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://app.onetrust.com
Authentication
OAuth 2.0, OAuth 2.0
Resource Areas
1

Authentication & Security 2

OneTrust Scripts API declares 2 security schemes for authenticating requests. It supports OAuth 2.0 (OAUTH2) using the clientCredentials flow, exposing 2 scopes. It supports OAuth 2.0 (oauth2) using the clientCredentials flow, exposing 3 scopes.

Paths & Operations 9

Across 9 paths, the API surfaces 9 operations — 6 GET, 3 PUT. Each is listed below with its method, path, parameters, and response codes.

Scripts 9

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

PUT
/api/cmp/v1/applications/{id}/publish
Publish Application SDK
publishAppScript 1 param body → 200400401403429500
GET
/api/cmp/v1/applications/{id}/script-details
Get Script for Application
getAppScriptDetails 1 param → 200400401403429500
PUT
/api/cmp/v1/domains/publish
Publish Script to Website
publishScriptToSite 2 params body → 200400401403429500
GET
/api/cmp/v1/domains/scripts
Get Script for Website
getScriptForWebsite 2 params → 200400401403429500
GET
/api/cmp/v1/domains/{domainId}/script-details
Get Script for Domain
getScriptDetails 2 params → 200400401403429500
GET
/api/cmp/v1/domains/{domainId}/scripts
Download Script File
downloadScriptFile 1 param → 200400401403429500
GET
/v1/script-integration/{domainId}/downloadscriptv2
Download Script File
downloadToLocalUsingGet 1 param → 200401403404429
GET
/v2/websites/scripts
Get Script for Website
getScriptForWebsiteUsingGET 2 params → 200401403404429
PUT
/v2/websites/publish
Publish Script to Website
publishToSiteUsingPUT 2 params body → 200401403404429

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are ScriptPublishRequestDto (20 properties), DomainScriptDetailsPublicDto (12 properties), ApplicationScriptDetailsPublicDto (12 properties), ScriptPublishRequestDto_2 (10 properties). Each schema is shown below with its type and property counts.

ScriptPublishRequestDto
object
20 properties
PublishScriptDto
object
7 properties
ApplicationScriptDetailsPublicDto
object
12 properties
PublishGeolocationRuleRequestApplicationPublicDto
object
6 properties
PublishRegionRuleDto
object
2 properties
DomainScriptDetailsPublicDto
object
12 properties
ScriptPublishRequestDto_2
object
Publishes the production or test script for the website that is passed. All available settings for publishing will by default use the saved values from the las…
10 properties
PublishScriptDto_2
object
Gets the details of the published production or test script for the website that is passed.
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

onetrust-scripts-api-openapi.yml Raw ↑

Other APIs OneTrust publishes across the network.

OneTrust Activity Log API
OneTrust Applications API
OneTrust Assessment Actions API
OneTrust Assessment Management API
OneTrust Assessments API
OneTrust Attachments API
OneTrust Attachments V4 API
OneTrust Attribute Management API
OneTrust Audit Records API
OneTrust Audits API
OneTrust Banner API
OneTrust Bulk Export API
Where this information came from

This is an independent, third-party profile of OneTrust Scripts API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.