The whitelist endpoints manage IP whitelisting: letting a known IP address connect without sending proxy credentials on every request. You add an IP, retrieve it, and remove it when it is no longer yours.
All requests go to https://api.nodemaven.com/api/v2/base/ and carry the header Authorization: x-api-key YOUR_API_KEY. See the NodeMaven API overview for the shared basics.
IP whitelisting is available for Residential and Mobile proxies only. It is not available for ISP proxies. If you are working with ISP proxies, see ISP authentication instead, because these endpoints do not apply to them.
Endpoints
One endpoint creates and updates
POST /whitelist/ip/upsert is an upsert, so it handles both cases:
- Include
id and it updates the existing whitelist entry with that ID.
- Omit
id and it creates a new entry.
That is why the endpoint lists both 200 and 201 as success responses: 201 for something newly created, 200 for something updated.
WhitelistIPRequest
ttl is in seconds, not minutes. It defaults to 0, so set it explicitly if the lifetime of the entry matters to you.
Deleting a whitelisted IP immediately cuts off access for anything relying on it. Any machine that was connecting without credentials because its IP was whitelisted stops being able to connect as soon as the entry is removed. Make sure the client has credentials to fall back on, or a replacement whitelist entry, before you delete.
- IP whitelist is the dashboard view of the same feature.
- ISP authentication covers how ISP proxies authenticate, since whitelisting does not apply to them.