Soxway Docs
IP Whitelist

Add to whitelist

Whitelist an IP address or CIDR range for proxy access.

POST
/v1/account/whitelist

Authorization

bearerAuth
AuthorizationBearer <token>

Personal access token obtained via POST /v1/auth/token

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.soxway.io/v1/account/whitelist" \  -H "Content-Type: application/json" \  -d '{    "cidr": "203.0.113.42/32"  }'
{
  "data": {
    "id": 0,
    "cidr": "203.0.113.42/32",
    "comment": "string",
    "created_at": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": 1001,
    "message": "Authentication token is missing.",
    "description": "Include a Bearer token in the Authorization header.",
    "field": "string",
    "errors": [
      {}
    ]
  }
}
Empty