Skip to main content
POST
/
filtering-rules
Set filtering rules
curl --request POST \
  --url https://management-api.fpjs.io/filtering-rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Version: <x-api-version>' \
  --data '
{
  "environment": "<string>",
  "allow": [
    "<string>"
  ],
  "deny": [
    "<string>"
  ]
}
'
{
  "data": [
    {
      "type": "origin",
      "environment": "ae_rrETjdWcfqI6AFsk",
      "allow": [
        "example.com",
        "my-website.com"
      ],
      "deny": [
        "*"
      ]
    }
  ]
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-Version
string
required

Management API version.

Body

application/json
environment
string
required

Environment for which to set filtering rule.

allow
string[]
required

List of origin domains that are allowed to make requests, making all other domains denied by default. When setting the allow list, you must explicitly set the deny list to wildcard value (['*']).

deny
string[]
required

List of origin domains that are denied to make requests, making all other domains allowed by default. When setting the deny list, you must explicitly set the allow list to wildcard value (['*']).

Response

data
object[]
required