API at a glance
Description: This API searches for a customer using their email address and returns customer profile data including attributes, device information, UTM parameters, and engagement metrics.
Authentication & testing
Testing the API on this page
How to try it here
- Use your User API Key as the Username (leave Password blank).
- Select the appropriate API endpoint based on your Blueshift region.
- Enter the necessary parameters and click Try It to run the request.


Authentication using Base64 encoding
Note for developers
API requests require authentication using HTTP Basic Authentication with an API key.
The API key serves as the username, while the password field should be left empty.
The format to encode is: your_api_key: (note the trailing colon).
This string must be Base64-encoded and included in the request's Authorization header as follows:
Authorization: Basic encoded_valueYou can generate the encoded value using a trusted Base64 encoder.
Postman collection
Try it with Postman: Explore the API using Blueshift's Postman collection.
Things to know before you start
- Multiple matches: The
usersarray may return multiple matches for the search query. - Most relevant match: The
userobject represents the most relevant match and can be used directly. - Single match: If only one user is returned, the
userobject andusersarray will contain the same data. - Best practice: For multiple matches, the
userobject should be the primary reference, simplifying the process without needing to consider all users in theusersarray. - Use case: Best for customer lookup, profile retrieval, support queries, and integrating customer data with external systems.
Request parameters
Check out the request parameters
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | ✅ Yes | Email address of the customer to search for. |
Example requests & responses
Search customer by email
GET /api/v1/[email protected]{
"users": [
{
"activated_at": "2023-01-04T21:51:09.457Z",
"created_at": "2023-01-04T21:49:32.247Z",
"custom_attributes": {},
"customer_id": "812123",
"device_ids": ["4d031ed8-c40e-57d4-9c99-a3e308d8cd78"],
"email": "[email protected]",
"email_hash": "2de9b640b9ceda26ce4c3d8a919eb42c",
"firstname": "Mike",
"lastname": "Doel",
"joined_at": "2011-10-11T19:58:17Z",
"last_browser_platform": "Mac OS X",
"last_browser_type": "Chrome",
"last_browser_version": "17.4",
"last_ip": "201.33.19.3",
"last_location_city": "San Francisco",
"last_location_country": "USA",
"last_location_country_code": "US",
"last_location_pin_code": "94536",
"last_location_state": "California",
"last_location_timezone": "Pacific/Los_Angeles",
"last_purchase_at": "2021-08-25T06:06:59.410Z",
"last_visit_at": "2024-05-23T20:10:21Z",
"lifetime_orders": 535,
"lifetime_revenue": 490,
"lifetime_visits": 5,
"predictive_engagement_percentile": 78,
"predictive_purchase_intent_percentile": 86,
"predictive_retention_percentile": 70,
"unsubscribed": false,
"uuid": "06743da2-9589-4c01-afda-e3d85e487fa7"
}
],
"user": {
"activated_at": "2022-09-17T17:03:25Z",
"created_at": "2024-10-03T04:57:24.000Z",
"custom_attributes": {},
"customer_id": "11158123",
"email": "[email protected]",
"email_hash": "e169b640b9ceda26ce4c3d8a919eb42c",
"firstname": "Mike",
"lastname": "Doel",
"joined_at": "2011-10-11T19:58:17Z",
"last_browser_platform": "Mac OS X",
"last_browser_type": "Chrome",
"uuid": "06743da2-9589-4c01-afda-e3d85e487fa7"
}
} 400Bad request - The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
404Resource not found - Can happen due to resource conflicts. Re-try with exponential backoff. Contact us on [email protected] if the issue persists.
409Conflict error, please retry - The request could not be completed due to a conflict with the current state of the target resource, re-try with exponential backoff.
413You can upload maximum 50 users in one api call - The server is refusing to process a request because the request payload is larger than the server is willing or able to process.
429Rate limit exceeded - Too many requests. Contact us on [email protected] for recommended throughput.
500Internal Server Error - Please contact blueshift for more information.
502Service unavailable, please retry - Bad Gateway, re-try with exponential backoff.
503Service unavailable, please retry - Service Unavailable, re-try with exponential backoff.
504Service unavailable, please retry - Gateway Timeout, please re-try with exponential backoff.