Web and mobile campaigns tools

list_banners

Lists every weblayer banner campaign in a project. Banners are pop-ups, slide-ins, and embedded overlays displayed on websites through the Bloomreach JavaScript SDK. The response gives you the name, status, tags, archived flag, and initiative assignment. The variant content and targeting are not included here — use get_banner for those.

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.

Response parameters

The tool returns a BannersResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[BannerSummary]The weblayer banner summaries.
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.

get_banner

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

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.
banner_idstrYesThe banner ID returned by list_banners.

Response parameters

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.

list_in_app_messages

Lists every in-app message campaign in a project. In-app messages are overlay campaigns shown inside mobile apps through the Bloomreach Mobile SDK. The response gives you the name, status, tags, archived flag, and initiative assignment. The message content and triggers are not included here — use get_in_app_message for those.

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.

Response parameters

The tool returns an InAppMessagesResponse object with 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.

get_in_app_message

Returns 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_idstrYesThe in-app message ID returned by list_in_app_messages.

Response parameters

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.

list_experiments

Lists every web personalization A/B experiment in a project. Experiments run controlled tests of different web content variants to measure conversion impact. The response gives you the name, status, tags, archived flag, and initiative assignment. Variant definitions and goal configuration are not included here — use get_experiment for those.

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.

Response parameters

The tool returns an ExperimentsResponse object with 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.

get_experiment

Returns the full definition of a single web personalization 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_idstrYesThe experiment ID returned by list_experiments.

Response parameters

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.

list_surveys

Lists every survey campaign in a project. Surveys collect structured input from customers — NPS, ratings, open-text, multi-choice. The response gives you the name, status, tags, archived flag, and initiative assignment. Questions and triggers are not included here — use get_survey for those.

Request parameters

NameTypeRequired?Description
project_idstrYesThe project ID returned by list_projects.

Response parameters

The tool returns a SurveysResponse object with 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.

get_survey

Returns the full definition of a single survey campaign, 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_idstrYesThe survey ID returned by list_surveys.

Response parameters

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.


© Bloomreach, Inc. All rights reserved.