Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Elastic Path Synonym Sets API

Synonym Sets allow you to define groups of equivalent or related terms so that searches for one term also return results for its synonyms. This helps shoppers find products regardless of the specific terminology they use.### How Synonym Sets WorkA synonym set is a named container of synonym items. Each set belongs to an organization or store and is synced asynchronously. Once synced, a set can be attached to one or more search profiles; its synonym rules are then applied during searches that use those profiles to expand queries with matching terms.### Synonym TypesEach item within a synonym set can be either multi-way or one-way:- **Multi-way synonyms**: All terms are treated as equivalent. Searching for any term in the list returns results for all of them. For example, `["sneakers", "trainers", "running shoes"]` means a search for "trainers" also returns results for "sneakers" and "running shoes".- **One-way synonyms**: Searches for a `root` term also match the `synonyms`, but not vice versa. For example, with `root: "jacket"` and `synonyms: ["blazer", "coat"]`, searching for "jacket" also returns results for "blazer" and "coat", but searching for "blazer" does not return results for "jacket".### Synonym Item ConfigurationEach item within a synonym set supports the following options:| Option | Required | Description ||--------------------|----------|--------------------------------------------------------------------------------------------------------------|| `id` | Yes | Unique identifier for the item within the set. Alphanumeric characters, hyphens, and underscores only. || `synonyms` | Yes | List of synonym terms. Minimum 1 if `root` is provided (one-way), minimum 2 if `root` is absent (multi-way). || `root` | No | Makes this a one-way synonym. Must not also appear in the `synonyms` array. || `locale` | No | ISO 639 language code for this synonym item. || `symbols_to_index` | No | Special characters to preserve as part of tokens. Each element must be exactly one character. |### Sync StatusSynonym sets are synced asynchronously. The sync status is tracked and exposed in API responses:| Status | Description ||------------------|----------------------------------------------------------------|| `pending_sync` | Set has been created or updated in MongoDB but not yet synced || `synced` | Set has been successfully synced || `sync_failed` | The last sync attempt failed || `pending_delete` | Set is marked for deletion; a background worker will remove it |### TenancySynonym sets follow the same tenancy model as other resources:- **Organization-scoped sets**: Managed by the organization; apply across all stores- **Store-scoped sets**: Managed by the store; apply only to that storeStores cannot modify organization-scoped synonym sets.### Using Synonym Sets in Search ProfilesSynonym sets only take effect once they are attached to a [search profile](/docs/api/pxm/catalog-search/search-profiles) via its `synonym_sets` attribute. At search time, the synonym sets of the resolved search profile are applied to the query.When attaching a synonym set to a search profile:- The set must exist and be accessible by the calling tenant. Organization-level search profiles may only reference organization-level sets; store-level search profiles may reference organization-level and same-store sets.- The set must have been synced at least once. A set in `pending_sync` or `sync_failed` state can still be used if it was previously synced — its last synced state continues to apply.A synonym set cannot be deleted while it is referenced by any search profile; the delete request is rejected with a `409 Conflict` until the reference is removed.### Use Cases- **Regional terminology**: Map British and American English terms (e.g., "trousers" ↔ "pants")- **Brand equivalents**: Link product category names with common alternatives- **Industry jargon**: Ensure technical terms match colloquial ones- **Abbreviations**: Map abbreviations to their full forms (e.g., "tee" → "t-shirt")

Elastic Path Synonym Sets API is one of 100 APIs that Elastic Path publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Synonym Sets. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 5 operations across 2 paths, and defines 15 schemas. It is described by OpenAPI 3.1.0, at version 25.1126.6886238.

Requests are made against 2 base URLs: https://useast.api.elasticpath.com, https://euwest.api.elasticpath.com.

5 operations 2 paths 15 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
25.1126.6886238
Base URL
https://useast.api.elasticpath.com
Authentication
HTTP Bearer
License
Resource Areas
1

Authentication & Security 1

Elastic Path Synonym Sets API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerToken). By default, every request must be authenticated.

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Synonym Sets 5

Synonym Sets allow you to define groups of equivalent or related terms so that searches for one term also return results for its synonyms. This helps shoppers find products regard…

POST
/pcm/catalogs/search/synonym-sets
Create synonym set
createSynonymSet body → 201400500
GET
/pcm/catalogs/search/synonym-sets
List synonym sets
listSynonymSets → 200500
GET
/pcm/catalogs/search/synonym-sets/{synonym_set_id}
Get synonym set
getSynonymSet 1 param → 200404500
PUT
/pcm/catalogs/search/synonym-sets/{synonym_set_id}
Update synonym set
updateSynonymSet 1 param body → 200400403404500
DELETE
/pcm/catalogs/search/synonym-sets/{synonym_set_id}
Delete synonym set
deleteSynonymSet 1 param → 204400403409500

Schemas 15

The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are SynonymSetMeta (5 properties), SynonymSetItem (5 properties), SynonymSet (4 properties), Error (4 properties). Each schema is shown below with its type and property counts.

ResourceOwner
string
The resource owner, either organization or store.
ListResponseMeta
object
1 property 1 required
SynonymSetType
string
Represents the type of object being returned. Always catalogsearchsynonymset.
UpdateSynonymSetAttributes
object
2 properties
SynonymSetResponse
object
1 property 1 required
SynonymSetMeta
object
5 properties 4 required
ListResponseMetaResults
object
Contains the results for the entire collection.
1 property 1 required
UpdateSynonymSetRequest
object
1 property 1 required
Error
object
4 properties 2 required
SynonymSetItem
object
5 properties 2 required
ListSynonymSetsResponse
object
2 properties 2 required
SynonymSet
object
4 properties 4 required
SynonymSetAttributes
object
2 properties 2 required
ErrorResponse
object
1 property 1 required
CreateSynonymSetRequest
object
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

elastic-path-synonym-sets-api-openapi.yml Raw ↑

Other APIs Elastic Path publishes across the network.

Elastic Path GraphQL API
Elastic Path Account Addresses API
Elastic Path Account Authentication Settings API
Elastic Path Account Cart Associations API
Elastic Path Account Management Authentication API
Elastic Path Account Members API
Elastic Path Account Membership API
Elastic Path Account Membership Settings API
Elastic Path Account Tags API
Elastic Path Accounts API
Elastic Path Administrator Latest Releases Catalog API API
Elastic Path Application Keys API