Connect your organization's existing behavioral data to Movable Ink Studio using the Customer Data API (CDAPI). The API allows you to send visitor activity collected by external systems, such as customer data platforms (CDPs), marketing platforms, or internal applications, to Studio for behavioral personalization.
For example, if your CDP tracks product views, searches, and purchases, you can send those events to Studio and use them to personalize campaign content based on visitors' recent activity.
This guide explains the technical requirements, configuration process, supported event schemas, and troubleshooting steps for integrating the Customer Data API.
How the Customer Data API works
The Customer Data API receives behavioral events from your external system through authenticated HTTP POST requests.
The integration follows this process:
- Your source system collects visitor activity. For example, a CDP records when a visitor views a product on your website.
- Your system sends the event to Movable Ink. The Customer Data API receives the event data in JSON format.
- Studio associates the event with a customer profile. Customer identifiers connect incoming activity with the appropriate behavioral profile.
- Studio uses the event for personalization. The activity becomes available through Studio's existing behavioral personalization features.
The Customer Data API accepts behavioral events, not general customer attributes such as loyalty tiers, postal codes, or membership numbers. To retrieve customer attributes from an external system, use a supported Profile API integration.
Before you begin
Before configuring the integration, confirm that your Movable Ink account, data source, and event data meet the following requirements.
Account and data source requirements
| Requirement | Description |
|---|---|
| Movable Ink license | Your organization must have a behavioral license. |
| Behavioral event data | Your system must already collect, or be able to collect, the visitor activities you intend to send. |
| HTTP requests | Your data source must support HTTP POST requests with JSON payloads. |
| Authentication | Your data source must support Basic authentication or HMAC-SHA256 signature validation. |
| Customer identifiers | Your event data must include identifiers that Studio can use to associate events with customer profiles. |
| Integration credentials | Movable Ink provides account-specific API endpoints and authentication credentials. |
You can connect multiple data sources to the Customer Data API. Each source requires separate credentials.
Customer identifiers
The Customer Data API uses customer identifiers to associate incoming events with behavioral profiles in Studio.
| Identifier | Description |
|---|---|
UserID |
Identifies a known user. Must match the unique user identifier (UUID) used in the mi_u parameter in Studio. |
AnonymousID |
Identifies an anonymous visitor whose known identity has not yet been established. |
Each event must include at least one of these identifiers. You can include both.
For known users, the UserID value must match the UUID used by Studio. If the identifiers don't match, Studio may not associate the incoming activity with the intended campaign recipient.
For example, if Studio identifies a user using customer123, your source system must send customer123 as the UserID.
Anonymous identifiers allow Studio to record activity before a visitor is identified. When the visitor becomes a known user, an Identify event can associate earlier anonymous activity with the known customer profile.
Set up the integration
Your organization's technical team configures the Customer Data API in the external system that sends behavioral events. Movable Ink provides the required credentials and assists with event mapping, validation, and testing.
Step 1: Identify your data source
Determine which system will send behavioral events to Movable Ink.
This could be a CDP, marketing platform, or internally developed system that collects visitor activity.
Movable Ink has existing integrations with providers including Twilio Segment, Adobe, and Braze. If you're using a supported provider, review the relevant Customer Data API partner documentation for platform-specific instructions.
Confirm that your source system can send JSON payloads through authenticated HTTP POST requests.
Step 2: Identify the events you want to send
Determine which visitor activities you want to make available for personalization in Studio.
The Customer Data API supports predefined events for common retail activities, as well as custom events.
| Event type | Description |
|---|---|
| Product Search | A visitor searches for a product or category. |
| Product Viewed | A visitor views a page or product. |
| Product Added | A visitor adds a product to their cart. |
| Product Removed | A visitor removes a product from their cart. |
| Category Viewed | A visitor visits a product category page. |
| Conversion | A visitor completes a purchase. |
| Identify | An anonymous visitor becomes associated with a known user identifier. |
| Custom Event | A visitor activity that doesn't match a predefined event type. |
Custom events are limited to 10 event types per account. Contact your Client Success Manager if you need additional custom event types.
For the fields and data types associated with each event, see Event schemas.
Step 3: Prepare your event data
Review the events collected by your source system and compare their fields with the Customer Data API requirements.
For each event type:
- Identify the corresponding activity in your source system.
- Confirm that the required fields are available.
- Check that customer identifiers match those used in Studio.
- Verify that timestamps and other values meet the formatting requirements.
- Prepare sample event payloads, if available.
- Determine whether events will be sent individually or in batches.
Your source system may use different field names or data structures from the Customer Data API.
Movable Ink reviews your event details during implementation to determine whether any field mapping is required.
Step 4: Request your integration credentials
Contact your Client Success Manager to begin the integration.
Provide the following information:
| Information | What to provide |
|---|---|
| Data source | The CDP, marketing platform, or internal system sending events. |
| Intended use cases | How you plan to use the behavioral data for personalization. |
| Event types | The visitor activities your system will send. |
| Sample payloads | Examples of your event data, if available. |
| Delivery format | Whether events will be sent individually or in batches. |
Movable Ink reviews this information and provides the API endpoint URL and authentication credentials specific to your account and data source.
If sample payloads aren't available, let your Client Success Manager know.
Step 5: Configure authentication and event delivery
Use the endpoint URL and credentials provided by Movable Ink to configure your source system.
The Customer Data API supports two authentication methods:
| Method | Description |
|---|---|
| Basic authentication | Authenticates requests using credentials provided for your integration. |
| HMAC-SHA256 | Uses a cryptographic signature to authenticate requests. |
Configure your system to use the authentication method established during implementation.
Requests must use HTTP POST with JSON payloads. The API endpoint uses HTTPS and supports TLS 1.2 and TLS 1.3.
Important: Keep your integration credentials secure. Don't expose them in client-side code or public repositories.
Step 6: Test the integration
After configuring your data source, work with your Client Success Manager to test event delivery.
Confirm that:
- Your system can successfully send authenticated requests.
- Movable Ink receives the expected event types.
- Required fields are present and correctly formatted.
- Customer identifiers match those used in Studio.
- Events are associated with the intended customer profiles.
- The incoming data supports your planned personalization use cases.
Review API responses for request errors.
Event schemas
The Customer Data API supports predefined schemas for common behavioral events.
An event schema defines the fields, data types, and formatting requirements for an event. Use the following specifications when preparing the data sent by your source system.
General event requirements
The following requirements apply to all supported events.
| Requirement | Specification |
|---|---|
| String fields | Maximum 256 characters |
| Timestamp | Unix timestamp in milliseconds |
| Event age | No more than 30 days in the past |
| Future timestamps | No more than one day in the future |
| Customer identifiers | Include UserID, AnonymousID, or both |
| Individual event payload | Maximum 32 KB |
| Custom event types | Maximum 10 per account |
In the following tables, Conditional means that at least one customer identifier must be provided. You can include both UserID and AnonymousID.
Product Search
Records a visitor searching for a product or category.
| Property | Type | Required | Example |
|---|---|---|---|
| Event Type | String | Yes | seach_completed |
| Query | String | Yes | red shoes |
| Timestamp | Number | Yes | 1257894000000 |
| UserID | String | Conditional | 5c3aa83113dd49 |
| AnonymousID | String | Conditional | 0100d3d8d7ABc |
| Channel | String | No | web |
| Timezone | String | No | America/New_York |
| URL | String | No | https://www.example.com/search?q= |
Product Viewed, Product Added, and Product Removed
These events record interactions with individual products.
| Property | Type | Required | Example |
|---|---|---|---|
| Event Type | String | Yes |
page_view or add_to_cart
|
| ID | String | Yes | 56544 |
| Timestamp | Number | Yes | 1257894000000 |
| UserID | String | Conditional | 5c3aa83113dd49 |
| AnonymousID | String | Conditional | 0100d3d8d7ABc |
| Categories | Array | No | Maximum 10 categories |
| ↳ ID | String | No | 123542 |
| ↳ URL | String | No | https://www.example.com/categories/1 |
| Channel | String | No | mobile |
| Price | Number | No | 1.99 |
| Timezone | String | No | America/New_York |
| Title | String | No | All-Purpose Cleaning Wipes |
| URL | String | No | https://www.example.com/56544 |
| Meta Fields | String | No | Colour, size, brand; maximum 20 additional fields |
Category Viewed
Records a visitor viewing a product category page.
| Property | Type | Required | Example |
|---|---|---|---|
| Event Type | String | Yes | category_view |
| CategoryID | String | Yes | bathroom-1 |
| Timestamp | Number | Yes | 1257894000000 |
| UserID | String | Conditional | 5c3aa83113dd49 |
| AnonymousID | String | Conditional | 0100d3d8d7ABc |
| Category URL | String | No | https://www.example.com/bathroom-1 |
| Channel | String | No | mobile |
| Timezone | String | No | America/New_York |
Conversion
Records a completed purchase and the products included in the order.
| Property | Type | Required | Example |
|---|---|---|---|
| Event Type | String | Yes | order_completed |
| Timestamp | Number | Yes | 1257894000000 |
| UserID | String | Conditional | 5c3aa83113dd49 |
| AnonymousID | String | Conditional | 0100d3d8d7ABc |
| Products | Array | Yes | Maximum 100 products |
| ↳ ID | String | Yes | 27925-WT594 |
| ↳ Title | String | No | Green shirt |
| ↳ Price | String | No | 15.99 |
| ↳ Quantity | Integer | No | 2 |
| ↳ URL | String | No | https://www.example.com/27925-WT594 |
| Channel | String | No | mobile |
| Timezone | String | No | America/New_York |
| Revenue | String | No | 347.50 |
| ID | String | No | 1238790 |
Identify
Associates an anonymous visitor identifier with a known user identifier.
| Property | Type | Required | Example |
|---|---|---|---|
| Event Type | String | Yes | identify |
| Timestamp | Number | Yes | 1257894000000 |
| UserID | String | Yes | 5c3aa83113dd49 |
| AnonymousID | String | Yes | 0100d3d8d7ABc |
| Timezone | String | No | America/New_York |
Custom events
Custom events support visitor activities that aren't covered by the predefined event types.
Your account can have up to 10 custom event types. If you need more, contact your Client Success Manager.
Your Client Success Manager can help determine the event requirements during implementation.
Send events in batches
The Customer Data API supports sending multiple behavioral events in a single batch.
Batch delivery is useful when your source system sends collections of visitor interactions rather than individual events.
For example, your system might send product views, searches, and cart interactions together in one request.
Movable Ink separates the batch into individual events for use in Studio.
The following limits apply:
| Requirement | Limit |
|---|---|
| Maximum batch size | 1 MB |
| Maximum events per batch | 1,000 |
Batch processing requires additional configuration when incoming event data must be mapped to Studio's schema.
If you plan to send events in batches, include this information when requesting your integration credentials.
Troubleshoot API requests
The Customer Data API returns HTTP status codes indicating the result of a request.
Use these codes to help identify issues with event delivery.
| Status code | Meaning | Recommended action |
|---|---|---|
200 |
Successful response | Confirm the expected events are received during integration testing. |
408 |
The API timed out while reading the message. | Review the request and retry. |
429 |
The integration exceeded a rate limit. | Review request frequency and retry configuration. |
500 |
Internal server error | Retry the request. Contact your Client Success Manager if the error persists. |
503 |
Service unavailable | Retry after a delay. Contact your Client Success Manager if the issue persists. |
If requests fail, check the endpoint URL, authentication credentials, payload format, required fields, and customer identifiers.
Your Client Success Manager can assist with testing and troubleshooting during implementation.
Additional considerations
Event history and retention
Studio stores the most recent 30 days of behavioral events for individual customer profiles.
If a profile has no events within that period, the last recorded event may still be available for behavioral personalization.
Multiple data sources
You can connect multiple external data sources to the Customer Data API.
Each data source uses separate credentials. Make sure the customer identifiers used by your systems align with those used in Studio so events can be associated with the appropriate profiles.
Customer Data API versus Profile API
The Customer Data API and Profile APIs provide different types of information for personalization.
| Customer Data API | Profile API | |
|---|---|---|
| Data type | Behavioral events | Customer profile attributes |
| Example data | Product views, searches, purchases | Loyalty tier, postal code, membership number |
| Data direction | External system sends data to Movable Ink | Movable Ink requests data from an external system |
| Data storage | Events are temporarily stored in Studio behavioral profiles | Retrieved profile data is not stored by Movable Ink |
Your organization can use both integration methods if your personalization requirements include behavioral events and customer attributes.
Next steps
After successfully configuring and testing your integration, marketers can use the incoming events through Studio's existing behavioral personalization features.
For more information about using behavioral events in campaigns, see [About the Customer Data API] and [About behavior and conversion tracking in Studio].