Description: This API adds multiple users to a custom user list in a single request. Maximum 25 users per API call in sync mode, or up to 500 users per API call in async mode using the async query parameter.
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_value
You can generate the encoded value using a trusted
Base64 encoder.
List ID required: Obtain the list ID from the Create empty list response or from the Blueshift dashboard.
You can find the list ID in the URL when viewing a custom user list in the Blueshift app. For example, if you open a custom user list in the Blueshift app, its URL looks like https://app.getblueshift.com/dashboard#/app/custom_list/<LIST_ID>/edit.
Batch limit: Maximum 25 users per API call in sync mode. Set the async query parameter to true to send up to 500 users per API call.
Async mode: In async mode, the request runs in the background after it is accepted. The response format is the same in both modes.
Identifier types: Use email or customer_id to identify users.
👍
Finding the customer UUID > >
You can find the customer UUID in the URL when viewing a customer profile in the Blueshift app. For example, if you open a customer profile in the Blueshift app, its URL looks like https://app.getblueshift.com/dashboard#/app/customer/<CUSTOMER_UUID>/show/overview.
Use case: Best for adding multiple users to custom lists, bulk list updates, and managing targeted audience segments.
Request parameters
Check out the request parameters
Path parameters
Parameter
Type
Required
Description
list_id
integer
✅ Yes
ID of the list to add users to.
Query parameters
Parameter
Type
Required
Description
async
boolean
❌ No
Set to true to add users asynchronously and send up to 500 identifier values per API call. Omit or set to false for sync mode (maximum 25).
Body parameters
Parameter
Type
Required
Description
identifier_key
string
✅ Yes
Identifier type: email or customer_id.
identifier_values
array
✅ Yes
Array of identifier values (email addresses or customer IDs). Maximum 25 in sync mode, 500 in async mode.
After an async request, the list can take a few minutes to update. To get the updated user count, go to the Customer Lists page, click the more options (...) icon for the list, and click Refresh.
Exceeding the batch limit
If the number of identifier values exceeds the limit for the mode — 25 in sync mode or 500 in async mode — the API returns a 413 error.
{
"error": "You can add maximum 25 users in one api call"
}
{
"error": "You can add maximum 500 users in one async api call"
}
Responses
401
Unauthorized - API authentication failed due to an invalid or missing API key.
403
Forbidden - The API key does not have sufficient permissions to perform this action.
404
The list has been deleted.
413
Request Entity Too Large - The number of identifier values exceeds the limit: 25 in sync mode (async omitted or false), 500 in async mode (async=true).
422
Functionality not supported for old list.
429
Rate limit exceeded - Too many requests
500
Internal Server Error - Please contact blueshift for more information
502
Service unavailable, please retry - Bad Gateway, re-try with exponential backoff
503
Service unavailable, please retry - Service Unavailable, re-try with exponential backoff
504
Service unavailable, please retry - Gateway Timeout, please re-try with exponential backoff