bluebarry.
How it worksResultsPricing
Your current app stack→
Upsells and post-purchasebluebarry vs
  • Rebuy
  • AfterSell
  • OrderEditing
Search and personalizationbluebarry vs
  • Tweakwise
  • Doofinder
  • Hello Retail
Quizzesbluebarry vs
  • Octane AI
  • RevenueHunt
All comparisons→
Sign inBook 15 minutes with Martijn
Help Center/Developer platform/Use the Identify API

Use the Identify API

Martijn Douma
Martijn Douma · Co-founder bluebarry
Updated November 11, 2026

The Identify API attaches an email address to a visitor, so their earlier browsing, searches and quizzes join their customer profile. The Shopify, WooCommerce and Magento integrations already call it at checkout. Use it yourself on other stores, or after a login or newsletter sign-up.

From the storefront

On a page where the bluebarry script runs, one line is enough:

window.barry.identify({ email: "[email protected]" });

The script adds the visitor id and, when there is one, the current quiz session. It does nothing when no email is given.

From your server

To call it from your backend, for example from an order webhook, you need the visitor id. Read it in the browser with window.barry.getUid() and pass it along with the order.

curl -X POST https://data.bluebarry.ai/data/identify \
  -H "Content-Type: application/json" \
  -H "BB-Tenant-Id: <your tenant id>" \
  -d '{ "email": "[email protected]", "userId": "<visitor id>" }'
Request fields
FieldRequiredMeaning
emailYesThe shopper's email address, up to 256 characters.
userIdYesThe visitor id from window.barry.getUid().
sessionIdNoA quiz session id, when you have one.
sourceNoWhere the email came from: account, order or checkout. It shows as the profile's Source in Studio. Without it, the Source is Identify call.

Send your Tenant ID in the BB-Tenant-Id header. You find it at the top of the Store data → Integrations page. A successful call returns 204 No Content. An invalid email returns 400.

What happens

  • bluebarry always creates or updates a profile for the visitor. They do not need to have taken a quiz. The call is skipped only when the visitor id is missing.
  • An email the profile already has is never overwritten.
  • The visitor's other records with the same email or visitor id are merged into one profile.
  • An email from the identify call is not sent to Klaviyo or Omnisend, and neither are quiz events from before the call. Those tools only get shoppers who left their email or phone number in a quiz, a product check or a popup.

For the merchant view of this, see how bluebarry recognizes customers.

Related articles

How bluebarry recognizes customers

Understand how bluebarry links anonymous visits to a customer once they share an email at checkout or in a form, and what that means for your email tools.

Read article →

API authentication overview

Choose between an API key, an OAuth token and your Tenant ID for the bluebarry Data API, see how to send each, and keep your credentials safe.

Read article →

Read profiles via the API

Read profile and identity data from the bluebarry Data API with an API key, and sync it into your own systems without missing records.

Read article →

Can’t figure it out? We probably can.

Every article here was written by the people who built the product. If one of them still leaves you stuck, tell us and we’ll fix it.

Contact usJoin Discord, free forever
bluebarry.

Higher AOV, done for you.

[email protected]+31 6 57 16 10 87De Ried 10, 9285KK Buitenpost (The Netherlands)
Martijn DoumaStan van RooyAnco PostmaJelmer Reitsma

The guys that are increasing your AOV.

Platform
  • Cart upsells
  • Checkout & post-purchase upsells
  • Bundles
  • Recommendations
  • Product quiz
  • Product finder
  • Site search
  • Collection pages
  • Popups
  • Customer profiles
  • A/B testing
  • Shopping assistant
  • Landing pages
  • Pricing
Solutions
  • Managed Shopify upsells
  • Shopify quiz
  • Shopify search app
  • Klaviyo quiz builder
  • WooCommerce product quiz
  • Magento product quiz
  • Magento search extension
  • Guided selling software
Resources
  • Reviews
  • Blog & guides
  • Free tools
  • AOV calculator
  • Compare
  • Integrations
  • Help center
Company
  • About
  • Contact
  • Partners & affiliate
  • Sign in
Book 15 minutes with Martijn
© 2026 bluebarry. All rights reserved.
Privacy policyCookie policyTerms & conditions
English/Nederlands
bluebarry

bluebarry is the done-for-you ecommerce personalization suite: upsells, bundles, recommendations, quizzes and search on one customer profile, built and run for you by our team. Upsells in cart, checkout, post-purchase and on the thank-you page run on Shopify. Quizzes, search, recommendations and popups also run on WooCommerce, Magento, Shopware, Lightspeed and CCV Shop.