> ## Documentation Index
> Fetch the complete documentation index at: https://developer.onetrust.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get List of Added or Removed Cookies

Use this API to retrieve a list of added or removed cookies between the current and previous scan for the specified domain.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Consent & Preferences - Cookie Consent",
    "version": "1.0",
    "contact": {
      "name": "OneTrust Support",
      "url": "https://my.onetrust.com/s/contactsupport"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "description": "The Cookie Consent APIs are used to integrate external systems and streamline the flow of data with Cookie Consent in the OneTrust Platform."
  },
  "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."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Scans",
      "description": "The Scans APIs are used to manage website cookie scanning operations and results.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/consent-preferences-cookie-consent.json"
      }
    }
  ],
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0"
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "paths": {
    "/api/cmp/v1/webscans/domains/{domainId}/scans/{scanId}/scandelta": {
      "get": {
        "operationId": "getScanDeltaDetails",
        "summary": "Get List of Added or Removed Cookies",
        "description": "Use this API to retrieve a list of added or removed cookies between the current and previous scan for the specified domain.",
        "tags": [
          "Scans"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/consent-preferences-cookie-consent.json"
        },
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "description": "The unique identifier of the domain.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
          },
          {
            "name": "scanId",
            "in": "path",
            "description": "The unique identifier of the scan.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
          },
          {
            "name": "language",
            "in": "query",
            "description": "The language code for localized content.",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 5,
              "minLength": 2
            },
            "example": "en"
          },
          {
            "name": "countryCode",
            "in": "query",
            "description": "The country code for regional settings.",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2,
              "minLength": 2
            },
            "example": "us"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanDeltaDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "429": {
            "description": "Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "schema": {
                  "description": "The number of seconds after which requests will be allowed again.",
                  "format": "int32"
                }
              },
              "ot-period": {
                "schema": {
                  "description": "The unit of time for which the rate limit applies",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-ratelimit-event-id": {
                "schema": {
                  "description": "The unique identifier for the rate-limiting event.",
                  "format": "uuid"
                }
              },
              "ot-request-made": {
                "schema": {
                  "description": "The number of requests made within the specified period.",
                  "format": "int32"
                }
              },
              "ot-requests-allowed": {
                "schema": {
                  "description": "The number of requests allowed within the specified period.",
                  "format": "int32"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "OAUTH2": [
              "COOKIE",
              "COOKIE_READ"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CookieInformation": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the item.",
            "type": "string",
            "format": "uuid",
            "example": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
          },
          "name": {
            "description": "The name or title of the item.",
            "type": "string",
            "example": "snn_id",
            "maxLength": 255,
            "minLength": 1
          },
          "host": {
            "description": "The domain or website that created the cookie.",
            "type": "string",
            "example": "amazon.com",
            "maxLength": 255,
            "minLength": 1
          },
          "expiryDate": {
            "description": "The date and time when the cookie expires.",
            "type": "integer",
            "format": "int32",
            "example": 30
          },
          "expiryUnit": {
            "description": "The time unit used for cookie expiration.",
            "type": "integer",
            "format": "int32",
            "example": 7
          },
          "urlDomain": {
            "description": "The domain portion extracted from a URL.",
            "type": "string",
            "example": "domain.com",
            "maxLength": 255,
            "minLength": 1
          },
          "path": {
            "description": "The URL path where the cookie is active.",
            "type": "string",
            "example": "/",
            "maxLength": 500,
            "minLength": 1
          },
          "isSecure": {
            "description": "This flag indicates whether the cookie requires HTTPS.",
            "type": "boolean",
            "example": true
          },
          "isHttpOnly": {
            "description": "This flag indicates whether the cookie is accessible only via HTTP.",
            "type": "boolean",
            "example": true
          },
          "isSession": {
            "description": "This flag indicates whether the cookie is a session cookie.",
            "type": "boolean",
            "example": true
          },
          "isBehindLogin": {
            "description": "This flag indicates whether the cookie is found behind authentication.",
            "type": "boolean",
            "example": true
          },
          "hostDescription": {
            "description": "The description of the host domain.",
            "type": "string",
            "example": "domain.com is a website",
            "maxLength": 1000,
            "minLength": 1
          },
          "thirdPartyDescription": {
            "description": "The description of third-party cookies and their usage.",
            "type": "string",
            "example": "This cookie is used for advertising purposes",
            "maxLength": 1000,
            "minLength": 1
          },
          "description": {
            "description": "The description of the cookie and its intended purpose.",
            "type": "string",
            "example": "This cookie is used for advertising purposes",
            "maxLength": 1000,
            "minLength": 1
          },
          "purpose": {
            "description": "The intended use or function of the cookie.",
            "type": "string",
            "example": "This cookie is used for advertising purposes",
            "maxLength": 1000,
            "minLength": 1
          },
          "cookiepediaCategory": {
            "description": "The category assigned by Cookiepedia classification system.",
            "type": "string",
            "example": "Functionality",
            "maxLength": 255,
            "minLength": 1
          },
          "firstParty": {
            "description": "This flag indicates whether the cookie is set by the visited website.",
            "type": "boolean",
            "example": true
          },
          "status": {
            "description": "The current state or condition of the item.",
            "type": "integer",
            "format": "int32",
            "example": 1,
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5"
            ]
          },
          "color": {
            "description": "The color code used for visual identification.",
            "type": "string",
            "example": "red",
            "maxLength": 50,
            "minLength": 1
          },
          "isNewFound": {
            "description": "This flag indicates whether the cookie was newly discovered.",
            "type": "boolean",
            "example": true
          },
          "isNewlyAdded": {
            "description": "This flag indicates whether the item was recently added.",
            "type": "boolean",
            "example": true
          },
          "categoryId": {
            "description": "The unique identifier of the category.",
            "type": "string",
            "example": "C0001",
            "maxLength": 100,
            "minLength": 1
          },
          "customCategoryId": {
            "description": "Custom category Id for cookie",
            "type": "string",
            "format": "uuid",
            "example": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
          }
        }
      },
      "ScanDeltaDetails": {
        "type": "object",
        "properties": {
          "addedCookies": {
            "description": "The cookies that were newly added.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CookieInformation"
            },
            "example": [
              {
                "cookieId": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
                "cookieName": "session_id",
                "host": "example.com"
              }
            ],
            "maxItems": 1000,
            "minItems": 0
          },
          "removedCookies": {
            "description": "The cookies that were removed or deleted.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CookieInformation"
            },
            "example": [
              {
                "cookieId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                "cookieName": "old_cookie",
                "host": "test.com"
              }
            ],
            "maxItems": 1000,
            "minItems": 0
          },
          "scanDeltaMetadata": {
            "description": "The metadata information about changes between scans.",
            "example": {
              "currentScanId": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
              "previousScanId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
              "currentScanDate": "2026-02-16T10:00:00Z",
              "previousScanDate": "2026-02-01T10:00:00Z"
            },
            "$ref": "#/components/schemas/ScanDeltaMetadataDto"
          }
        }
      },
      "ScanDeltaMetadataDto": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the item.",
            "type": "string",
            "format": "uuid",
            "example": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
          },
          "sourceScanId": {
            "description": "The unique identifier of the original scan.",
            "type": "string",
            "format": "uuid",
            "example": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
          },
          "targetScanId": {
            "description": "The unique identifier of the comparison scan.",
            "type": "string",
            "format": "uuid",
            "example": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
          },
          "targetScanDate": {
            "description": "The date and time when the comparison scan was performed.",
            "type": "string",
            "format": "date-time",
            "example": "2025-04-25T10:15:30Z"
          },
          "targetScanDeleted": {
            "description": "This flag indicates whether the comparison scan was deleted.",
            "type": "boolean"
          }
        }
      }
    },
    "securitySchemes": {
      "OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "COOKIE": "Cookie Scope gives the user access to read/write operations inside the Cookie Consent module.",
              "COOKIE_READ": "Cookie Read Scope gives the user read-only access to the Cookie Consent module."
            }
          }
        }
      }
    }
  }
}
```