Get cookie config list API in Website Scanner
Use this API to get a list of cookie configurations created for your website scans.
get cookie config list
If Geo Region Restriction (GRR) is enabled for your account, add your region code to the host name:
api-accessibility-<region>.browserstack.com. See Geo Region Restriction endpoints for the region codes and examples.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://api-accessibility.browserstack.com/api/website-scanner/v1/cookie_configs
-
No parameter required.
Response attributes 200 OK JSON
Response
{
"success": true,
"data": {
"cookieConfigs": [
{
"id": 24,
"name": "consent_config_1",
"domain": "example.com",
"cookies": "consent=accepted; region=uk",
"scanConfigCount": 3
}
]
},
"error": null
}
-
success Boolean
Indicates whether the request was successful.
-
data Object
â–¶ SHOW VALUESContains the list of cookie configurations.
-
cookieConfigs Array
â–¶ SHOW VALUESList of cookie configuration objects.
-
id Integer
The unique ID of the cookie configuration.
-
name String
The name of the cookie configuration.
-
domain String
The domain the cookies apply to. The apex domain covers all subdomains, including
www. -
cookies String
Semicolon-separated
name=valuepairs representing the cookies. -
scanConfigCount Integer
The number of scan configurations currently using this cookie configuration.
-
-
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.