customerio-journeys-track

v1.0.5
com.mcparmory/customerio-journeys-track Checked 3 days ago Published 6 months ago

Track 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.

ParameterTypeDescription
identifier *stringThe 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.
_updatebooleanSet 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.
actionstringSpecifies whether to add relationships to or remove relationships from the customer.
anonymous_idstringAn anonymous identifier (such as a cookie value) that associates anonymous events with this customer. Must be unique and cannot be reused across different customers.
emailstringThe email address of the customer. Case-insensitive for workspaces using email as an identifier.
idstringA customer's unique ID. Can be set when identifying by email; can be updated when identifying by `cio_id`.
relationshipsarrayAn array of relationship objects to add to or remove from the customer, based on the `action` parameter. Each object represents a single relationship.
topicsobjectAn object containing active topics in your workspace, with keys in the format `topic_<id>` and boolean values indicating topic subscription status.
unsubscribedbooleanSubscription 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.

ParameterTypeDescription
identifier *stringThe 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.

ParameterTypeDescription
device *objectAn 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 *stringThe 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.

ParameterTypeDescription
device_id *stringThe unique identifier of the device to remove from the customer profile.
identifier *stringThe 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.

ParameterTypeDescription
identifier *stringThe 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.

ParameterTypeDescription
identifier *stringThe 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.

ParameterTypeDescription
delivery_id *stringThe unique identifier of the email delivery associated with the unsubscribe request.
unsubscribebooleanSet 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.

ParameterTypeDescription
identifier *stringThe unique identifier for the customer. Can be their user ID, email address, or CIO ID depending on workspace configuration.
name *stringThe name of the event used to reference it in campaigns and segments. Leading and trailing spaces are automatically trimmed.
anonymous_idstringAn 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.
dataobjectCustom 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…
idstringA unique identifier for deduplicating events. If an event with this ID was previously received, it will not be processed again.
timestampstringThe 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.
typestringCategorizes 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.

ParameterTypeDescription
name *stringThe 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_idstringA 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…
dataobjectAdditional 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.
idstringA unique identifier for deduplicating this event. If an event with the same ID was previously received, it will not be processed again.
timestampstringThe Unix timestamp indicating when the event occurred. If not provided, the server timestamp at receipt time is used.
typestringThe 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.

ParameterTypeDescription
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 *stringThe 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.

ParameterTypeDescription
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.

ParameterTypeDescription
delivery_id *stringThe 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 *stringThe type of email metric being reported. Choose the value that best describes the event that occurred.
hrefstringFor clicked metrics, the URL or link that the recipient clicked. Include the full link destination.
reasonstringThe reason for failure-related metrics such as bounces or drops. Provide context about why the metric occurred.
recipientstringThe email address of the recipient who received the message and triggered this metric event.
timestampstringThe 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.

ParameterTypeDescription
ids *arrayArray 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 *stringThe 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_typestringThe 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.

ParameterTypeDescription
ids *arrayArray 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 *stringThe 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_typestringThe 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.

ParameterTypeDescription
action *stringThe operation to perform on the specified entity type, such as identifying a profile, tracking an event, managing devices, or merging records.
type *stringThe entity type being modified: a person, object, or delivery record.
attributesobjectCustom 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_relationshipsarrayRelationship data to associate with the entity, defining connections between people and objects.
deviceobjectProperties representing an individual device, such as device type, OS, and app version. SDKs automatically gather these properties unless disabled.
idstringA unique ULID used to deduplicate events and prevent duplicate processing.
identifiersThe identifier for the person or object being modified. Provide exactly one of: `id` (ULID), `email`, or `cio_id`. Cannot pass multiple identifiers.
namestringThe name of the event being tracked. Used to identify and trigger campaigns in Customer.io.
primaryThe 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`.
secondaryThe 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`.
timestampintegerUnix 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.