Integration Patterns
FirstHive brings data together from every system that knows something about your customers: CRMs, ecommerce platforms, core and policy systems, data warehouses, websites and apps. There are five integration patterns. Most accounts use several at once, for example the web SDK for clickstream, a nightly batch from the data warehouse, and APIs for real-time events.
| Pattern | Best for | Latency | Typical sources |
|---|---|---|---|
| 1. API consumption from your tools | Systems that expose their own APIs | Scheduled or near real time | CRM, ERP, ecommerce, helpdesk, marketing tools |
| 2. FirstHive APIs | Your systems pushing events as they happen | Real time | Apps, backends, core banking, policy admin, POS |
| 3. Clickstream events | Website and app behavior | Real time | Website, iOS, Android, React Native, Flutter, Ionic |
| 4. Uploads | One-off or occasional lists | On demand | Event attendees, offline leads, test lists |
| 5. Batch mode | High volumes and history from data platforms | Scheduled | Data warehouses, data lakes, ETL/ELT tools, scripts |
Whichever pattern you use, the data lands in the same place: it’s validated, mapped to the data schema, and resolved to a customer profile through unification.
1. API consumption from your tools (REST and SOAP)
FirstHive connects to your other tools’ APIs and pulls data from them. This works with both REST and SOAP APIs.
- Pre-built connectors cover popular platforms, such as Shopify, BigCommerce, Magento, Squarespace and Kapture, as well as CRMs, marketing platforms and databases: 150+ pre-built connectors, and 700+ more through partners. Most connect with OAuth (you sign in to the tool and approve access) or an API key.
- Custom API connections can be set up for systems without a pre-built connector, including older SOAP-based enterprise systems. Your FirstHive team configures the endpoint, authentication, schedule and field mapping.
- Change data capture (CDC) picks up changes in source databases as they happen, for near real-time sync without full reloads.
Example: a Shopify store connects with OAuth. FirstHive pulls customers, orders and products, then keeps them in sync. See Shopify App.
2. FirstHive APIs (REST)
Your systems push data to FirstHive’s REST APIs the moment something happens. This is the best pattern for events that should trigger journeys right away, such as an order placed, a policy issued or a KYC completed.
- Real-time event and profile APIs: send events and profile updates with an API key. Data is processed in near real time, with sub-second latency and auto-scaling.
- Bulk custom event API: send large batches of events, with record counts tracked at every stage.
- Historical data import API: backfill history during onboarding without slowing live data.
- Consent API, System Event API and the catalogue update webhook for specific needs.
See APIs Overview.
Coming soon: Developer Toolkit. A self-serve developer toolkit, with API reference, keys, sandbox testing and request logs in one place, is on the way. Until then, your FirstHive team shares the API reference for your account.
3. Clickstream events (web and mobile SDKs)
Clickstream captures what visitors and app users do: page and screen views, searches, product views, add-to-cart, form fills, video plays and custom events. It’s collected by FH Analytics.
| Source | How |
|---|---|
| Website | The FH Analytics tracking code, or FH Tag Manager to manage tags without code changes. See Site Tracking. |
| Mobile apps | The FirstHive SDK for Android, iOS, React Native, Flutter and Ionic. |
| Shopify stores | Tracking is added through the Shopify App. |
Anonymous visitors are tracked with a visitor ID. When they identify themselves, for example by logging in or submitting a form, their past anonymous activity joins their customer profile.
Clickstream also powers web push, on-site Experiences, and web traffic audiences in Audience Bridge.
4. Uploads (CSV and Excel)
Upload a .csv or .xlsx file (up to 100 MB) in the platform, map its columns, and FirstHive creates a data list. No technical setup is needed.
Use uploads for one-off or occasional data, such as event attendees, offline leads or a partner list. For anything that recurs, use a connector, an API or batch mode instead, so data stays current without manual work.
See Import Customers from a CSV or Excel File and Manage Data Lists.
5. Batch mode (ETL, ELT and scripts)
Batch mode moves large volumes on a schedule from your data platforms. It suits data warehouses and enterprise pipelines that already produce daily or hourly extracts.
| Method | How it works |
|---|---|
| SFTP / FTPS bulk import | Your pipeline drops files (for example CSV or Parquet) on an SFTP or FTPS location, authenticated with an SSH key or username and password. FirstHive picks them up on a schedule. Works with existing ETL infrastructure, with no pipeline rework. |
| Cloud storage | Files delivered to Amazon S3, Google Cloud Storage or Azure Blob Storage. |
| ETL and ELT tools | Tools such as Informatica, Talend, Fivetran, Airbyte or dbt-based pipelines load data through FirstHive’s batch and bulk APIs. |
| Data warehouses | Scheduled extracts from Snowflake, BigQuery, Redshift, Databricks and similar platforms. |
| Scripts | Your own scheduled scripts (for example Python) call the bulk or historical import APIs. |
Batch processing supports large file formats and validates data on the way in.
Good practice for every pattern
Send events, not record updates
Model incoming data as events: one timestamped record for each thing that happened, such as order.placed, policy.renewed or kyc.completed. Don’t send periodic snapshots that overwrite a record’s current state.
FirstHive builds customer, transaction and other records from events. Events also trigger journeys and feed models like RFM and CLTV, which need a history over time, not just a current value. If a batch overwrites a record instead, the change can’t trigger anything, and your usage and history are understated.
| Instead of | Send |
|---|---|
| A nightly update setting a policy’s status to “Renewed” | A policy.renewed event with the policy number, renewal date and premium |
| An end-of-day order export | An order.placed event when the order is captured, plus one event per line item |
| Incrementing a points balance | A points.earned event per transaction. The balance is calculated from the events. |
Clean data the same way every time
Matching customers depends on identifiers being in a standard format:
| Field | Rule | Example |
|---|---|---|
| Phone | Digits only, with country code (E.164) | “98765 43210” → +919876543210 |
| Lowercase, trimmed | ” Jane.Doe@Corp.com ” → jane.doe@corp.com | |
| Dates and timestamps | ISO 8601 with time zone | ”04/07/26” → 2026-07-04T00:00:00+05:30 |
| Codes and statuses | Map to FirstHive’s standard values | ”NB” → new_business |
| Address | Separate fields for address lines, city, state and postal code | Three free-text lines → four fields |
Don’t send scores such as LTV, RFM, churn or propensity from other systems. FirstHive calculates these itself.
Before you go live
- Each change in the source system is sent as an event, with a unique ID and the real business timestamp (not the load time).
- Each event is mapped to the profile fields it should update and the journeys it should trigger.
- Phone, email, date, code and address cleaning rules are applied.
- Historical backfills also send one event per change.
Related articles
© 2026 FirstHive. All rights reserved.