POST
/
whitelist-ips
curl --request POST \
  --url https://api.gotrebol.com/whitelist-ips \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "ips": [
    "192.168.1.1"
  ]
}'
{
  "success": true,
  "message": "IPs added successfully",
  "added_ips": [
    "192.168.1.1",
    "10.0.0.0/24"
  ],
  "total_ips": 5
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

IPs added successfully.

The response is of type object.