Synonyms tools

list_synonyms_user

Lists the synonyms your team has created by hand. Synonyms expand search recall by mapping terms that shoppers treat as equivalent. For example, mapping sneakers to shoes returns the same results for either term.

Synonyms can be one-way, where the source term maps to the target but not the reverse, or grouped, where every term in the group is treated as equivalent. This tool returns user synonyms account-wide by default, or scoped to a site through site_group_id. For automatically generated suggestions, use list_synonyms_br_generated.

Request parameters

NameTypeRequired?Description
pageintNoThe page number, zero-based. Defaults to 0. Use -1 to fetch all synonyms in one request.
limitintNoThe number of results per page. Defaults to 10.
sort_bystrNoThe field to sort by. Defaults to LAST_MODIFIED_DATE.
sort_orderstrNoThe sort direction, ASC or DESC. Defaults to DESC.

Response parameters

The tool returns a SynonymsResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[SynonymSummary]The synonyms in the account.
errorstr | nullError message if the request failed.

The SynonymSummary object has the following fields:

FieldTypeDescription
idintThe synonym's unique ID.
merchantIdint | nullThe merchant this synonym belongs to.
sourceSynonymstr | nullThe source term.
targetSynonymstr | nullThe target term.
enabledbool | nullWhether the synonym is enabled.
groupSynonymbool | nullWhether this is a group (bidirectional) synonym.
synonymTypestr | nullThe synonym type, such as USER_CREATED.
lastModifiedDateint | nullUnix timestamp of when the synonym was last modified.
lastModifiedBystr | nullThe user who last modified the synonym.
siteGroupIdint | nullThe site group ID. A null value means account-wide.

list_synonyms_br_generated

Lists the synonym suggestions generated automatically from observed search behavior. The AI identifies terms that shoppers use interchangeably, based on their queries and clicks, and proposes them as synonyms. Merchandisers can then review, enable, or disable each suggestion.

The response gives you paginated synonym summaries. For synonyms your team created by hand, use list_synonyms_user.

Request parameters

NameTypeRequired?Description
pageintNoThe page number, one-based. Defaults to 1.
per_pageintNoThe number of results per page. Defaults to 10.
sort_bystrNoThe field to sort by. Defaults to lastModifiedDate.
sort_orderstrNoThe sort direction, Asc or Desc. Defaults to Desc.

Response parameters

The tool returns a SynonymsResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[SynonymSummary]The automatically generated synonyms.
errorstr | nullError message if the request failed.

The SynonymSummary object has the following fields:

FieldTypeDescription
idintThe synonym's unique ID.
merchantIdint | nullThe merchant this synonym belongs to.
sourceSynonymstr | nullThe source term.
targetSynonymstr | nullThe target term.
enabledbool | nullWhether the synonym is enabled.
groupSynonymbool | nullWhether this is a group (bidirectional) synonym.
synonymTypestr | nullThe synonym type, set to BR_GENERATED_SITE.
lastModifiedDateint | nullUnix timestamp of when the synonym was last modified.
lastModifiedBystr | nullThe user who last modified the synonym.
siteGroupIdint | nullThe site group ID.

© Bloomreach, Inc. All rights reserved.