Skip to main content

Customer.io integration

Sync customer profiles, ingest behavioral events, send transactional email, and react to delivery lifecycle webhooks on behalf of your clients.

View the Customer.io page

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

  1. Open your workspace in TaskJuice and navigate to Connections.
  2. Choose Customer.io and click Connect.
  3. 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.
  4. 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.
  5. Paste the Site ID, Track API key, and App API key into TaskJuice.
  6. Set the Track API host to track.customer.io and the App API host to api.customer.io for US workspaces, or to track-eu.customer.io and api-eu.customer.io for 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-subscribed fires when a person subscribes to your messages.
  • customer-io/customer-unsubscribed fires when a person unsubscribes, from a message or from their profile.
  • customer-io/subscription-preferences-changed fires when a person changes their subscription topic preferences. Enable Include body content on the reporting webhook to receive the changed topics in data.content.
  • customer-io/customer-event fires on every remaining customer-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, and customer-io/email-failed (which covers failed, dropped and undeliverable). Opens and clicks are unique-only unless the reporting webhook has full resolution enabled.
  • customer-io/email-event fires on the remaining email metrics: drafted, attempted and deferred.

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, and customer-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.

  1. 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.
  2. 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.
  3. 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-customer creates or updates a customer profile in Customer.io. Merges the supplied attributes into the customer record keyed by the supplied id.
  • customer-io/track-event records a behavioral event for a known customer with optional event data merged into liquid variables.
  • customer-io/track-anonymous-event records 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-customers folds a duplicate person into a surviving one and deletes the duplicate.
  • customer-io/delete-customer permanently deletes a person and their data. A later identify call with the same id recreates the person.
  • customer-io/suppress-customer deletes a person and blocks the identifier from being re-added. Use it for GDPR and CCPA erasure requests.
  • customer-io/unsuppress-customer lifts a suppression so the identifier can be added again. It does not restore the deleted profile.
  • customer-io/add-customers-to-segment and customer-io/remove-customers-from-segment add or remove up to 1,000 people on a manual segment.

Lookups and reporting (App API):

  • customer-io/get-customer-attributes fetches the full attribute payload for one customer profile.
  • customer-io/find-customers-by-email finds the people that carry a given email address.
  • customer-io/list-customer-segments lists the segments a person belongs to.
  • customer-io/list-segments and customer-io/get-segment-customer-count list the workspace's segments and count the people in one.
  • customer-io/list-campaigns, customer-io/get-campaign, and customer-io/get-campaign-metrics read campaigns and their delivery metrics as a time series.

Messaging (App API):

  • customer-io/send-transactional-email, customer-io/send-transactional-sms, and customer-io/send-transactional-push send a transactional message by referencing its transactional message id and merging the supplied data into the template.
  • customer-io/list-transactional-messages lists the transactional messages configured in the workspace, with their ids.
  • customer-io/trigger-broadcast starts 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 (or track-eu.customer.io) and uses HTTP Basic with the Site ID and Track API key. App API reads and transactional sends go to api.customer.io (or api-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.
Was this helpful?