Skip to main content
kit.filterSubscribers filters subscribers by engagement, sign-up, state, and tags.
automations/filter-subscribers.automation.ts

Input

Pass these fields: Each filter condition requires type. Engagement conditions (opens, clicks, sent, or delivered) accept countGreaterThan, countGreaterThanOrEqual, countLessThan, countLessThanOrEqual, after, and before. A subscriber_state condition accepts states; a custom_field condition accepts subscriberCustomFieldId, value, and comparison; and a location condition requires latitude, longitude, and radius. Some conditions accept an any array:
  • Engagement conditions accept { type: "broadcasts", ids } or { type: "urls", urls, matching }.
  • A tags condition accepts { type: "ids", matching }.
  • An attribution condition accepts { type: "forms", ids } or { type: "kit_source", sourceType?, sourceIds?, sourceNames?, mechanism?, mechanismIds? }.

Output

Returns an object with these fields: Kit list and reporting endpoints can lag recent writes. Cursor-based list actions accept after or before; perPage defaults to Kit’s provider default and cannot exceed 1,000. Kit rate limits OAuth connections to 600 requests per 60 seconds and V4 API keys to 120 requests per 60 seconds. Automate.ax honors provider retry timing for rate-limit and temporary bulk-capacity responses.