> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cludo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Synonyms by Language or Synonym Group

> Path segment is overloaded: use a language code (for example `en`) to list all synonym groups for that language (`getSynonymsByLanguage`). Use a numeric synonym group ID to fetch a single group (`getSynonymGroup`).



## OpenAPI

````yaml /openapi/search-tools.json get /api/synonymsgroup/{identifier}
openapi: 3.1.0
info:
  title: Cludo Search Tools API
  version: 4.0.0
  description: >-
    Manage search experience tools: banners, rankings, quicklinks, and synonym
    groups for Cludo search engines.
servers:
  - url: https://api.cludo.com
    description: EU region (Customer IDs below 10,000,000)
  - url: https://api-us1.cludo.com
    description: US region (Customer IDs 10,000,000 and above)
security:
  - BasicAuth: []
paths:
  /api/synonymsgroup/{identifier}:
    get:
      summary: Get Synonyms by Language or Synonym Group
      description: >-
        Path segment is overloaded: use a language code (for example `en`) to
        list all synonym groups for that language (`getSynonymsByLanguage`). Use
        a numeric synonym group ID to fetch a single group (`getSynonymGroup`).
      operationId: getSynonymsByLanguage
      parameters:
        - $ref: '#/components/parameters/synonymPathIdentifier'
      responses:
        '200':
          description: Synonym group(s) matching the identifier.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/SynonymGroup'
                  - type: array
                    items:
                      $ref: '#/components/schemas/SynonymGroup'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Synonym group not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - BasicAuth: []
components:
  parameters:
    synonymPathIdentifier:
      name: identifier
      in: path
      required: true
      description: >-
        A two-letter ISO language code (e.g. `en`, `da`, `de`) to list all
        groups for that language, or a numeric group ID to fetch one group.
        Corresponds to `getSynonymsByLanguage` (language) and `getSynonymGroup`
        (group ID) in client integrations.
      schema:
        type: string
  schemas:
    SynonymGroup:
      type: object
      required:
        - groupId
        - words
        - language
      properties:
        groupId:
          type: integer
          description: Synonym group ID (assigned by server on create).
        words:
          type: array
          items:
            type: string
          description: >-
            Equivalents treated as the same intent for search (e.g.
            `motorcycle`, `bike`).
        language:
          type: string
          description: >-
            A two-letter ISO language code (e.g. `en`, `da`, `de`) this group
            applies to.
    ErrorResponse:
      type: object
      description: Error response returned when a request fails.
      properties:
        message:
          type: string
          description: A message describing what went wrong.
    UnauthorizedError:
      type: object
      description: Returned when authentication fails.
      properties:
        message:
          type: string
          description: Authentication failure reason.
    ServerError:
      type: object
      description: Returned when an unexpected server error occurs.
      properties:
        status:
          type: string
          description: HTTP status name.
        code:
          type: integer
          description: HTTP status code.
        messages:
          type: array
          items:
            type: string
          description: Error details, usually including a support reference id.
  responses:
    Unauthorized:
      description: >-
        Authentication failed. The Authorization header is missing or contains
        invalid credentials.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedError'
          example:
            message: unauthorized
    InternalServerError:
      description: >-
        An unexpected server error occurred. If this persists, contact
        support@cludo.com.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ServerError'
          example:
            status: InternalServerError
            code: 500
            messages:
              - >-
                Error occur. Please contact support with error ID:
                a1b2c3d4-e5f6-7890-abcd-ef1234567890
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: >-
        Basic authentication. Use your Customer ID as the username and API Key
        as the password. Example header: `Authorization: Basic
        MTIzNDU2NzpteS1hcGkta2V5`.

````