Create IP authorization

Create IP authorization

This endpoint lets you create an IP authorization.

Parameters

AttributesTypesDescription
ip_addressstring

The IP address to authorize. May return 400 error if this IP address is already authorized in the system.

Request & Response

POST https://proxy.webshare.io/api/v2/proxy/ipauthorization/
create_ip_authorization.py
import requests
 
response = requests.post(
    "https://proxy.webshare.io/api/v2/proxy/ipauthorization/",
    json={"ip_address": "10.1.2.3"},
    headers={"Authorization": "Token "})
 
response.json()

The commands above return JSON structured like this:

response.json
{
  "id": 1337,
  "ip_address": "10.1.2.3",
  "created_at": "2022-06-14T11:58:10.246406-07:00",
  "last_used_at": null
}