List team traffic exclusions REST API
const url = 'http://127.0.0.1:25737/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/exclusions?effective=false';const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://127.0.0.1:25737/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/exclusions?effective=false' \ --cookie hk_token=<hk_token>Lists traffic exclusions owned by the team. Set effective=true to include inherited instance rules before team rules, newest-first within each scope. Inherited rows are read-only and omit cross-scope creator IDs. Requires team.manage_settings.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Include inherited instance rules.
Responses
Section titled “Responses”Team traffic exclusions
object
Normalized IP or CIDR value for cidr rules.
Uppercase ISO 3166-1 alpha-2 country code for country rules.
Creator ID. Omitted from inherited rows returned across scopes.
True when returned through a child scope’s effective read.
Normalized, query-free, case-sensitive path matched on segment boundaries.
Scope that owns this rule.
Owning site for site rules.
Owning team for team rules.
Case-insensitive user-agent substring for user_agent rules.
Example
[ { "scope": "instance", "type": "cidr" }]Access denied
object
Examplegenerated
{ "message": "example"}