POST
/api/public/v1/security/ip-whitelistAdd IP to whitelist
Whitelist an IPv4 or IPv6 address for the organization.
Request Body
| Property | Type | Description |
|---|---|---|
type | string | Address type. |
address | string | IP address. |
description | string | Human 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"
}
}
}