Skip to content

Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.

Merge PR #759

Corey Haines5ed7cf645473
diff --cc tools/clis/customer-io.js
index 7012143,e468abb..d00b9c8
--- a/tools/clis/customer-io.js
+++ b/tools/clis/customer-io.js
@@@ -120,9 -115,16 +120,16 @@@ async function main()
case 'delete': {
const customerId = rest[0] || args.id
if (!customerId) { result = { error: 'Customer ID required (positional arg or --id)' }; break }
- result = await trackApi('DELETE', `/customers/${customerId}`)
+ result = await trackApi('DELETE', `/customers/${encodeURIComponent(customerId)}`)
break
}
+ case 'suppress':
+ case 'unsuppress': {
+ const customerId = rest[0] || args.id
+ if (typeof customerId !== 'string' || customerId.trim().length === 0) throw new Error('Customer ID must be a non-empty string (positional arg or --id)')
+ result = await trackApi('POST', `/customers/${encodeURIComponent(customerId)}/${sub}`)
+ break
+ }
case 'track-event': {
const customerId = rest[0] || args.id
if (!customerId) { result = { error: 'Customer ID required (positional arg or --id)' }; break }
diff --cc tools/integrations/customer-io.md
index 8b4a7d8,6d6d09f..3a1a81d
--- a/tools/integrations/customer-io.md
+++ b/tools/integrations/customer-io.md
@@@ -186,27 -186,23 +186,48 @@@ _cio.page()
- onboarding
- analytics
+## CLI account region
+
+Set `CUSTOMERIO_REGION=eu` for a workspace hosted in Customer.io's EU region.
+The CLI then uses `track-eu.customer.io` for Track operations and
+`api-eu.customer.io` for App operations. Both request previews and actual
+requests use the selected region, retaining their existing Basic/Bearer
+authentication and request bodies.
+
+```bash
+export CUSTOMERIO_REGION=eu
+node tools/clis/customer-io.js customers get --id owned-customer-id --dry-run
+```
+
+The default is `us`; `CUSTOMERIO_REGION=us` explicitly retains the existing
+US hosts. Other values are rejected before requests. Check the workspace's
+region rather than guessing it from an email address or the user's location.
+This selects documented provider endpoints; it does not migrate a workspace
+or guarantee how the provider stores/processes data. Select scoped credentials
+for that workspace, and perform writes only when already authorized.
+
+Customer.io notes that sending EU Track requests to its US host can redirect
+but still pass through US servers. Use the regional host directly.
+See the official [Track server regions](https://docs.customer.io/integrations/api/track/#server-addresses-us-and-eu)
+and [App server regions](https://docs.customer.io/integrations/api/app/#server-addresses-us-and-eu).
++
+ ## Suppression lifecycle
+
+ For an explicit erasure/suppression request, `customers suppress` invokes the
+ Track API operation that permanently deletes the profile and blocks its
+ identifier from being re-added. This is different from the existing
+ `customers delete` operation. Preview the request first:
+
+ ```bash
+ node tools/clis/customer-io.js customers suppress --id customer-123 --dry-run
+ node tools/clis/customer-io.js customers unsuppress --id customer-123 --dry-run
+ ```
+
+ Both commands require the Track API Site ID and API key. Unsuppressing only
+ releases the identifier; it does not recreate the deleted profile or restore
+ history. For ordinary message preferences while keeping a profile, update its
+ `unsubscribed` attribute instead. Use the operation appropriate to the person's
+ request and your workspace identifier configuration. See the official
+ [suppress](https://docs.customer.io/integrations/api/track/tag/track-customers/suppress/)
+ and [unsuppress](https://docs.customer.io/integrations/api/track/tag/track-customers/unsuppress/)
+ contracts. Neither operation is a substitute for handling data in other systems.