> For the complete documentation index, see [llms.txt](https://developer.emporix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.emporix.io/api-references/readme/api-reference-20/configuration.md). Agents can also search and read this documentation through its [MCP server](https://developer.emporix.io/~gitbook/mcp).

# Configuration

## Get all configurations

> Retrieves all configurations of index providers. The returned response contains search and write keys.

```json
{"openapi":"3.0.0","info":{"title":"Indexing Service","version":"v1"},"tags":[{"name":"Configuration"}],"servers":[{"url":"https://api.emporix.io"}],"security":[{"OAuth2":["indexing.search_view"]}],"components":{"securitySchemes":{"OAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.emporix.io/oauth/token","scopes":{"indexing.search_view":"Needed to read an index provider configuration","indexing.search_manage":"Needed to manage an index provider configuration"}}}}},"parameters":{"trait_tenant":{"name":"tenant","in":"path","required":true,"description":"The tenant that the caller is acting upon.\n\nPlease note that this value is always lowercase.\n","schema":{"pattern":"^[a-z][a-z0-9]+$","minLength":3,"maxLength":16,"type":"string"}}},"schemas":{"IndexConfiguration":{"title":"IndexConfiguration","allOf":[{"$ref":"#/components/schemas/IndexPublicConfiguration"},{"type":"object","properties":{"writeKey":{"type":"string","description":"API key used for write purposes. For `BATTERY_INCLUDED`, this key is validated before the configuration is created or updated."},"apiUrl":{"type":"string","description":"Optional base URL of the BatteryIncluded API that holds the tenant's index, for example `https://api-next.batteryincluded.io`. Applies only to the `BATTERY_INCLUDED` provider.\nWhen set, the Indexing Service sends all of the tenant's BatteryIncluded requests to this host and validates `writeKey` against it, so the write key must be valid on this host. When not set, the default BatteryIncluded host is used.\nThe value must be an `https` address of an allowed BatteryIncluded host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with `400`. A change takes effect within 10 minutes. Change `apiUrl` when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect."},"excludedMixinKeys":{"type":"array","items":{"type":"string"},"description":"Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the `BATTERY_INCLUDED` provider."},"includedMixinPaths":{"type":"array","items":{"type":"string"},"description":"Optional allowlist of product mixin paths to include in indexing for the `BATTERY_INCLUDED` provider. Patterns are matched against full dot-notation paths rooted at the mixin key, for example `class_EA673_toolsClassification.sk.OnlineIsService_P`.\n`*` matches within a single path segment, `**` matches across one or more path segments, and matching is case sensitive.\nIf a matched path points to an object, the entire subtree under that object is included. When this field is absent or an empty list, path filtering is inactive and existing `excludedMixinKeys` behavior applies.\n`includedMixinPaths` and `excludedMixinKeys` are mutually exclusive when `includedMixinPaths` is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes."},"enrichments":{"type":"array","items":{"type":"string","enum":["AVAILABILITY","PRICE","CUSTOMER_SEGMENT","FEE"]},"description":"Optional list of the Emporix data dependencies that BatteryIncluded product indexing calls. Applies only to the `BATTERY_INCLUDED` provider. The Product, Site Settings, and Configuration services are always called and are not listed.\n`AVAILABILITY` adds availability data, `PRICE` adds prices, and `CUSTOMER_SEGMENT` adds segment IDs to the site-specific data of the indexed document. `FEE` calls the Fee Service, but fee data is not part of the Battery Included document.\nWhen this field is not set, the default set `AVAILABILITY`, `PRICE`, and `CUSTOMER_SEGMENT` is used. An empty list means that no optional dependency is called. Values are case sensitive. The stored list is returned as sent. When the field is not set, the response does not contain it, and the default set applies.\nA dependency that is not listed is not called for any site. Its condition counts as met, so a site without prices or availability still contributes to the merged document when `PRICE` or `AVAILABILITY` is not listed. Its data is not part of the indexed document or of the `index.item-updated` webhook events. A change takes effect within 10 minutes. For details, see [How to choose the data that BatteryIncluded indexing uses](https://developer.emporix.io/api-documentation/api-guides/configuration/indexing-service/indexing#how-to-choose-the-data-that-batteryincluded-indexing-uses)."},"siteAwareMixinsStrategy":{"type":"string","enum":["FAN_OUT","INHERITANCE"],"description":"Optional strategy that defines where BatteryIncluded product indexing writes site-aware mixins. Applies only to the `BATTERY_INCLUDED` provider. A mixin is site-aware when the product has a `{mixin}__{site}` overlay for it, or when the schema file that the product references in `metadata.mixins` has `siteAware: true` at its root.\n`FAN_OUT` merges the base mixin with the site's overlay for every site that contributes to the merged document and every other site with an `_product_siteAware` entry, and writes the result to `_product_siteAware.<site>.mixins` and `_product_siteAware.<site>.localeAware.<language>.mixins`. A site without an overlay receives the base mixin. Neither the base mixin nor its overlays are written to `_product.mixins` or `_product_i18n.<language>.mixins`.\n`INHERITANCE` keeps the base mixin in `_product.mixins` and `_product_i18n.<language>.mixins`, and writes the merged value to `_product_siteAware.<site>.mixins` and `_product_siteAware.<site>.localeAware.<language>.mixins` only for sites that have an overlay.\nOverlay keys in the form `{mixin}__{site}` are not written to the document.\nWhen this field is not set, `FAN_OUT` is used. Values are case sensitive. The stored value is returned as sent. When the field is not set, the response does not contain it. A change takes effect within 10 minutes and applies to each product the next time it is updated or reindexed. To apply it to all products, start a full product reindex after the change takes effect. For details, see [How to choose site-aware mixins indexing for BatteryIncluded](https://developer.emporix.io/api-documentation/api-guides/configuration/indexing-service/indexing#how-to-choose-site-aware-mixins-indexing-for-batteryincluded)."}},"required":["provider"]}]},"IndexPublicConfiguration":{"title":"IndexPublicConfiguration","type":"object","properties":{"searchKey":{"type":"string","description":"API Key used for search purposes."},"applicationId":{"type":"string","description":"Application id of an indexer provider."},"indexName":{"type":"string","description":"Identifier of an index."},"provider":{"type":"string","description":"Index provider name. Supported providers: `ALGOLIA` (https://www.algolia.com), `BATTERY_INCLUDED` (https://www.batteryincluded.io). Only one provider can be active per tenant at a time.","enum":["ALGOLIA","BATTERY_INCLUDED"]},"active":{"type":"boolean","description":"Indicates if the configuration is active or not."}}},"errorMessage":{"title":"error","description":"Schema for API specified errors.","type":"object","properties":{"code":{"description":"Original HTTP error code, should be consistent with the response HTTP code","type":"integer"},"status":{"description":"Classification of the error type","type":"string"},"message":{"description":"Descriptive error message for debugging","type":"string"},"details":{"type":"array","description":"Error details","items":{"type":"string"}}}}},"responses":{"Unauthorized_401":{"description":"Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.","content":{"application/json":{"schema":{"type":"object","properties":{"fault":{"type":"object","properties":{"faultstring":{"type":"string"},"detail":{"type":"object","properties":{"errorcode":{"type":"string"}}}}}}}}}},"Forbidden_403":{"description":"Given authorization scopes are not sufficient and do not match scopes required by the endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}}}},"paths":{"/indexing/{tenant}/configurations":{"get":{"summary":"Get all configurations","description":"Retrieves all configurations of index providers. The returned response contains search and write keys.","parameters":[{"$ref":"#/components/parameters/trait_tenant"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IndexConfiguration"}}}}},"401":{"$ref":"#/components/responses/Unauthorized_401"},"403":{"$ref":"#/components/responses/Forbidden_403"}},"operationId":"GET-indexing-list-configs","tags":["Configuration"]}}}}
```

## Create a new configuration

> Creates a new index configuration. Supported providers:\
> \* Algolia - <https://www.algolia.com\\>
> \* BatteryIncluded - <https://www.batteryincluded.io\\>
> \
> Identifier of a newly created configuration is a provider name.\
> Only one provider can be active per tenant at a time.\
> \
> For \`BATTERY\_INCLUDED\`, the service validates \`indexName\` and \`writeKey\` against the BatteryIncluded\
> host in \`apiUrl\`, or against the default host when \`apiUrl\` is not set, before saving.\
> Invalid credentials return \`400\`. If credential validation is temporarily unavailable,\
> the request returns \`502\`. In both cases, the configuration is not stored.\
> \
> \`apiUrl\` applies only to \`BATTERY\_INCLUDED\`. An \`apiUrl\` that is not an \`https\` address of an\
> allowed BatteryIncluded host, or an \`apiUrl\` sent for another provider, returns \`400\`.\
> \
> \`enrichments\` applies only to \`BATTERY\_INCLUDED\`. An \`enrichments\` list with an unknown or \`null\` value\
> returns \`400\`. An \`enrichments\` field sent for another provider also returns \`400\`, even as an empty list.\
> \
> \`siteAwareMixinsStrategy\` applies only to \`BATTERY\_INCLUDED\`. A value other than \`FAN\_OUT\` or \`INHERITANCE\`\
> returns \`400\`. A \`siteAwareMixinsStrategy\` field sent for another provider also returns \`400\`.

```json
{"openapi":"3.0.0","info":{"title":"Indexing Service","version":"v1"},"tags":[{"name":"Configuration"}],"servers":[{"url":"https://api.emporix.io"}],"security":[{"OAuth2":["indexing.search_manage"]}],"components":{"securitySchemes":{"OAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.emporix.io/oauth/token","scopes":{"indexing.search_view":"Needed to read an index provider configuration","indexing.search_manage":"Needed to manage an index provider configuration"}}}}},"parameters":{"trait_tenant":{"name":"tenant","in":"path","required":true,"description":"The tenant that the caller is acting upon.\n\nPlease note that this value is always lowercase.\n","schema":{"pattern":"^[a-z][a-z0-9]+$","minLength":3,"maxLength":16,"type":"string"}}},"schemas":{"IndexConfiguration":{"title":"IndexConfiguration","allOf":[{"$ref":"#/components/schemas/IndexPublicConfiguration"},{"type":"object","properties":{"writeKey":{"type":"string","description":"API key used for write purposes. For `BATTERY_INCLUDED`, this key is validated before the configuration is created or updated."},"apiUrl":{"type":"string","description":"Optional base URL of the BatteryIncluded API that holds the tenant's index, for example `https://api-next.batteryincluded.io`. Applies only to the `BATTERY_INCLUDED` provider.\nWhen set, the Indexing Service sends all of the tenant's BatteryIncluded requests to this host and validates `writeKey` against it, so the write key must be valid on this host. When not set, the default BatteryIncluded host is used.\nThe value must be an `https` address of an allowed BatteryIncluded host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with `400`. A change takes effect within 10 minutes. Change `apiUrl` when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect."},"excludedMixinKeys":{"type":"array","items":{"type":"string"},"description":"Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the `BATTERY_INCLUDED` provider."},"includedMixinPaths":{"type":"array","items":{"type":"string"},"description":"Optional allowlist of product mixin paths to include in indexing for the `BATTERY_INCLUDED` provider. Patterns are matched against full dot-notation paths rooted at the mixin key, for example `class_EA673_toolsClassification.sk.OnlineIsService_P`.\n`*` matches within a single path segment, `**` matches across one or more path segments, and matching is case sensitive.\nIf a matched path points to an object, the entire subtree under that object is included. When this field is absent or an empty list, path filtering is inactive and existing `excludedMixinKeys` behavior applies.\n`includedMixinPaths` and `excludedMixinKeys` are mutually exclusive when `includedMixinPaths` is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes."},"enrichments":{"type":"array","items":{"type":"string","enum":["AVAILABILITY","PRICE","CUSTOMER_SEGMENT","FEE"]},"description":"Optional list of the Emporix data dependencies that BatteryIncluded product indexing calls. Applies only to the `BATTERY_INCLUDED` provider. The Product, Site Settings, and Configuration services are always called and are not listed.\n`AVAILABILITY` adds availability data, `PRICE` adds prices, and `CUSTOMER_SEGMENT` adds segment IDs to the site-specific data of the indexed document. `FEE` calls the Fee Service, but fee data is not part of the Battery Included document.\nWhen this field is not set, the default set `AVAILABILITY`, `PRICE`, and `CUSTOMER_SEGMENT` is used. An empty list means that no optional dependency is called. Values are case sensitive. The stored list is returned as sent. When the field is not set, the response does not contain it, and the default set applies.\nA dependency that is not listed is not called for any site. Its condition counts as met, so a site without prices or availability still contributes to the merged document when `PRICE` or `AVAILABILITY` is not listed. Its data is not part of the indexed document or of the `index.item-updated` webhook events. A change takes effect within 10 minutes. For details, see [How to choose the data that BatteryIncluded indexing uses](https://developer.emporix.io/api-documentation/api-guides/configuration/indexing-service/indexing#how-to-choose-the-data-that-batteryincluded-indexing-uses)."},"siteAwareMixinsStrategy":{"type":"string","enum":["FAN_OUT","INHERITANCE"],"description":"Optional strategy that defines where BatteryIncluded product indexing writes site-aware mixins. Applies only to the `BATTERY_INCLUDED` provider. A mixin is site-aware when the product has a `{mixin}__{site}` overlay for it, or when the schema file that the product references in `metadata.mixins` has `siteAware: true` at its root.\n`FAN_OUT` merges the base mixin with the site's overlay for every site that contributes to the merged document and every other site with an `_product_siteAware` entry, and writes the result to `_product_siteAware.<site>.mixins` and `_product_siteAware.<site>.localeAware.<language>.mixins`. A site without an overlay receives the base mixin. Neither the base mixin nor its overlays are written to `_product.mixins` or `_product_i18n.<language>.mixins`.\n`INHERITANCE` keeps the base mixin in `_product.mixins` and `_product_i18n.<language>.mixins`, and writes the merged value to `_product_siteAware.<site>.mixins` and `_product_siteAware.<site>.localeAware.<language>.mixins` only for sites that have an overlay.\nOverlay keys in the form `{mixin}__{site}` are not written to the document.\nWhen this field is not set, `FAN_OUT` is used. Values are case sensitive. The stored value is returned as sent. When the field is not set, the response does not contain it. A change takes effect within 10 minutes and applies to each product the next time it is updated or reindexed. To apply it to all products, start a full product reindex after the change takes effect. For details, see [How to choose site-aware mixins indexing for BatteryIncluded](https://developer.emporix.io/api-documentation/api-guides/configuration/indexing-service/indexing#how-to-choose-site-aware-mixins-indexing-for-batteryincluded)."}},"required":["provider"]}]},"IndexPublicConfiguration":{"title":"IndexPublicConfiguration","type":"object","properties":{"searchKey":{"type":"string","description":"API Key used for search purposes."},"applicationId":{"type":"string","description":"Application id of an indexer provider."},"indexName":{"type":"string","description":"Identifier of an index."},"provider":{"type":"string","description":"Index provider name. Supported providers: `ALGOLIA` (https://www.algolia.com), `BATTERY_INCLUDED` (https://www.batteryincluded.io). Only one provider can be active per tenant at a time.","enum":["ALGOLIA","BATTERY_INCLUDED"]},"active":{"type":"boolean","description":"Indicates if the configuration is active or not."}}},"IndexCreationResponse":{"title":"IndexCreationResponse","type":"object","properties":{"id":{"type":"string","description":"Identifier of a newly created configuration."}}},"errorMessage":{"title":"error","description":"Schema for API specified errors.","type":"object","properties":{"code":{"description":"Original HTTP error code, should be consistent with the response HTTP code","type":"integer"},"status":{"description":"Classification of the error type","type":"string"},"message":{"description":"Descriptive error message for debugging","type":"string"},"details":{"type":"array","description":"Error details","items":{"type":"string"}}}}},"responses":{"BadRequest_400":{"description":"Request was syntactically incorrect. Details will be provided in the response payload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}},"Unauthorized_401":{"description":"Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.","content":{"application/json":{"schema":{"type":"object","properties":{"fault":{"type":"object","properties":{"faultstring":{"type":"string"},"detail":{"type":"object","properties":{"errorcode":{"type":"string"}}}}}}}}}},"Forbidden_403":{"description":"Given authorization scopes are not sufficient and do not match scopes required by the endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}},"BadGateway_502":{"description":"Upstream dependency was unavailable. Details will be provided in the response payload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}}}},"paths":{"/indexing/{tenant}/configurations":{"post":{"summary":"Create a new configuration","description":"Creates a new index configuration. Supported providers:\n* Algolia - https://www.algolia.com\n* BatteryIncluded - https://www.batteryincluded.io\n\nIdentifier of a newly created configuration is a provider name.\nOnly one provider can be active per tenant at a time.\n\nFor `BATTERY_INCLUDED`, the service validates `indexName` and `writeKey` against the BatteryIncluded\nhost in `apiUrl`, or against the default host when `apiUrl` is not set, before saving.\nInvalid credentials return `400`. If credential validation is temporarily unavailable,\nthe request returns `502`. In both cases, the configuration is not stored.\n\n`apiUrl` applies only to `BATTERY_INCLUDED`. An `apiUrl` that is not an `https` address of an\nallowed BatteryIncluded host, or an `apiUrl` sent for another provider, returns `400`.\n\n`enrichments` applies only to `BATTERY_INCLUDED`. An `enrichments` list with an unknown or `null` value\nreturns `400`. An `enrichments` field sent for another provider also returns `400`, even as an empty list.\n\n`siteAwareMixinsStrategy` applies only to `BATTERY_INCLUDED`. A value other than `FAN_OUT` or `INHERITANCE`\nreturns `400`. A `siteAwareMixinsStrategy` field sent for another provider also returns `400`.","parameters":[{"$ref":"#/components/parameters/trait_tenant"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexConfiguration"}}},"description":""},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexCreationResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest_400"},"401":{"$ref":"#/components/responses/Unauthorized_401"},"403":{"$ref":"#/components/responses/Forbidden_403"},"502":{"$ref":"#/components/responses/BadGateway_502"}},"operationId":"POST-indexing-create-config","tags":["Configuration"]}}}}
```

## Get configuration by provider name

> Retrieves a single configuration by a provider name. Supported providers:\
> \* Algolia - <https://www.algolia.com\\>
> \* BatteryIncluded - <https://www.batteryincluded.io>

```json
{"openapi":"3.0.0","info":{"title":"Indexing Service","version":"v1"},"tags":[{"name":"Configuration"}],"servers":[{"url":"https://api.emporix.io"}],"security":[{"OAuth2":["indexing.search_view"]}],"components":{"securitySchemes":{"OAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.emporix.io/oauth/token","scopes":{"indexing.search_view":"Needed to read an index provider configuration","indexing.search_manage":"Needed to manage an index provider configuration"}}}}},"schemas":{"IndexConfiguration":{"title":"IndexConfiguration","allOf":[{"$ref":"#/components/schemas/IndexPublicConfiguration"},{"type":"object","properties":{"writeKey":{"type":"string","description":"API key used for write purposes. For `BATTERY_INCLUDED`, this key is validated before the configuration is created or updated."},"apiUrl":{"type":"string","description":"Optional base URL of the BatteryIncluded API that holds the tenant's index, for example `https://api-next.batteryincluded.io`. Applies only to the `BATTERY_INCLUDED` provider.\nWhen set, the Indexing Service sends all of the tenant's BatteryIncluded requests to this host and validates `writeKey` against it, so the write key must be valid on this host. When not set, the default BatteryIncluded host is used.\nThe value must be an `https` address of an allowed BatteryIncluded host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with `400`. A change takes effect within 10 minutes. Change `apiUrl` when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect."},"excludedMixinKeys":{"type":"array","items":{"type":"string"},"description":"Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the `BATTERY_INCLUDED` provider."},"includedMixinPaths":{"type":"array","items":{"type":"string"},"description":"Optional allowlist of product mixin paths to include in indexing for the `BATTERY_INCLUDED` provider. Patterns are matched against full dot-notation paths rooted at the mixin key, for example `class_EA673_toolsClassification.sk.OnlineIsService_P`.\n`*` matches within a single path segment, `**` matches across one or more path segments, and matching is case sensitive.\nIf a matched path points to an object, the entire subtree under that object is included. When this field is absent or an empty list, path filtering is inactive and existing `excludedMixinKeys` behavior applies.\n`includedMixinPaths` and `excludedMixinKeys` are mutually exclusive when `includedMixinPaths` is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes."},"enrichments":{"type":"array","items":{"type":"string","enum":["AVAILABILITY","PRICE","CUSTOMER_SEGMENT","FEE"]},"description":"Optional list of the Emporix data dependencies that BatteryIncluded product indexing calls. Applies only to the `BATTERY_INCLUDED` provider. The Product, Site Settings, and Configuration services are always called and are not listed.\n`AVAILABILITY` adds availability data, `PRICE` adds prices, and `CUSTOMER_SEGMENT` adds segment IDs to the site-specific data of the indexed document. `FEE` calls the Fee Service, but fee data is not part of the Battery Included document.\nWhen this field is not set, the default set `AVAILABILITY`, `PRICE`, and `CUSTOMER_SEGMENT` is used. An empty list means that no optional dependency is called. Values are case sensitive. The stored list is returned as sent. When the field is not set, the response does not contain it, and the default set applies.\nA dependency that is not listed is not called for any site. Its condition counts as met, so a site without prices or availability still contributes to the merged document when `PRICE` or `AVAILABILITY` is not listed. Its data is not part of the indexed document or of the `index.item-updated` webhook events. A change takes effect within 10 minutes. For details, see [How to choose the data that BatteryIncluded indexing uses](https://developer.emporix.io/api-documentation/api-guides/configuration/indexing-service/indexing#how-to-choose-the-data-that-batteryincluded-indexing-uses)."},"siteAwareMixinsStrategy":{"type":"string","enum":["FAN_OUT","INHERITANCE"],"description":"Optional strategy that defines where BatteryIncluded product indexing writes site-aware mixins. Applies only to the `BATTERY_INCLUDED` provider. A mixin is site-aware when the product has a `{mixin}__{site}` overlay for it, or when the schema file that the product references in `metadata.mixins` has `siteAware: true` at its root.\n`FAN_OUT` merges the base mixin with the site's overlay for every site that contributes to the merged document and every other site with an `_product_siteAware` entry, and writes the result to `_product_siteAware.<site>.mixins` and `_product_siteAware.<site>.localeAware.<language>.mixins`. A site without an overlay receives the base mixin. Neither the base mixin nor its overlays are written to `_product.mixins` or `_product_i18n.<language>.mixins`.\n`INHERITANCE` keeps the base mixin in `_product.mixins` and `_product_i18n.<language>.mixins`, and writes the merged value to `_product_siteAware.<site>.mixins` and `_product_siteAware.<site>.localeAware.<language>.mixins` only for sites that have an overlay.\nOverlay keys in the form `{mixin}__{site}` are not written to the document.\nWhen this field is not set, `FAN_OUT` is used. Values are case sensitive. The stored value is returned as sent. When the field is not set, the response does not contain it. A change takes effect within 10 minutes and applies to each product the next time it is updated or reindexed. To apply it to all products, start a full product reindex after the change takes effect. For details, see [How to choose site-aware mixins indexing for BatteryIncluded](https://developer.emporix.io/api-documentation/api-guides/configuration/indexing-service/indexing#how-to-choose-site-aware-mixins-indexing-for-batteryincluded)."}},"required":["provider"]}]},"IndexPublicConfiguration":{"title":"IndexPublicConfiguration","type":"object","properties":{"searchKey":{"type":"string","description":"API Key used for search purposes."},"applicationId":{"type":"string","description":"Application id of an indexer provider."},"indexName":{"type":"string","description":"Identifier of an index."},"provider":{"type":"string","description":"Index provider name. Supported providers: `ALGOLIA` (https://www.algolia.com), `BATTERY_INCLUDED` (https://www.batteryincluded.io). Only one provider can be active per tenant at a time.","enum":["ALGOLIA","BATTERY_INCLUDED"]},"active":{"type":"boolean","description":"Indicates if the configuration is active or not."}}},"errorMessage":{"title":"error","description":"Schema for API specified errors.","type":"object","properties":{"code":{"description":"Original HTTP error code, should be consistent with the response HTTP code","type":"integer"},"status":{"description":"Classification of the error type","type":"string"},"message":{"description":"Descriptive error message for debugging","type":"string"},"details":{"type":"array","description":"Error details","items":{"type":"string"}}}}},"responses":{"Unauthorized_401":{"description":"Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.","content":{"application/json":{"schema":{"type":"object","properties":{"fault":{"type":"object","properties":{"faultstring":{"type":"string"},"detail":{"type":"object","properties":{"errorcode":{"type":"string"}}}}}}}}}},"Forbidden_403":{"description":"Given authorization scopes are not sufficient and do not match scopes required by the endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}},"NotFound_404":{"description":"Resource has not been found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}}}},"paths":{"/indexing/{tenant}/configurations/{provider}":{"get":{"summary":"Get configuration by provider name","description":"Retrieves a single configuration by a provider name. Supported providers:\n* Algolia - https://www.algolia.com\n* BatteryIncluded - https://www.batteryincluded.io","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexConfiguration"}}}},"401":{"$ref":"#/components/responses/Unauthorized_401"},"403":{"$ref":"#/components/responses/Forbidden_403"},"404":{"$ref":"#/components/responses/NotFound_404"}},"tags":["Configuration"],"operationId":"GET-indexing-retrieve-config"}}}}
```

## Update configuration by provider name

> Updates an existing index configuration.\
> \
> For \`BATTERY\_INCLUDED\`, the service validates \`indexName\` and \`writeKey\` against the BatteryIncluded\
> host in \`apiUrl\`, or against the default host when \`apiUrl\` is not set, before saving.\
> Invalid credentials return \`400\`. If credential validation is temporarily unavailable,\
> the request returns \`502\`. In both cases, the configuration is left unchanged.\
> \
> The request replaces the whole configuration. A request without \`apiUrl\` moves the tenant back to the\
> default BatteryIncluded host, so \`writeKey\` must be valid on that host. An \`apiUrl\` that is not an \`https\` address of an allowed\
> BatteryIncluded host, or an \`apiUrl\` sent for another provider, returns \`400\`.\
> \
> A request without \`enrichments\` resets the tenant to the default set \`AVAILABILITY\`, \`PRICE\`, and\
> \`CUSTOMER\_SEGMENT\`. An \`enrichments\` list with an unknown or \`null\` value returns \`400\`. An \`enrichments\`\
> field sent for another provider also returns \`400\`, even as an empty list.\
> \
> A request without \`siteAwareMixinsStrategy\` resets the tenant to the default \`FAN\_OUT\`. A value other than\
> \`FAN\_OUT\` or \`INHERITANCE\` returns \`400\`. A \`siteAwareMixinsStrategy\` field sent for another provider also\
> returns \`400\`.

```json
{"openapi":"3.0.0","info":{"title":"Indexing Service","version":"v1"},"tags":[{"name":"Configuration"}],"servers":[{"url":"https://api.emporix.io"}],"security":[{"OAuth2":["indexing.search_manage"]}],"components":{"securitySchemes":{"OAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.emporix.io/oauth/token","scopes":{"indexing.search_view":"Needed to read an index provider configuration","indexing.search_manage":"Needed to manage an index provider configuration"}}}}},"schemas":{"IndexConfiguration":{"title":"IndexConfiguration","allOf":[{"$ref":"#/components/schemas/IndexPublicConfiguration"},{"type":"object","properties":{"writeKey":{"type":"string","description":"API key used for write purposes. For `BATTERY_INCLUDED`, this key is validated before the configuration is created or updated."},"apiUrl":{"type":"string","description":"Optional base URL of the BatteryIncluded API that holds the tenant's index, for example `https://api-next.batteryincluded.io`. Applies only to the `BATTERY_INCLUDED` provider.\nWhen set, the Indexing Service sends all of the tenant's BatteryIncluded requests to this host and validates `writeKey` against it, so the write key must be valid on this host. When not set, the default BatteryIncluded host is used.\nThe value must be an `https` address of an allowed BatteryIncluded host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with `400`. A change takes effect within 10 minutes. Change `apiUrl` when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect."},"excludedMixinKeys":{"type":"array","items":{"type":"string"},"description":"Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the `BATTERY_INCLUDED` provider."},"includedMixinPaths":{"type":"array","items":{"type":"string"},"description":"Optional allowlist of product mixin paths to include in indexing for the `BATTERY_INCLUDED` provider. Patterns are matched against full dot-notation paths rooted at the mixin key, for example `class_EA673_toolsClassification.sk.OnlineIsService_P`.\n`*` matches within a single path segment, `**` matches across one or more path segments, and matching is case sensitive.\nIf a matched path points to an object, the entire subtree under that object is included. When this field is absent or an empty list, path filtering is inactive and existing `excludedMixinKeys` behavior applies.\n`includedMixinPaths` and `excludedMixinKeys` are mutually exclusive when `includedMixinPaths` is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes."},"enrichments":{"type":"array","items":{"type":"string","enum":["AVAILABILITY","PRICE","CUSTOMER_SEGMENT","FEE"]},"description":"Optional list of the Emporix data dependencies that BatteryIncluded product indexing calls. Applies only to the `BATTERY_INCLUDED` provider. The Product, Site Settings, and Configuration services are always called and are not listed.\n`AVAILABILITY` adds availability data, `PRICE` adds prices, and `CUSTOMER_SEGMENT` adds segment IDs to the site-specific data of the indexed document. `FEE` calls the Fee Service, but fee data is not part of the Battery Included document.\nWhen this field is not set, the default set `AVAILABILITY`, `PRICE`, and `CUSTOMER_SEGMENT` is used. An empty list means that no optional dependency is called. Values are case sensitive. The stored list is returned as sent. When the field is not set, the response does not contain it, and the default set applies.\nA dependency that is not listed is not called for any site. Its condition counts as met, so a site without prices or availability still contributes to the merged document when `PRICE` or `AVAILABILITY` is not listed. Its data is not part of the indexed document or of the `index.item-updated` webhook events. A change takes effect within 10 minutes. For details, see [How to choose the data that BatteryIncluded indexing uses](https://developer.emporix.io/api-documentation/api-guides/configuration/indexing-service/indexing#how-to-choose-the-data-that-batteryincluded-indexing-uses)."},"siteAwareMixinsStrategy":{"type":"string","enum":["FAN_OUT","INHERITANCE"],"description":"Optional strategy that defines where BatteryIncluded product indexing writes site-aware mixins. Applies only to the `BATTERY_INCLUDED` provider. A mixin is site-aware when the product has a `{mixin}__{site}` overlay for it, or when the schema file that the product references in `metadata.mixins` has `siteAware: true` at its root.\n`FAN_OUT` merges the base mixin with the site's overlay for every site that contributes to the merged document and every other site with an `_product_siteAware` entry, and writes the result to `_product_siteAware.<site>.mixins` and `_product_siteAware.<site>.localeAware.<language>.mixins`. A site without an overlay receives the base mixin. Neither the base mixin nor its overlays are written to `_product.mixins` or `_product_i18n.<language>.mixins`.\n`INHERITANCE` keeps the base mixin in `_product.mixins` and `_product_i18n.<language>.mixins`, and writes the merged value to `_product_siteAware.<site>.mixins` and `_product_siteAware.<site>.localeAware.<language>.mixins` only for sites that have an overlay.\nOverlay keys in the form `{mixin}__{site}` are not written to the document.\nWhen this field is not set, `FAN_OUT` is used. Values are case sensitive. The stored value is returned as sent. When the field is not set, the response does not contain it. A change takes effect within 10 minutes and applies to each product the next time it is updated or reindexed. To apply it to all products, start a full product reindex after the change takes effect. For details, see [How to choose site-aware mixins indexing for BatteryIncluded](https://developer.emporix.io/api-documentation/api-guides/configuration/indexing-service/indexing#how-to-choose-site-aware-mixins-indexing-for-batteryincluded)."}},"required":["provider"]}]},"IndexPublicConfiguration":{"title":"IndexPublicConfiguration","type":"object","properties":{"searchKey":{"type":"string","description":"API Key used for search purposes."},"applicationId":{"type":"string","description":"Application id of an indexer provider."},"indexName":{"type":"string","description":"Identifier of an index."},"provider":{"type":"string","description":"Index provider name. Supported providers: `ALGOLIA` (https://www.algolia.com), `BATTERY_INCLUDED` (https://www.batteryincluded.io). Only one provider can be active per tenant at a time.","enum":["ALGOLIA","BATTERY_INCLUDED"]},"active":{"type":"boolean","description":"Indicates if the configuration is active or not."}}},"errorMessage":{"title":"error","description":"Schema for API specified errors.","type":"object","properties":{"code":{"description":"Original HTTP error code, should be consistent with the response HTTP code","type":"integer"},"status":{"description":"Classification of the error type","type":"string"},"message":{"description":"Descriptive error message for debugging","type":"string"},"details":{"type":"array","description":"Error details","items":{"type":"string"}}}}},"responses":{"BadRequest_400":{"description":"Request was syntactically incorrect. Details will be provided in the response payload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}},"Forbidden_403":{"description":"Given authorization scopes are not sufficient and do not match scopes required by the endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}},"NotFound_404":{"description":"Resource has not been found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}},"BadGateway_502":{"description":"Upstream dependency was unavailable. Details will be provided in the response payload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}}}},"paths":{"/indexing/{tenant}/configurations/{provider}":{"put":{"summary":"Update configuration by provider name","description":"Updates an existing index configuration.\n\nFor `BATTERY_INCLUDED`, the service validates `indexName` and `writeKey` against the BatteryIncluded\nhost in `apiUrl`, or against the default host when `apiUrl` is not set, before saving.\nInvalid credentials return `400`. If credential validation is temporarily unavailable,\nthe request returns `502`. In both cases, the configuration is left unchanged.\n\nThe request replaces the whole configuration. A request without `apiUrl` moves the tenant back to the\ndefault BatteryIncluded host, so `writeKey` must be valid on that host. An `apiUrl` that is not an `https` address of an allowed\nBatteryIncluded host, or an `apiUrl` sent for another provider, returns `400`.\n\nA request without `enrichments` resets the tenant to the default set `AVAILABILITY`, `PRICE`, and\n`CUSTOMER_SEGMENT`. An `enrichments` list with an unknown or `null` value returns `400`. An `enrichments`\nfield sent for another provider also returns `400`, even as an empty list.\n\nA request without `siteAwareMixinsStrategy` resets the tenant to the default `FAN_OUT`. A value other than\n`FAN_OUT` or `INHERITANCE` returns `400`. A `siteAwareMixinsStrategy` field sent for another provider also\nreturns `400`.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexConfiguration"}}}},"responses":{"204":{"description":"Configuration updated"},"400":{"$ref":"#/components/responses/BadRequest_400"},"403":{"$ref":"#/components/responses/Forbidden_403"},"404":{"$ref":"#/components/responses/NotFound_404"},"502":{"$ref":"#/components/responses/BadGateway_502"}},"operationId":"PUT-indexing-update-config","tags":["Configuration"]}}}}
```

## Delete configuration

> Deletes the configuration based on the provider name.

```json
{"openapi":"3.0.0","info":{"title":"Indexing Service","version":"v1"},"tags":[{"name":"Configuration"}],"servers":[{"url":"https://api.emporix.io"}],"security":[{"OAuth2":["indexing.search_manage"]}],"components":{"securitySchemes":{"OAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.emporix.io/oauth/token","scopes":{"indexing.search_view":"Needed to read an index provider configuration","indexing.search_manage":"Needed to manage an index provider configuration"}}}}},"parameters":{"trait_tenant":{"name":"tenant","in":"path","required":true,"description":"The tenant that the caller is acting upon.\n\nPlease note that this value is always lowercase.\n","schema":{"pattern":"^[a-z][a-z0-9]+$","minLength":3,"maxLength":16,"type":"string"}}},"responses":{"Unauthorized_401":{"description":"Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.","content":{"application/json":{"schema":{"type":"object","properties":{"fault":{"type":"object","properties":{"faultstring":{"type":"string"},"detail":{"type":"object","properties":{"errorcode":{"type":"string"}}}}}}}}}},"Forbidden_403":{"description":"Given authorization scopes are not sufficient and do not match scopes required by the endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}},"NotFound_404":{"description":"Resource has not been found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorMessage"}}}}},"schemas":{"errorMessage":{"title":"error","description":"Schema for API specified errors.","type":"object","properties":{"code":{"description":"Original HTTP error code, should be consistent with the response HTTP code","type":"integer"},"status":{"description":"Classification of the error type","type":"string"},"message":{"description":"Descriptive error message for debugging","type":"string"},"details":{"type":"array","description":"Error details","items":{"type":"string"}}}}}},"paths":{"/indexing/{tenant}/configurations/{provider}":{"delete":{"summary":"Delete configuration","description":"Deletes the configuration based on the provider name.","parameters":[{"$ref":"#/components/parameters/trait_tenant"}],"responses":{"204":{"description":"Configuration deleted"},"401":{"$ref":"#/components/responses/Unauthorized_401"},"403":{"$ref":"#/components/responses/Forbidden_403"},"404":{"$ref":"#/components/responses/NotFound_404"}},"operationId":"DELETE-indexing-remove-config","tags":["Configuration"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.emporix.io/api-references/readme/api-reference-20/configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
