Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration

Get all configurations

get

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

Required scopes
This endpoint requires the following scopes:
  • : Needed to read an index provider configuration
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Responses
200Success
application/json
searchKeystringOptional

API Key used for search purposes.

applicationIdstringOptional

Application id of an indexer provider.

indexNamestringOptional

Identifier of an index.

providerstring · enumRequired

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.

Possible values:
activebooleanOptional

Indicates if the configuration is active or not.

writeKeystringOptional

API key used for write purposes. For BATTERY_INCLUDED, this key is validated before the configuration is created or updated.

apiUrlstringOptional

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. When 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. The 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.

excludedMixinKeysstring[]Optional

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.

includedMixinPathsstring[]Optional

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. * matches within a single path segment, ** matches across one or more path segments, and matching is case sensitive. If 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. includedMixinPaths and excludedMixinKeys are mutually exclusive when includedMixinPaths is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes.

get/indexing/{tenant}/configurations
GET /indexing/{tenant}/configurations HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "active": true,
    "searchKey": "84dc4886f81f805c42bdd89d64de751a",
    "applicationId": "8AP2HABA2I",
    "indexName": "exampleTenant",
    "writeKey": "51ebe89215dddcf85e5dacd5643d17e7",
    "provider": "ALGOLIA"
  },
  {
    "active": false,
    "indexName": "exampleTenant",
    "writeKey": "bi-api-key-abc123",
    "provider": "BATTERY_INCLUDED",
    "apiUrl": "https://api-next.batteryincluded.io",
    "includedMixinPaths": [
      "*_siteAware.*.OnlineIsService_P",
      "*_siteAware.**"
    ],
    "enrichments": [
      "AVAILABILITY",
      "PRICE"
    ]
  }
]

Create a new configuration

post

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.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage an index provider configuration
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
searchKeystringOptional

API Key used for search purposes.

applicationIdstringOptional

Application id of an indexer provider.

indexNamestringOptional

Identifier of an index.

providerstring · enumRequired

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.

Possible values:
activebooleanOptional

Indicates if the configuration is active or not.

writeKeystringOptional

API key used for write purposes. For BATTERY_INCLUDED, this key is validated before the configuration is created or updated.

apiUrlstringOptional

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. When 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. The 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.

excludedMixinKeysstring[]Optional

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.

includedMixinPathsstring[]Optional

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. * matches within a single path segment, ** matches across one or more path segments, and matching is case sensitive. If 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. includedMixinPaths and excludedMixinKeys are mutually exclusive when includedMixinPaths is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes.

Responses
201

Created

application/json
idstringOptional

Identifier of a newly created configuration.

post/indexing/{tenant}/configurations
POST /indexing/{tenant}/configurations HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 186

{
  "active": true,
  "searchKey": "84dc4886f81f805c42bdd89d64de751a",
  "applicationId": "8AP2HABA2I",
  "indexName": "exampleTenant",
  "writeKey": "51ebe89215dddcf85e5dacd5643d17e7",
  "provider": "ALGOLIA"
}
{
  "id": "ALGOLIA"
}

Get configuration by provider name

get

Retrieves a single configuration by a provider name. Supported providers:

  • Algolia - https://www.algolia.com

  • BatteryIncluded - https://www.batteryincluded.io

Required scopes
This endpoint requires the following scopes:
  • : Needed to read an index provider configuration
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
providerstring · enumRequired

Provider name. Supported values: ALGOLIA, BATTERY_INCLUDED

Possible values:
Responses
200Success
application/json
searchKeystringOptional

API Key used for search purposes.

applicationIdstringOptional

Application id of an indexer provider.

indexNamestringOptional

Identifier of an index.

providerstring · enumRequired

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.

Possible values:
activebooleanOptional

Indicates if the configuration is active or not.

writeKeystringOptional

API key used for write purposes. For BATTERY_INCLUDED, this key is validated before the configuration is created or updated.

apiUrlstringOptional

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. When 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. The 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.

excludedMixinKeysstring[]Optional

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.

includedMixinPathsstring[]Optional

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. * matches within a single path segment, ** matches across one or more path segments, and matching is case sensitive. If 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. includedMixinPaths and excludedMixinKeys are mutually exclusive when includedMixinPaths is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes.

get/indexing/{tenant}/configurations/{provider}
GET /indexing/{tenant}/configurations/{provider} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "active": true,
  "searchKey": "84dc4886f81f805c42bdd89d64de751a",
  "applicationId": "8AP2HABA2I",
  "indexName": "exampleTenant",
  "writeKey": "51ebe89215dddcf85e5dacd5643d17e7",
  "provider": "ALGOLIA"
}

Update configuration by provider name

put

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.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage an index provider configuration
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
providerstring · enumRequired

Provider name. Supported values: ALGOLIA, BATTERY_INCLUDED

Possible values:
Body
searchKeystringOptional

API Key used for search purposes.

applicationIdstringOptional

Application id of an indexer provider.

indexNamestringOptional

Identifier of an index.

providerstring · enumRequired

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.

Possible values:
activebooleanOptional

Indicates if the configuration is active or not.

writeKeystringOptional

API key used for write purposes. For BATTERY_INCLUDED, this key is validated before the configuration is created or updated.

apiUrlstringOptional

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. When 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. The 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.

excludedMixinKeysstring[]Optional

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.

includedMixinPathsstring[]Optional

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. * matches within a single path segment, ** matches across one or more path segments, and matching is case sensitive. If 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. includedMixinPaths and excludedMixinKeys are mutually exclusive when includedMixinPaths is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes.

Responses
204

Configuration updated

No content

put/indexing/{tenant}/configurations/{provider}
PUT /indexing/{tenant}/configurations/{provider} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 186

{
  "active": true,
  "searchKey": "84dc4886f81f805c42bdd89d64de751a",
  "applicationId": "8AP2HABA2I",
  "indexName": "exampleTenant",
  "writeKey": "51ebe89215dddcf85e5dacd5643d17e7",
  "provider": "ALGOLIA"
}

No content

Delete configuration

delete

Deletes the configuration based on the provider name.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage an index provider configuration
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
providerstring · enumRequired

Provider name. Supported values: ALGOLIA, BATTERY_INCLUDED

Possible values:
Responses
204

Configuration deleted

No content

delete/indexing/{tenant}/configurations/{provider}
DELETE /indexing/{tenant}/configurations/{provider} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Last updated

Was this helpful?