younifyd
Menu

Retrieve synonym groups

Retrieve synonym groups

GET/v1/synonym_groups

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Retrieve synonym groups action (under Synonym Groups).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveSynonymGroups.response.data}}.

Request

Query parameters

sectionstring

The section of the index to use. Defaults to `Products`.

synonym_group_idarray<integer>

A list of synonym group IDs for filter by

phrasestring

Phrase to search by

num_results_per_pageinteger

The number of results per page to return.

Default 20

pageinteger

The page of results to return.

offsetinteger

The number of results to skip from the beginning. Cannot be used together with `page`.

sort_bystring

Fields that you can sort the results by

One ofidcreated_atupdated_atDefault "id"

sort_orderany

In which order results are returned

Default "ascending"

cstring

The ID of the client and version that the request is coming from, such as `cio-js-2.90`.

Response

Returns 200 with an object. Read it in later steps with {{retrieveSynonymGroups.response.data.<field>}}.

total_countinteger
synonym_groupsarray<object>
synonymsarray<string>required
synonym_group_idintegerrequired

The ID of the synonym group, must be unique.

created_atstring (date-time)required

Synonym group creation date in ISO 8601 format

updated_atstring (date-time)required

Last synonym group update date in ISO 8601 format.

json
{
  "total_count": 0,
  "synonym_groups": [
    {
      "synonyms": [
        "string"
      ],
      "synonym_group_id": 0,
      "created_at": "2025-01-01T00:00:00Z",
      "updated_at": "2025-01-01T00:00:00Z"
    }
  ]
}

Need more? See the Constructor guide for connection setup and behaviour shared by every action.