- Documentation
- Integrations
- Apps
- Customer.io integration
Customer.io integration
Sync customer profiles, ingest behavioral events, send transactional email, and react to delivery lifecycle webhooks on behalf of your clients.
What it does
The Customer.io integration lets you drive a client's lifecycle marketing program from inside a workflow. Connect a client's Customer.io workspace once and your workflows can identify customers and merge attributes through the Track API, log behavioral events for known customers and anonymous visitors, read full attribute payloads back from the App API, send transactional email by template id, and manage segments, suppressions and broadcasts, and react in real time when Customer.io posts a Reporting Webhook for a send, delivery, open, click, bounce, conversion, or subscription change.
Connect a Customer.io account
- Open your workspace in TaskJuice and navigate to Connections.
- Choose Customer.io and click Connect.
- In a new tab, sign in to Customer.io as the client and open Settings, Workspace Settings, API Credentials. Copy the Site ID and the Track API key.
- Open Settings, Account Settings, App API Keys. Click Create App API Key, scope it to the actions your workflows need (Customers, Send Email), and copy the key value.
- Paste the Site ID, Track API key, and App API key into TaskJuice.
- Set the Track API host to
track.customer.ioand the App API host toapi.customer.iofor US workspaces, or totrack-eu.customer.ioandapi-eu.customer.iofor EU workspaces.
To rotate or revoke either key, return to the Customer.io app, regenerate the credential, and update the TaskJuice connection. The Track and App keys rotate independently.
Triggers
Every trigger is fed by a Customer.io Reporting Webhook. Each POST carries one event and produces one activation with the event_id, object_type, metric, timestamp, delivery_id, and the full data payload. Each metric routes to exactly one trigger.
Subscription triggers:
customer-io/customer-subscribedfires when a person subscribes to your messages.customer-io/customer-unsubscribedfires when a person unsubscribes, from a message or from their profile.customer-io/subscription-preferences-changedfires when a person changes their subscription topic preferences. Enable Include body content on the reporting webhook to receive the changed topics indata.content.customer-io/customer-eventfires on every remainingcustomer-scoped metric.
Email triggers, one per metric:
customer-io/email-sent,customer-io/email-delivered,customer-io/email-opened,customer-io/email-clicked,customer-io/email-converted,customer-io/email-bounced,customer-io/email-spammed, andcustomer-io/email-failed(which coversfailed,droppedandundeliverable). Opens and clicks are unique-only unless the reporting webhook has full resolution enabled.customer-io/email-eventfires on the remaining email metrics:drafted,attemptedanddeferred.
Per-channel triggers that carry every metric for that channel. Read metric to tell them apart:
customer-io/sms-event,customer-io/push-event,customer-io/in-app-event,customer-io/slack-event,customer-io/whatsapp-event, andcustomer-io/webhook-event(outbound webhook actions).
Set up the Reporting Webhook
You create the Reporting Webhook in Customer.io yourself; TaskJuice does not register it.
- Pick the Customer.io connection on the trigger and copy the delivery URL the trigger panel shows for that connection. Each connection has its own URL, and a delivery sent to it starts only the workflows that use that connection, so give each client workspace its own connection.
- In Customer.io, go to Data & Integrations -> Integrations -> Reporting Webhooks, create a webhook with that URL as its endpoint, and tick the metrics your workflows need.
- Customer.io generates a signing key for the webhook. Copy it from the same page and enter it in the connection's Reporting webhook signing key field (edit the connection on the Apps page). You copy the key out of Customer.io; you do not choose it. Until the key is entered, the trigger panel says so and deliveries to that connection's URL are turned away.
TaskJuice verifies the HMAC-SHA256 signature Customer.io places in X-CIO-Signature against v0:${timestamp}:${rawBody} on every inbound POST, using the timestamp in X-CIO-Timestamp and the signing key of the connection the delivery was sent to, before activating the workflow. Deliveries more than five minutes old are rejected.
Actions
People and events (Track API):
customer-io/identify-customercreates or updates a customer profile in Customer.io. Merges the supplied attributes into the customer record keyed by the supplied id.customer-io/track-eventrecords a behavioral event for a known customer with optional event data merged into liquid variables.customer-io/track-anonymous-eventrecords a behavioral event for a visitor without a known customer id (cookie or session id), which Customer.io will merge with a customer profile once they are identified.customer-io/merge-customersfolds a duplicate person into a surviving one and deletes the duplicate.customer-io/delete-customerpermanently deletes a person and their data. A later identify call with the same id recreates the person.customer-io/suppress-customerdeletes a person and blocks the identifier from being re-added. Use it for GDPR and CCPA erasure requests.customer-io/unsuppress-customerlifts a suppression so the identifier can be added again. It does not restore the deleted profile.customer-io/add-customers-to-segmentandcustomer-io/remove-customers-from-segmentadd or remove up to 1,000 people on a manual segment.
Lookups and reporting (App API):
customer-io/get-customer-attributesfetches the full attribute payload for one customer profile.customer-io/find-customers-by-emailfinds the people that carry a given email address.customer-io/list-customer-segmentslists the segments a person belongs to.customer-io/list-segmentsandcustomer-io/get-segment-customer-countlist the workspace's segments and count the people in one.customer-io/list-campaigns,customer-io/get-campaign, andcustomer-io/get-campaign-metricsread campaigns and their delivery metrics as a time series.
Messaging (App API):
customer-io/send-transactional-email,customer-io/send-transactional-sms, andcustomer-io/send-transactional-pushsend a transactional message by referencing its transactional message id and merging the supplied data into the template.customer-io/list-transactional-messageslists the transactional messages configured in the workspace, with their ids.customer-io/trigger-broadcaststarts an API-triggered broadcast, to its own audience or to the recipients you supply.
Known limitations
- The Track API and the App API use different keys and different hostnames. Track ingest goes to
track.customer.io(ortrack-eu.customer.io) and uses HTTP Basic with the Site ID and Track API key. App API reads and transactional sends go toapi.customer.io(orapi-eu.customer.io) and use the App API key as a Bearer token. A key-host mismatch surfaces as a 401 from Customer.io. - Per-workspace rate limits, daily ingest caps, and feature entitlements are governed by the client's Customer.io plan, not by TaskJuice. When Customer.io returns a 429, the action surfaces as a retryable rate-limit error and honors the recommended backoff.
- Reporting Webhooks are configured in Customer.io by hand; TaskJuice does not register them. One webhook can carry every metric, and each metric routes to its own trigger.
- The transactional send actions require the transactional message id of a template already published in the Customer.io app. Create or import the template under Transactional, Messages before referencing it from a workflow.
- Customer.io rejects writes from a region that does not match the workspace. EU workspaces must use the EU host pair; US workspaces must use the US host pair.