POST
/api/public/v1/security/ip-whitelist

Add IP to whitelist

Whitelist an IPv4 or IPv6 address for the organization.

Request Body

PropertyTypeDescription
typestringAddress type.
addressstringIP address.
descriptionstringHuman label.
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/security/ip-whitelist" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "IPV4",
    "address": "203.0.113.1",
    "description": "Office gateway"
  }'
200Example response
json
{
  "message": "IP address whitelisted successfully!",
  "content": {
    "entry": {
      "id": "ip_1",
      "type": "IPV4",
      "address": "203.0.113.1"
    }
  }
}