| Whitelist State | Behavior |
|---|---|
| Empty list (no IPs added) | All IP addresses are allowed — no restrictions |
| Non-empty list (one or more IPs) | Only requests from whitelisted IPs are accepted. All other IPs receive a 403 Forbidden error. |
⚠️ Be careful: If you add IPs to the whitelist, make sure your server's IP is included, otherwise your own requests will be blocked!
curl ifconfig.me in your terminal.curl --location --request GET 'https://rewrd-api-staging.fly.dev/v1/merchant/security/ips' \
--header 'Authorization: Bearer <token>'{
"status": true,
"data": [
{
"id": 0,
"name": "string",
"ip_address": "string",
"ip_type": "string",
"status": "string"
}
]
}