Skip to main content
POST
/
radar
/
operator
/
v1
/
tracking-scripts
/
{trackingScriptId}
/
filters
Create a tracking script filter
curl --request POST \
  --url https://api.snitcher.com/radar/operator/v1/tracking-scripts/{trackingScriptId}/filters \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tracking_script_filter_type": "blacklist",
  "tracking_script_filter_field": "country",
  "filter_value": "US"
}
'
{
  "success": true,
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "filter_value": "<string>",
    "tracking_script_filter_field": "country",
    "tracking_script_filter_type": "blacklist"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.snitcher.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Enter your personal access token (PAT) to authenticate

Path Parameters

trackingScriptId
string
required

The ID of the tracking script to create a filter for

Example:

"12345"

Body

application/json

Tracking script filter parameters

tracking_script_filter_type
enum<string>
required

The type of the filter (blacklist or whitelist)

Available options:
blacklist,
whitelist
Example:

"blacklist"

tracking_script_filter_field
enum<string>
required

The field to filter on (country or url)

Available options:
country,
url
Example:

"country"

filter_value
string
required

The value to filter on, e.g. 'US' for country or a URL for url field

Example:

"US"

Response

200 - application/json

Tracking script filter created successfully

success
boolean
Example:

true

data
object