Skip to main content
POST
/
waap
/
v1
/
filter-templates
Create a filter template
curl --request POST \
  --url https://api.gcore.com/waap/v1/filter-templates \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "filter_config": {
    "domains": [
      "admin.example.com"
    ],
    "event": "Probing detected"
  }
}
'
{
  "id": 123,
  "name": "<string>",
  "filter_config": {}
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json

Payload for creating a filter template.

name
string
required

Human-readable template name

filter_config
Filter Config · object
required

Arbitrary JSON object storing the frontend filter state

Example:
{
"domains": ["admin.example.com"],
"event": "Probing detected"
}

Response

Successful Response

Response body for a single filter template.

id
integer
required

The ID of the filter template

name
string
required

Human-readable template name

filter_config
Filter Config · object
required

Arbitrary JSON object storing the frontend filter state