Skip to content
Get started

List

client.teams.ipFilters.list(stringteamID, RequestOptionsoptions?): IPFilterListResponse { filters }
GET/teams/{teamId}/ip-filters

List the built-in and custom IP-detection filters available to a team, with their enabled state

ParametersExpand Collapse
teamID: string
ReturnsExpand Collapse
IPFilterListResponse { filters }
filters: Array<unknown>

Built-in and custom IP-detection filters for the team, each with its enabled state

List

import Scenario from '@scenario-labs/sdk';

const client = new Scenario({
  apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
  apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});

const ipFilters = await client.teams.ipFilters.list('teamId');

console.log(ipFilters.filters);
{
  "filters": [
    {}
  ]
}
Returns Examples
{
  "filters": [
    {}
  ]
}