Organizations

Add an IP to the blocklist

POST
/api/organizations/{organizationId}/blocked-ips

Validates and adds an IPv4/IPv6 address to the org blocklist (de-duplicated via $addToSet). Invalidates the Redis blocklist cache and force-disconnects any active webchat sockets currently connected from that IP.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

organizationId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/organizations/string/blocked-ips" \  -H "Content-Type: application/json" \  -d '{    "ip": "203.0.113.42"  }'
{  "success": true,  "message": "IP blocked successfully",  "data": {    "blockedIPs": [      "203.0.113.42"    ]  }}