Find newsletter and list subscriptions
subscriptions_scanScan recent mail for newsletters and mailing lists, grouped by sender, with how each one can be unsubscribed (one-click, by email, or by link) and which look worth dropping. Changes nothing. Returns a plan_id and sender_key values for subscriptions_cleanup; the plan expires after 60 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back to scan. Default 90. | |
| inbox | No | Inbox email address, instead of inbox_id. | |
| limit | No | Most messages to read. Default 2000. | |
| inbox_id | No | Inbox to scan (UUID or email address). Optional with one inbox. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | Always 'subscription_plan'. | |
| state | No | pending, executed, expired or error. | |
| dashboard_url | No | Absolute link to the dashboard. | |
| subscriptions | No | plan_id, inbox, summary counts, senders and (once run) results and backlog. | |
| schema_version | No | Card envelope version. |