Documentation has been updated: see help center and changelog in one place.

Adding a Whitelisted IP

Add whitelisted IPs to Enterprise Dedicated Datacenter Proxies using POST endpoint. Authorize new IPs programmatically with RESTful API integration.

POST https://api.oxylabs.io/v1/whitelisted_ips

Response
Description

201

Success. The IP address has been added to the list. Response body contains the newly added address and id.

422

Error. Request body contains an invalid IP address. Response body contains the error message

Code example

curl -X POST -u username:password "https://api.oxylabs.io/v1/whitelisted_ips"
--header "Content-Type: application/json" --data '{"address": "127.0.0.1"}'
{
    "error": {
        "message": "This is not a valid IP address.",
        "code": 422
    }
}

Sample output

{
    "id": 9767,
    "address": "127.0.0.1"
}

Last updated

Was this helpful?