Skip to main content
When you set up Halo, you usually want to bring in the users you already have, and later you may need to backfill a trait you forgot to send (a common one is role, which powers Role audience filters). There are three ways to get user data in. Picking the right one matters, because one of them affects activity data.

The golden rule

identify() is an activity signal: every call bumps the user’s last_seen to now. That is correct when a real user loads your app. It is wrong for a bulk backfill.
Do not loop identify() over your existing users to set a missing trait. It stamps every user “active today”, which corrupts the Last Active column, the active / recent / inactive / at-risk activity segments, outreach audiences, and health scores. Use the Update / Backfill API or CSV import instead, both of which leave activity untouched.

Which method to use

POST /api/sdk/users/update is purpose-built for this. It upserts users by your user_id, merges traits, and never touches first_seen / last_seen on existing users. It also does not trigger outreach campaigns, so importing historical users won’t retroactively fire your user_created series.
The Update / Backfill API requires identity verification (an Identity Secret). If you have not set one up, use CSV import below instead, which needs no secret.
Backfilling only your existing Halo users (no new contacts created for people who never opened the widget)? Add update_only: true to the body. Unknown user_ids are skipped and reported in the response’s skipped count:
When importing brand-new users (first-time setup), include signed_up_at so their activity history is accurate instead of defaulting to the import time:
See the full Update / Backfill API reference for auth, batch limits, and the recognized vs custom trait split.

Option 2: CSV import (no code)

In the dashboard, open Contacts (or Companies) and click Import. The import runs in four steps:
  1. Upload — drop a CSV or Excel file (up to 50,000 rows / 10 MB), or paste rows straight from Google Sheets, Excel or Numbers. A sample CSV is linked under the drop zone, and your recent imports are listed with their results.
  2. Map columns — each column in your file gets an Import as field. Halo auto-matches common headers (Email, Name, Company, …) and remembers the mapping the next time it sees the same headers. Unmatched columns can become custom fields or be left out.
  3. Review — before anything is written you see how many rows are ready, how many are new, how many are already in Halo, and which rows will be skipped (no email or external ID, invalid email, or repeated in the file). This is also where you choose what happens to contacts that already exist:
    • Fill empty fields (recommended) — adds details the contact is missing and changes nothing they already have.
    • Overwrite — values in the file replace what is saved; blank cells never erase a value.
    • Skip them — only new contacts are added; existing ones are left untouched.
  4. Import — small files finish in a few seconds; larger ones run in the background and you can close the window while they finish.
Like the API, CSV import does not bump activity when updating existing users, and it matches by external_id or email so you won’t create duplicates for users the SDK already knows about. Map a signed_up_at column for accurate signup dates on new rows.

Option 3: identify() (live users only)

Use identify() in your app when a real user is present. Going forward, pass every recommended trait (including role) on identify so new and returning users persist it naturally and your data stays complete without backfills.

After a backfill: making fields filterable

Backfilled custom traits (like role) are registered automatically so they show up in the segment and audience filter pickers as custom:role. If you backfilled directly in the database instead of via the API or CSV import, the value is still queryable but may not appear in the picker until it is seen through one of the supported paths.