CookieScript API
CookieScript API Documentation
To get started:
Set your
token
variable in the environment.Explore available endpoints grouped by feature.
Banners
Banners
Endpoints for managing cookie banners, including listing, creating, updating, duplicating, and deleting banners.
GETList
Endpoint: List Banners
Method: GET
URL: https://cookie-script.com/api/open/v1/banners
Description
Returns a list of all banners accessible to the user.
Query Parameters
None.
Response
Example of a successful response:
GETShow
Endpoint: Show Banner
Method: GET
URL: https://cookie-script.com/api/open/v1/banners/show?id=
🔍 Description
Returns detailed information about a specific banner by ID.
Query Parameters
id
(string, required): Banner ID
Response
200 OK
The response will be in JSON format and will have the following structure:
The response will include a success
flag indicating the success status of the request, a message
field for any additional information, and a data
object containing the detailed information about the specific banner.
DELETEDelete
Endpoint: Delete Banner
Method: DELETE
URL: https://cookie-script.com/api/open/v1/banners/delete?id=
Description
Deletes the banner specified by ID.
Query Parameters
id
(string, required): Banner ID
Response
200 OK
The response will be in JSON format and will have the following structure: