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 Consent & Preferences — Cookie Consent (Swagger)

The Consent & Preferences - Cookie Consent (Swagger) API from OneTrust — 11 operation(s) documented on the OneTrust Developer Portal.

OneTrust Consent & Preferences — Cookie Consent (Swagger) is one of 37 APIs that OneTrust publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Categorizations, Cookies, Domains, Scripts, and Websites V2. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 11 operations across 9 paths, organized into 5 resource areas, and defines 16 schemas. It is described by OpenAPI 3.0.0, at version 1.0.

Requests are made against a single base URL, https://customer.my.onetrust.com/api/cookiemanager.

11 operations 9 paths 16 schemas 3 GET6 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.0
Base URL
https://customer.my.onetrust.com/api/cookiemanager
Authentication
OAuth 2.0
Resource Areas
5

Authentication & Security 1

OneTrust Consent & Preferences — Cookie Consent (Swagger) declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (oauth2) using the clientCredentials flow, exposing 3 scopes. By default, every request must be authenticated.

Paths & Operations 11

Across 9 paths, the API surfaces 11 operations — 3 GET, 6 POST, 2 PUT. They span 5 resource areas: Scripts, Websites V2, Cookies, Categorizations, Domains. Each is listed below with its method, path, parameters, and response codes.

Scripts 3
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
Websites V2 2
POST
/v2/websites
Add Websites to Scan
requestBulkAddDomainUsingPOST 1 param body → 200401403404429
GET
/v2/websites
Get List of Websites
getDomainsScannedBySortUsingGET 5 params → 200401403404429
Cookies 3
POST
/v1/cookies
Create Cookie
createNewCookie body → 201400401403404500
PUT
/v1/cookies
Update Cookie
updateCookie body → 200400401403404409429
POST
/v2/cookie-reports/search
Get List of Cookies by Criteria
getCookieReportsUsingPOST 5 params body → 200401403404429
Categorizations 2
POST
/v2/categorize
Categorize Cookies by Domain
getCategorizedCookiesUsingGET body → 200401403404429
POST
/v2/categorizewithids
Categorize Cookies by Domain and Cookie ID
getCategorizedCookiesWithCookieIdsUsingGET body → 200401403404429
Domains 1
POST
/v1/domains/{domainId}/domaingroup
Create or Update Domain Group
createDomainGroupUsingPOST 1 param body → 200401403404429500

Schemas 16

The contract defines 16 schemas that model the data the API accepts and returns. The most detailed are Cookie (21 properties), ExposedWebsiteDetailsDto (12 properties), CookiepediaContribsDto (11 properties), ScriptPublishRequestDto (10 properties). Each schema is shown below with its type and property counts.

Cookie
object
21 properties
ScanWebsiteDto
object
Website details for scan
10 properties 3 required
TargetPagesScanEntityDto
object
Target page for scan and details
4 properties 4 required
ServiceResponseDto
object
6 properties
templateLangs
object
2 properties
PaginatedWebsiteResponseDTO
object
Paginated websites scanned or pending to be scanned
7 properties
ExposedWebsiteDetailsDto
object
12 properties
Sort
object
3 properties
PublishScriptDto
object
Gets the details of the published production or test script for the website that is passed.
7 properties
ScriptPublishRequestDto
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
CookiepediaContribsDto
object
Gets the cookie category of the cookies passed
11 properties
CookiesDto
object
cookie list
1 property
CookieRequestDto
object
cookie pojo
2 properties
PaginatedCookieResponseDTO
object
Paginated List of cookies with domain level info
7 properties
CookieDetailsDto
object
Cookie details with domain level info
10 properties
DomainCookieInfo
object
Domain level information for a cookie
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

onetrust-consent-preferences-cookie-consent-swagger-openapi.json Raw ↑

Other APIs OneTrust publishes across the network.

OneTrust AI Governance — AI Governance
OneTrust Platform — Global Activity
OneTrust Consent & Preferences — Consent Interfaces
OneTrust Consent & Preferences — Consent Management Platform (CMP)
OneTrust Consent & Preferences — Consent Receipts
OneTrust Consent & Preferences — Cookie Consent
OneTrust Consent & Preferences — Cookie Domain Data
OneTrust Consent & Preferences — Cross-Device Consent
OneTrust Consent & Preferences — Mobile App Consent
OneTrust Consent & Preferences — Policy & Notice Management
OneTrust Consent & Preferences — Universal Consent & Preference Management (OAS)
OneTrust Data Use Governance — Data Catalog
Where this information came from

This is an independent, third-party profile of OneTrust Consent & Preferences — Cookie Consent (Swagger), 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.