Adding a Whitelisted IP

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

ResponseDescription

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