v1

latestOpenAPI 3.0.02026-07-26392662.9 KB
Tracking scripts

Generate a tracking script

post/radar/operator/v1/tracking-scripts

Request body

internal_identifierstring required

The identifier for the tracking script as used in your system. Should be unique for every generated tracking script

descriptionstring

A description for the tracking script

domainsstring[]

Domains to whitelist for this tracking script. Only traffic from these domains (and their subdomains) is accepted.

Example request

{
  "internal_identifier": "my-tracking-script",
  "description": "This is a tracking script for my website",
  "domains": [
    "example.com"
  ]
}

Response

Tracking script generated successfully

successboolean

Example response

{
  "success": true,
  "data": [
    {
      "domains": [
        "example.com"
      ]
    }
  ]
}