Get security config
GET
Retrieve the current blacklist and whitelist configuration for an application.
Path parameters
| Param | Type | Description |
|---|---|---|
appId | string | The application ID |
Example
Response (200)
Update security config
PUT
Replace the security configuration. Only included fields are updated — omitted lists remain unchanged.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
hwidBlacklist | string[] | No | HWIDs to block (max 1,000) |
hwidWhitelist | string[] | No | Allowed HWIDs only (max 1,000) |
ipBlacklist | string[] | No | IPs to block (max 1,000) |
ipWhitelist | string[] | No | Allowed IPs only (max 1,000) |
Example
Response (200)
Errors
| HTTP | Code | Cause |
|---|---|---|
| 400 | bad_request | Invalid entry format, exceeds 1,000 entries per list |
| 403 | forbidden | The app doesn’t belong to your account |
Clearing a list
Set the list to an empty array:Add to blacklist
POST
Add a single HWID or IP to the blacklist.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | "hwid" or "ip" |
value | string | Yes | The HWID hash or IP address to block |
Example
Response (200)
Remove from blacklist
DELETE
Remove a single HWID or IP from the blacklist.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | "hwid" or "ip" |
value | string | Yes | The entry to remove |
Example
Response (200)
Add to whitelist
POST
Add a single HWID or IP to the whitelist. Enabling a whitelist restricts authentication to only listed entries.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | "hwid" or "ip" |
value | string | Yes | The HWID hash or IP address to allow |
Example
Response (200)
Remove from whitelist
DELETE
Remove a single HWID or IP from the whitelist. If the whitelist becomes empty, allowlist mode is deactivated.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | "hwid" or "ip" |
value | string | Yes | The entry to remove |
Example
Response (200)
Limits
| Constraint | Value |
|---|---|
| Max entries per list | 1,000 |
| HWID value max length | 128 characters |
| IP value max length | 45 characters (IPv4 and IPv6) |
| HWID value min length | 1 character |
| IP value min length | 7 characters |
Evaluation order
During authentication, lists are checked in this order:- IP blacklist (reject if matched)
- IP whitelist (reject if list is non-empty and IP not listed)
- HWID blacklist (reject if matched)
- HWID whitelist (reject if list is non-empty and HWID not listed)