bluebarry.
ReviewsPricingResources
Sign inBook demoBook a 15 min demo
Help Center/Developer platform/Use the Identify API

Use the Identify API

Martijn Douma
Martijn Douma · Co-founder bluebarry
Updated September 25, 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.

Authentication is your Tenant ID in the BB-Tenant-Id header, the same as the storefront uses. You find it at the top of the 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.
  • Quiz events from before the identify call are not sent to Klaviyo or Omnisend afterwards. A shopper identified at checkout does not trigger a "Quiz Completed" flow for an earlier anonymous quiz.

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.

Helping beauty, health and outdoor brands reach their dream AOV

[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
Quiz funnelsLanding pagesProduct QuizRecommendationsSearchIntegrationsPricing
Resources
CasesHelp centerFAQCompare
Company
Contact usPartners & affiliateReviewsRequest demo
Book a 15 min demo
© 2026 bluebarry. All rights reserved.
Privacy PolicyCookie PolicyTerms & Conditions
English/Nederlands/Deutsch
bluebarry