Web and mobile campaigns tools

search_banners

Searches the weblayer banner campaigns in a project, or fetches one by ID. Banners are pop-ups, slide-ins, and embedded overlays displayed on websites through the Bloomreach JavaScript SDK. Omit banner_id to list all banners as summary records: name, status, tags, archived flag, and initiative assignment. The variant content and targeting are excluded from the list.

Pass banner_id to fetch the full definition of a single banner, including all A/B split variants (HTML and CSS content), trigger conditions, and customer filter.

In list mode you can narrow the set with archived, status, serving_status, tags, and only_mine, and page through the results with offset and limit.

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.
banner_idstr | nullNoThe banner ID. Omit to list all; provide to fetch one.
archivedbool | nullNoFalse, the default, returns only live banners, matching the UI default. True returns only archived banners. Pass null for both.
statusstr | nullNoFilter by state: active for enabled banners or inactive for disabled ones. Applied client-side. Omit to return both.
serving_statusstr | nullNoFilter by computed serving state: serving, before_schedule, after_schedule, or inactive. Applied client-side.
tagslist | nullNoReturn only banners carrying every tag listed, for example ['promo', 'homepage']. Applied client-side.
only_mineboolNoReturn only banners created by the calling user. Defaults to false.
offsetintNoThe number of records to skip, for pagination. Defaults to 0.
limitintNoThe maximum number of records to return. Defaults to 200, with a maximum of 1000.

Response parameters

The tool returns a BannersResponse when banner_id is omitted, or a BannerResponse when it's provided.

The BannersResponse object has the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[BannerSummary]The weblayer banner summaries.
offsetintThe offset used for this request. Defaults to 0.
limitintThe maximum number of records returned for this request. Defaults to 200.
archived_items_existsbool | nullWhether the project holds any archived banners. Populated only when archived is false, the default.
errorstr | nullError message if the request failed.

The BannerSummary object has the following fields:

FieldTypeDescription
idstrThe banner's unique ID.
namestrThe banner's display name.
statusstrOne of draft, active, or inactive.
archivedboolWhether the banner has been archived.
tagslist[str]User-defined tags.
initiative_idstr | nullThe initiative this banner belongs to, if any.
createdany | nullUnix timestamp of when the banner was created.
created_by_display_namestr | nullDisplay name of the creator.
editedany | nullUnix timestamp of the last edit.
edited_by_display_namestr | nullDisplay name of the last editor.

When banner_id is provided, the tool returns a BannerResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataBanner | nullThe full banner definition.
errorstr | nullError message if the request failed.

The Banner object adds the following fields on top of the summary record:

FieldTypeDescription
variantslist[any]The A/B split variants, each with HTML and CSS content and targeting configuration.
triggerany | nullThe conditions that decide when the banner is shown, for example URL matching, an event, or a time delay.
customer_filterany | nullThe conditions that decide which customers are eligible to see the banner.

search_in_app_messages

Searches the in-app message campaigns in a project, or fetches one by ID. In-app messages are overlay campaigns shown inside mobile apps through the Bloomreach Mobile SDKs. Omit message_id to list all in-app messages as summary records: name, status, tags, archived flag, and initiative assignment. The message content and triggers are excluded from the list.

Pass message_id to fetch the full definition of a single in-app message, including all A/B split variants, trigger conditions, and customer filter.

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.
message_idstr | nullNoThe in-app message ID. Omit to list all; provide to fetch one.

Response parameters

The tool returns an InAppMessagesResponse when message_id is omitted, or an InAppMessageResponse when it's provided.

The InAppMessagesResponse object has the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[InAppMessageSummary]The in-app message summaries.
errorstr | nullError message if the request failed.

The InAppMessageSummary object has the following fields:

FieldTypeDescription
idstrThe in-app message's unique ID.
namestrThe message's display name.
statusstrOne of draft, active, or inactive.
archivedboolWhether the message has been archived.
tagslist[str]User-defined tags.
initiative_idstr | nullThe initiative this message belongs to, if any.
createdany | nullUnix timestamp of when the message was created.
created_by_display_namestrDisplay name of the creator.
editedany | nullUnix timestamp of the last edit.
edited_by_display_namestrDisplay name of the last editor.

When message_id is provided, the tool returns an InAppMessageResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataInAppMessage | nullThe full in-app message definition.
errorstr | nullError message if the request failed.

The InAppMessage object adds the following fields on top of the summary record:

FieldTypeDescription
variantslist[any]The A/B split variants, each with message content and display configuration.
triggerany | nullThe conditions that decide when the message is shown, for example an event or a time delay.
customer_filterany | nullThe conditions that decide which customers are eligible to see the message.

search_experiments

Searches the web personalization A/B experiments in a project, or fetches one by ID. Experiments run controlled tests of different web content variants to measure conversion impact. Omit experiment_id to list all experiments as summary records: name, status, tags, archived flag, and initiative assignment. Variant definitions and goal configuration are excluded from the list.

Pass experiment_id to fetch the full definition of a single experiment, including all variants (control plus treatment), traffic allocation, goals, and customer filter.

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.
experiment_idstr | nullNoThe experiment ID. Omit to list all; provide to fetch one.

Response parameters

The tool returns an ExperimentsResponse when experiment_id is omitted, or an ExperimentResponse when it's provided.

The ExperimentsResponse object has the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[ExperimentSummary]The experiment summaries.
errorstr | nullError message if the request failed.

The ExperimentSummary object has the following fields:

FieldTypeDescription
idstrThe experiment's unique ID.
namestrThe experiment's display name.
statusstrOne of draft, active, or inactive.
archivedboolWhether the experiment has been archived.
tagslist[str]User-defined tags.
initiative_idstr | nullThe initiative this experiment belongs to, if any.
createdany | nullUnix timestamp of when the experiment was created.
created_by_display_namestrDisplay name of the creator.
editedany | nullUnix timestamp of the last edit.
edited_by_display_namestrDisplay name of the last editor.

When experiment_id is provided, the tool returns an ExperimentResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataExperiment | nullThe full experiment definition.
errorstr | nullError message if the request failed.

The Experiment object adds the following fields on top of the summary record:

FieldTypeDescription
variantslist[any]The variant definitions (control plus treatments), each with personalization content and traffic allocation.
goalslist[any]The success metrics or goals, for example click rate or purchase conversion.
customer_filterany | nullThe conditions that decide which customers are eligible for the experiment.

search_surveys

Searches the survey campaigns in a project, or fetches one by ID. Surveys collect structured input from customers — NPS, ratings, open-text, multi-choice. Omit survey_id to list all surveys as summary records: name, status, tags, archived flag, and initiative assignment. Questions and triggers are excluded from the list.

Pass survey_id to fetch the full definition of a single survey, including all question definitions (type, text, options, branching logic), trigger conditions, and customer filter.

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.
survey_idstr | nullNoThe survey ID. Omit to list all; provide to fetch one.

Response parameters

The tool returns a SurveysResponse when survey_id is omitted, or a SurveyResponse when it's provided.

The SurveysResponse object has the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[SurveySummary]The survey summaries.
errorstr | nullError message if the request failed.

The SurveySummary object has the following fields:

FieldTypeDescription
idstrThe survey's unique ID.
namestrThe survey's display name.
statusstrOne of draft, active, or inactive.
archivedboolWhether the survey has been archived.
tagslist[str]User-defined tags.
initiative_idstr | nullThe initiative this survey belongs to, if any.
createdany | nullUnix timestamp of when the survey was created.
created_by_display_namestrDisplay name of the creator.
editedany | nullUnix timestamp of the last edit.
edited_by_display_namestrDisplay name of the last editor.

When survey_id is provided, the tool returns a SurveyResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataSurvey | nullThe full survey definition.
errorstr | nullError message if the request failed.

The Survey object adds the following fields on top of the summary record:

FieldTypeDescription
questionslist[any]The question definitions: text, type, options, and branching logic.
triggerany | nullThe conditions that decide when the survey is displayed.
customer_filterany | nullThe conditions that decide which customers are eligible for the survey.


Did this page help you?

© Bloomreach, Inc. All rights reserved.