customerio-journeys-track
v1.0.5Track customer data, manage audience segments, and trigger personalized campaigns
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_account_region Get Account Region
Retrieve your account's region and environment details. This endpoint returns the appropriate regional URL and environment ID for your Track API credentials, which you should use for all subsequent API requests.
upsert_customer Upsert Customer
Add a new customer or update an existing customer's profile. This operation handles identifier merging, profile creation, and attribute updates based on the identifiers provided in the path and request body.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The unique identifier for the customer in the path. Can be a customer ID, email address, or `cio_id` (prefixed with `cio_`). For workspaces using email as an identifier, this is case-insensitive. |
_update | boolean | Set to true to update an existing customer profile instead of creating a new one when the identifier is not found. Prevents duplicate profile creation during rapid successive requests. |
action | string | Specifies whether to add relationships to or remove relationships from the customer. |
anonymous_id | string | An anonymous identifier (such as a cookie value) that associates anonymous events with this customer. Must be unique and cannot be reused across different customers. |
email | string | The email address of the customer. Case-insensitive for workspaces using email as an identifier. |
id | string | A customer's unique ID. Can be set when identifying by email; can be updated when identifying by `cio_id`. |
relationships | array | An array of relationship objects to add to or remove from the customer, based on the `action` parameter. Each object represents a single relationship. |
topics | object | An object containing active topics in your workspace, with keys in the format `topic_<id>` and boolean values indicating topic subscription status. |
unsubscribed | boolean | Subscription status for the customer. When true, the customer is unsubscribed from all messages. When false or absent, the customer is eligible to receive messages based on their subscription preferen… |
delete_customer Delete Customer
Permanently remove a customer and all associated information from Customer.io. Note that customers recreated through other integration methods (such as the Javascript snippet) after deletion may need to be deleted again.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The unique identifier for the customer to delete. This can be a customer ID, email address, or cio_id (prefixed with 'cio_') depending on your workspace configuration. |
register_device Register Device
Register or update a device for a customer. Customers can maintain multiple devices (iOS and Android) on their profile.
| Parameter | Type | Description |
|---|---|---|
device * | object | An object containing device properties such as platform type, device token, and attributes. Properties are automatically collected by SDKs unless `autoTrackDeviceAttributes` is disabled. Device proper… |
identifier * | string | The unique identifier for the customer. Can be an `id`, `email` address, or `cio_id` (prefixed with `cio_`) depending on workspace configuration. |
remove_device Remove Device
Remove a device from a customer profile. Ensure you stop sending device data to Customer.io to prevent the device from being automatically re-added.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | The unique identifier of the device to remove from the customer profile. |
identifier * | string | The unique identifier for the customer. This can be an `id`, `email` address, or `cio_id` (prefixed with `cio_`) depending on your workspace configuration. |
suppress_customer Suppress Customer
Permanently delete a customer profile and suppress their identifier(s) to prevent re-addition to the workspace. All future API calls referencing the suppressed identifier are ignored. This action cannot be undone and should be used primarily for GDPR/CCPA compliance requests.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The unique identifier for the customer to suppress. This can be an email address, customer ID, or CIO ID (prefixed with `cio_`) depending on your workspace configuration. When using CIO ID, the value… |
unsuppress_customer Unsuppress Customer
Reactivate a suppressed customer profile to make their identifier available for new profile creation. Unsuppressing does not restore the previous profile history; it only makes the identifier usable again.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The unique identifier for the customer, which can be their ID, email address, or cio_id (prefixed with 'cio_'). The identifier type depends on your workspace configuration. |
mark_delivery_unsubscribed Mark Delivery Unsubscribed
Mark a person as unsubscribed from a specific email delivery. Use this endpoint with custom unsubscribe pages to record unsubscribe requests and trigger email_unsubscribed events for audience segmentation.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The unique identifier of the email delivery associated with the unsubscribe request. |
unsubscribe | boolean | Set to true to mark the person as unsubscribed and attribute the unsubscribe action to this delivery. |
track_customer_event Track Customer Event
Record a behavioral event (page view, screen view, or custom event) for a customer to enable campaign triggering and audience segmentation. Events with timestamps within the past 72 hours can activate campaigns.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The unique identifier for the customer. Can be their user ID, email address, or CIO ID depending on workspace configuration. |
name * | string | The name of the event used to reference it in campaigns and segments. Leading and trailing spaces are automatically trimmed. |
anonymous_id | string | An identifier for anonymous events (such as a cookie value). When set as a customer attribute, all events with this identifier are associated with that customer. Must be unique and non-reusable. |
data | object | Custom properties associated with the event for use in campaign personalization via liquid templating or for setting customer attributes. Reserved properties (from_address, recipient, reply_to) overri… |
id | string | A unique identifier for deduplicating events. If an event with this ID was previously received, it will not be processed again. |
timestamp | string | The Unix timestamp indicating when the event occurred. If omitted, the server timestamp at receipt is used. Only events from the past 72 hours can trigger campaigns. |
type | string | Categorizes the event as a page view, mobile screen view, or custom event. Defaults to 'event' if not specified. |
log_anonymous_event Log Anonymous Event
Log an event for an unidentified person using an anonymous identifier. Events can be associated with a person later when their identity is confirmed, enabling campaign triggers within 72 hours of the event timestamp.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the event used to reference it in campaigns and segments. Avoid leading or trailing spaces as they cannot be referenced in campaign logic. |
anonymous_id | string | A unique identifier for the anonymous person, such as a cookie or device ID. When this identifier is later set as an attribute on a person, all events with matching anonymous_id are associated with th… |
data | object | Additional event metadata as key-value pairs. Can include custom attributes to set on the person, or special fields like 'from_address' and 'reply_to' for campaign triggering. |
id | string | A unique identifier for deduplicating this event. If an event with the same ID was previously received, it will not be processed again. |
timestamp | string | The Unix timestamp indicating when the event occurred. If not provided, the server timestamp at receipt time is used. |
type | string | The category of event being tracked. Use 'page' for website page views, 'screen' for mobile app screen views, or 'event' for all other event types. |
submit_form Submit Form
Submit a form response and create or update the respondent in Customer.io. Form submissions are associated with a form connection; if the form_id is unrecognized, a new form connection is automatically created.
| Parameter | Type | Description |
|---|---|---|
data * | An object containing form field data and respondent identifiers. Must include at least one identifier field (id, email, or a field mapped to these identifiers) to identify or create the form responden… | |
form_id * | string | The unique identifier for the form. Use a value that is meaningful to your system and traceable to your backend. If Customer.io does not recognize this identifier, a new form connection will be create… |
merge_customers Merge Customers
Merge two customer profiles by consolidating the secondary profile into the primary profile, then deleting the secondary. This operation is irreversible and requires the primary profile to already exist in Customer.io.
| Parameter | Type | Description |
|---|---|---|
primary * | The customer profile that will remain after the merge. Identified by `id`, `email`, or `cio_id`. This profile receives merged data from the secondary profile. Must already exist in Customer.io at the… | |
secondary * | The customer profile that will be deleted after the merge. Identified by `id`, `email`, or `cio_id`. This profile's attributes, event history, segments, and campaign journeys are merged into the prima… |
report_metric Report Metric
Report email metrics from external channels or non-SDK integrations by associating events with a delivery ID from a Customer.io message. Use the CIO-Delivery-ID header value as the delivery_id to track opens, clicks, conversions, bounces, and other email events.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The CIO-Delivery-ID header value from the notification you want to associate this metric with. This ID links the reported event back to the original message delivery. |
metric * | string | The type of email metric being reported. Choose the value that best describes the event that occurred. |
href | string | For clicked metrics, the URL or link that the recipient clicked. Include the full link destination. |
reason | string | The reason for failure-related metrics such as bounces or drops. Provide context about why the metric occurred. |
recipient | string | The email address of the recipient who received the message and triggered this metric event. |
timestamp | string | The Unix timestamp indicating when the event occurred. If omitted, the current time is used. |
add_customers_to_segment Add Customers to Segment
Add customers to a manual segment by their identifiers. You can add up to 1000 customers per request using their ID, email, or CIO ID.
| Parameter | Type | Description |
|---|---|---|
ids * | array | Array of customer identifiers to add to the segment. All values must match the id_type parameter. Unmatched entries are ignored. Accepts 1 to 1000 identifiers per request. |
segment_id * | string | The unique identifier of the manual segment. Find this ID in the segment's dashboard page under Usage, or retrieve it using the segments API. |
id_type | string | The identifier type for all values in the ids array. All customer identifiers must be of the same type. Defaults to customer ID if not specified. |
remove_customers_from_segment Remove Customers from Segment
Remove customers from a manual segment by their identifiers. This operation supports up to 1000 customer IDs per request and requires customers to have id attributes in your workspace.
| Parameter | Type | Description |
|---|---|---|
ids * | array | Array of customer identifiers to remove from the segment. Must contain between 1 and 1000 identifiers, all matching the type specified in id_type. |
segment_id * | string | The unique identifier of the segment from which to remove customers. You can find this ID in the Segments dashboard under Usage, or retrieve it via the Segments API. |
id_type | string | The identifier type for the customers being removed. All values in the ids array must match this type. Defaults to id if not specified. |
manage_entity Manage Entity
Create, update, delete, or manage relationships for a person or object (such as a company or product) in Customer.io. Supports operations like identifying profiles, tracking events, managing devices, and merging duplicate person records.
| Parameter | Type | Description |
|---|---|---|
action * | string | The operation to perform on the specified entity type, such as identifying a profile, tracking an event, managing devices, or merging records. |
type * | string | The entity type being modified: a person, object, or delivery record. |
attributes | object | Custom and reserved attributes to add or update for the entity. You can pass custom properties beyond the reserved ones defined in the Track API. |
cio_relationships | array | Relationship data to associate with the entity, defining connections between people and objects. |
device | object | Properties representing an individual device, such as device type, OS, and app version. SDKs automatically gather these properties unless disabled. |
id | string | A unique ULID used to deduplicate events and prevent duplicate processing. |
identifiers | The identifier for the person or object being modified. Provide exactly one of: `id` (ULID), `email`, or `cio_id`. Cannot pass multiple identifiers. | |
name | string | The name of the event being tracked. Used to identify and trigger campaigns in Customer.io. |
primary | The person to retain after a merge operation, identified by `id`, `email`, or `cio_id`. This person receives attributes from the secondary person. Required when action is `merge`. | |
secondary | The person to delete after a merge operation, identified by `id`, `email`, or `cio_id`. This person's information is merged into the primary person and then deleted. Required when action is `merge`. | |
timestamp | integer | Unix timestamp indicating when the attribute update occurred. Use this to control the order of updates when multiple requests are sent in rapid succession. |
batch_entities Batch Entities
Submit multiple entity operations in a single request to create or modify people and objects. Combine different entity types (people, objects, deliveries) in one batch for efficient bulk processing.