94acb422c07d
List Unwanted Access Rules
Shows Unwanted Access Rules associated with your account.
Unwanted Access Rules govern how Huntress responds to identity access attempts matching specific attributes. Each rule targets a category (country, vpn, ip_address) and declares a determination — expected or unauthorized — at the account, organization, or identity scope.
Note: This endpoint will also return a pagination key on the root level. Please refer to the pagination section within our docs for more information.
Query parameters
Max number of resources returned in a paged collection. Defaults to 10, with a minimum of 1 and maximum 500.
Token used to request the next page in paginated results. Defaults to 'null'
Filter by organization ID within Huntress account.
Filter results to rules attached directly to this identity.
Filter by rule type.
Filter by rule status as shown in the Portal UI.
Filter by the level the rule is attached to.
Limit results to a single rule category.
Filter by country code value (ISO 3166-1 alpha-2). Implies category=country.
Filter by VPN (tunnel operator) value. Implies category=vpn.
Filter by IP Address value. Implies category=ip_address.
Filter by rule logic. standard returns rules with explicit values, catchall returns rules matching all values in a category, and catchall_exception returns rules that exclude specifically set values from an existing catchall rule. Omit this parameter to include all three.
Response
List Unwanted Access Rules
Example response
{
"unwanted_access_rules": [
{
"id": 84938,
"applied_to": {
"type": "Organization",
"id": 1234,
"name": "ExampleCo"
},
"category": "country",
"country_code": "US",
"vpn": "NORD_VPN",
"ip_address": "203.0.113.0/24",
"type": "unauthorized",
"status": "active",
"logic": "standard",
"note": "Approved by compliance — regional office access",
"starts_at": "2025-09-05T18:20:34Z",
"expires_at": "2025-12-05T18:20:34Z",
"created_by": "Jane Doe",
"created_at": "2025-09-05T18:20:34Z",
"updated_at": "2025-09-05T18:20:34Z"
}
]
}