Skip to content
For LLMsView as Markdown·

Customer.io Pipelines API

Send customer data to Customer.io via the Segment-compatible Pipelines (CDP) API — identify people, track events, record pageviews and screen views, associate users with groups, merge profiles, and batch multiple calls.

DetailValue
CategoryAnalytics
Base URLhttps://cdp.customer.io/v1
AuthenticationBearer Token
Endpoints7
Connector keycustomer-io-pipelines-api

Using Customer.io Pipelines API in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Customer.io Pipelines API from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /identifyAdd and Update People
POST /trackTrack events
POST /pageTrack pageviews
POST /screenTrack mobile screenviews
POST /groupCreate objects and relationships
POST /aliasMerge profiles
POST /batchBatch requests

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /identify

Add and Update People

DetailValue
Operation IDidentify
MethodPOST
Path/identify

Parameters

No parameters.

Request Body

FieldType
userIdstring
anonymousIdstring
traitsobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Customer.io Pipelines API connection from the Connection dropdown.
  3. In the Operation dropdown, select identify.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Customer.io Pipelines API API reference.

POST /track

Track events

DetailValue
Operation IDtrack
MethodPOST
Path/track

Parameters

No parameters.

Request Body

FieldType
userIdstring
eventstring
propertiesobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Customer.io Pipelines API connection from the Connection dropdown.
  3. In the Operation dropdown, select track.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Customer.io Pipelines API API reference.

POST /page

Track pageviews

DetailValue
Operation IDpage
MethodPOST
Path/page

Parameters

No parameters.

Request Body

FieldType
userIdstring
namestring
propertiesobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Customer.io Pipelines API connection from the Connection dropdown.
  3. In the Operation dropdown, select page.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Customer.io Pipelines API API reference.

POST /screen

Track mobile screenviews

DetailValue
Operation IDscreen
MethodPOST
Path/screen

Parameters

No parameters.

Request Body

FieldType
userIdstring
namestring
propertiesobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Customer.io Pipelines API connection from the Connection dropdown.
  3. In the Operation dropdown, select screen.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Customer.io Pipelines API API reference.

POST /group

Create objects and relationships

DetailValue
Operation IDgroup
MethodPOST
Path/group

Parameters

No parameters.

Request Body

FieldType
userIdstring
groupIdstring
traitsobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Customer.io Pipelines API connection from the Connection dropdown.
  3. In the Operation dropdown, select group.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Customer.io Pipelines API API reference.

POST /alias

Merge profiles

DetailValue
Operation IDalias
MethodPOST
Path/alias

Parameters

No parameters.

Request Body

FieldType
userIdstring
previousIdstring

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Customer.io Pipelines API connection from the Connection dropdown.
  3. In the Operation dropdown, select alias.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Customer.io Pipelines API API reference.

POST /batch

Batch requests

DetailValue
Operation IDbatch
MethodPOST
Path/batch

Parameters

No parameters.

Request Body

FieldType
batcharray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Customer.io Pipelines API connection from the Connection dropdown.
  3. In the Operation dropdown, select batch.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Customer.io Pipelines API API reference.