Redirects and API parameters tools

  • list_redirects: List the query-specific redirect rules.
  • get_redirect: Get the full configuration of a single redirect rule.
  • list_api_params: List the API parameter override rules for an account. Contact your Bloomreach representative for more details on API parameter overrides.

list_redirects

Lists query-specific redirect rules as paginated summaries. A redirect rule sends a shopper to a specific URL when they search for a particular query. Redirects apply to site-search queries only. Each summary gives you the name, enabled status, associated queries, and scheduling details.

Use get_redirect for a rule's full configuration, including the destination URL and match type.

Request parameters

NameTypeRequired?Description
account_namestr | nullNoThe account name. Auto-selected when you have exactly one account. Use list_discovery_accounts to see available accounts.
site_group_idstr | int | nullNoA site group ID (numeric) or site name (string). Defaults to -1 (account level) when omitted. Use list_discovery_sites to discover sites.
pageintNoThe page number, 0-based. Defaults to 0.
limitintNoResults per page. Defaults to 10, maximum 100.
sort_bystrNoField to sort by: lastModifiedAt, identifier, or duration. Defaults to lastModifiedAt.
sort_orderstrNoSort direction: ASC or DESC. Defaults to DESC.
qstr | nullNoText search to filter rules.

Response parameters

The tool returns a CustomizationsResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[CustomizationSummary]The redirect rule summaries.
errorstr | nullError message if the request failed.

The CustomizationSummary object has the following fields:

FieldTypeDescription
idintThe unique customization ID.
namestr | nullThe rule's display name.
ruleTypestrThe rule type, for example redirect.
isEnabledbool | nullWhether the rule is currently enabled.
syncStatusstr | nullSync status: SUCCESS, QUEUED, FAILED, EXPIRED, or FUTURE.
durationTagstr | nullDuration tag: unscheduled, scheduled, active, expiringSoon, or expired.
startedAtint | nullUnix timestamp in milliseconds of when the rule became active.
endedAtint | nullUnix timestamp in milliseconds of when the rule expires.
createdAtint | nullUnix timestamp in milliseconds of when the rule was created.
lastModifiedAtint | nullUnix timestamp in milliseconds of when the rule was last modified.
lastModifiedBystr | nullEmail or name of the user who last modified the rule.
querieslist[CustomizationQuery]The queries this rule applies to.
isAbTestLiveboolWhether an A/B test is currently active for this rule.
audienceNamestr | nullName of the audience segment this rule targets.

The CustomizationQuery object has the following fields:

FieldTypeDescription
idint | nullThe query identifier.
querystr | nullThe query text, for example green shoes.
typestr | nullThe query type, for example sitesearch or category.

get_redirect

Fetches the full configuration of a single redirect rule by ID. The response returns the destination URL, the match type (exact terms, phrase match, or do-not-redirect), the associated queries and keywords, the enabled status, audience targeting, and scheduling metadata.

Discover rule IDs with list_redirects, then call this tool to inspect a specific redirect.

Request parameters

NameTypeRequired?Description
rule_idintYesThe ID of the redirect rule to fetch. Discover IDs with list_redirects.
account_namestr | nullNoThe account name. Auto-selected when you have exactly one account. Use list_discovery_accounts to see available accounts.
site_group_idstr | int | nullNoA site group ID (numeric) or site name (string). Defaults to -1 (account level) when omitted. Use list_discovery_sites to discover sites.

Response parameters

The tool returns a CustomizationDetailResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataany | nullThe full redirect rule detail as freeform JSON. Includes the destination URL, the match type, the associated queries and keywords, the enabled status, audience targeting, and scheduling metadata.
errorstr | nullError message if the request failed.

list_api_params

Lists the API parameter override rules for an account. A parameter override changes the URL parameters sent to the search and category APIs without a change to frontend code. For example, an override can raise the default rows count, add fl (field list) parameters, or force a specific sort order. These rules apply globally across both site-search and category queries.

The tool returns up to 1,000 parameter override rules in a single response.

Request parameters

This tool takes no parameters.

Response parameters

The tool returns a CustomizationsResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[CustomizationSummary]The API parameter override summaries.
errorstr | nullError message if the request failed.

The CustomizationSummary object has the following fields:

FieldTypeDescription
idintThe unique customization ID.
namestr | nullThe rule's display name.
ruleTypestrThe rule type, params.
isEnabledbool | nullWhether the rule is currently enabled.
syncStatusstr | nullSync status: SUCCESS, QUEUED, FAILED, EXPIRED, or FUTURE.
durationTagstr | nullDuration tag: unscheduled, scheduled, active, expiringSoon, or expired.
startedAtint | nullUnix timestamp in milliseconds of when the rule became active.
endedAtint | nullUnix timestamp in milliseconds of when the rule expires.
createdAtint | nullUnix timestamp in milliseconds of when the rule was created.
lastModifiedAtint | nullUnix timestamp in milliseconds of when the rule was last modified.
lastModifiedBystr | nullEmail or name of the user who last modified the rule.
querieslist[CustomizationQuery]The queries this rule applies to.

The CustomizationQuery object has the following fields:

FieldTypeDescription
idint | nullThe query identifier.
querystr | nullThe query text, for example green shoes.
typestr | nullThe query type, for example sitesearch or category.

© Bloomreach, Inc. All rights reserved.