Skip to main content
POST
/
api
/
synonymsgroup
Create Synonym Group
curl --request POST \
  --url https://api.cludo.com/api/synonymsgroup \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "words": [
    "<string>"
  ],
  "language": "<string>"
}
'
{
  "groupId": 123,
  "words": [
    "<string>"
  ],
  "language": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication. Use your Customer ID as the username and API Key as the password. Example header: Authorization: Basic MTIzNDU2NzpteS1hcGkta2V5.

Body

application/json
words
string[]
required

Initial synonym list (minimum two terms is common).

language
string
required

A two-letter ISO language code (e.g. en, da, de) the synonyms belong to.

Response

Synonym group created successfully.

groupId
integer
required

Synonym group ID (assigned by server on create).

words
string[]
required

Equivalents treated as the same intent for search (e.g. motorcycle, bike).

language
string
required

A two-letter ISO language code (e.g. en, da, de) this group applies to.