IPCola
  1. ip whitelist
IPCola
  • User
    • user
      • send email VCode
      • get user info
      • user login
      • user register
      • get captcha
      • user reset password
    • balance
      • get user balance
    • deposit
      • deposit
      • coinbase(deprecated)
      • query deposit record
      • stripe(deprecated)
  • Rotation proxy
    • account
      • create new account
      • delete account
      • query account
      • update account
    • ip whitelist
      • add ip whitelist
        POST
      • delete ip whitelist
        POST
      • query ip whitelist
        POST
      • update ip whitelist
        POST
    • api proxy list
      • get proxy list for ip whitelist auth
    • price
      • query pay as you go price
      • query traffic package price
    • traffic package
      • buy traffic package
      • query traffic package
    • distribution
      • query rotation proxy distribution
    • proxy traffic
      • query daily traffic data
  • Static proxy
    • static direct proxy
      • buy static direct proxy
      • buy traffic
      • query static direct proxy
      • offline ip refund static direct proxy
      • online ip refund static direct proxy
      • renew
      • set ip whitelist
      • replace ip
    • static indirect proxy
      • buy static indirect proxy
      • buy traffic
      • query static transfer proxy
      • offline ip refund static transfer proxy
      • online ip refund static transfer proxy
      • renew
      • replace ip
    • distribution
      • query static indirect connect proxy distribution
      • query static direct connect proxy distribution
    • price
      • query static direct residential proxy price
      • query static direct datacenter proxy price
      • query static transfer residential proxy price
      • query static transfer datacenter proxy price
  • Common
    • public ip
      • get public ip
    • proxy address
      • query proxy address
  1. ip whitelist

add ip whitelist

POST
https://api.ipcola.com/api/ip_whitelist/add
ip whitelist
There is a default limit on the number of ips that can be created, which can be obtained from the 'get user info' API.
The 'whitelist_limit' field in the returned userinfo indicates the limit on the number of ips.

Request

Header Params
Authorization
string 
optional
Default:
Bearer {{AUTH_TOKEN}}
Body Params application/json
ip
string 
required
ip to add into whitelist
tag
string 
optional
some tag
Example
{
  "ip": "127.0.0.1",
  "tag": "office ip"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ipcola.com/api/ip_whitelist/add' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ip": "127.0.0.1",
    "tag": "office ip"
}'

Responses

🟢200result
application/json
Body
meta_message
string 
required
success or other error msg
meta_status
integer 
required
1 for success, negative for error
record
object 
required
new record info
created_unixtime
integer 
optional
id
integer 
optional
ip
string 
optional
tag
string 
optional
user_id
integer 
optional
Example
{
  "meta_message": "string",
  "meta_status": 0,
  "record": {
    "created_unixtime": 0,
    "id": 0,
    "ip": "string",
    "tag": "string",
    "user_id": 0
  }
}
Previous
update account
Next
delete ip whitelist
Built with