Skip to content
customer.io

How to use customer.io

MarketingCost: 1 credit per runTop 100 · #42Full guide

What it is for

The customer.io component connects flooows with your messaging and journeys platform. You can track customer events to trigger campaigns and receive reporting events (sends, opens, clicks) to push them to other systems.

New Reporting Event is a webhook trigger: copy the flow's webhook URL and paste it into customer.io as a reporting webhook to receive events instantly; you can filter by Event Types, Campaign ID or Action ID.

Set up the connection

Authentication type: Custom credentials

  1. 1In customer.io go to Settings > API Credentials (fly.customer.io/settings/api_credentials).
  2. 2In the Tracking API section copy the Site ID and tracking key; in the App API section generate an App API token. They are different credentials.
  3. 3In flooows click "Connect", choose your account Region (US or EU) and paste Site ID, API Key (tracking) and Bearer Token (App API).
  4. 4Save the connection with a clear name.
Connection fieldTypeRequired
RegionFixed listYes
Site IDTextYes
API KeyTextYes
Bearer TokenTextYes

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Create Event: map the customer's ID or email into Customer identifier and set Event Name to the event that starts your campaign.
  • Add extra data in parameters or Body to personalize messages.
  • Track Custom API Call uses the Tracking API (identify people, attributes) and App Custom API Call uses the App API (campaigns, transactional messages).

Tips

  • •Use consistent event names so segments and campaigns work.
  • •Pick the right region: an EU account does not answer on US endpoints.
  • •Filter with Recipient Domain if you only care about certain recipients.

Triggers (1)

Events that can start a flow. Expand each one to see its fields.

New Reporting EventWebhook (paste the URL in the app)4 fields
FieldTypeRequired
Event TypesMulti-selectYes
Campaign IDNumberNo
Action IDNumberNo
Recipient DomainTextNo

Actions (3)

Operations available as flow steps. Expand each one to see its fields.

Create Event4 fields
FieldTypeRequired
Customer identifierTextYes
Event NameTextYes
parametersFixed listNo
BodyDynamic fieldsNo
Track Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo
App Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

401 on tracking calls

Check Site ID and API Key; do not use the App API token instead.

401 on App calls

Check the Bearer Token and its scope.

No reporting events arrive

Verify the webhook URL is saved in customer.io and the flow is published.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps