POST
/
v1
/
proxies
/
allocate
curl --request POST \
  --url https://cmd.illusory.io/v1/proxies/allocate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "proxies": {
    "time": [
      {
        "proxy_name": "ILL-US-AU1-9999",
        "interval": 1,
        "period": "weekly"
      },
      {
        "proxy_name": "ILL-US-AU1-9998",
        "interval": 2,
        "period": "monthly"
      }
    ]
  }
}'
{
  "ok": true,
  "message": "Sent proxy expiration update successfully.",
  "data": {
    "proxies": {
      "time": [
        {
          "proxy_name": "IL-US-AU1-9999",
          "period": "hourly",
          "interval": 1,
          "individual_total": 5
        }
      ]
    },
    "total": 5
  }
}

Allocates time to a proxy server to extend its expiration date. Providing period and interval will extend the proxy’s expiration date by the specified amount of time.

When allocating time to a proxy, funds will be deducted from your Illusory Wallet. Ensure you have sufficient funds before allocating.

Authorizations

Authorization
string
header
required

The Authorization header is used to authenticate with the API using your Master API key. Value is of the format Bearer YOUR_KEY_HERE.

Body

application/json
Allocate proxy details

The body is of type object.

Response

202
application/json
Server response

The response is of type object.