OpenAPI spec for glossary management

This page contains only a set of guides that is auto-generated from DeepL's OpenAPI file.

For more detail about glossary management, including information about request parameters, please see the Manage glossaries entry.

List supported glossary languages

List Language Pairs Supported by Glossaries

Retrieve the list of language pairs supported by the glossary feature.

get

/glossary-language-pairs

Authorizations
Responses
{
  "supported_languages": [
    {
      "source_lang": "de",
      "target_lang": "en"
    },
    {
      "source_lang": "en",
      "target_lang": "de"
    }
  ]
}

Create a glossary

Create a Glossary

post

/glossaries

Authorizations
Body
namestringrequired

Name to be associated with the glossary.

Example: My Glossary
source_langstring · enumrequired

The language in which the source texts in the glossary are specified.

Example: en
Options: da, de, en, es, fr, it, ja, ko, nb, nl, pl, pt, ro, ru, sv, zh
target_langstring · enumrequired

The language in which the target texts in the glossary are specified.

Example: de
Options: da, de, en, es, fr, it, ja, ko, nb, nl, pl, pt, ro, ru, sv, zh
entriesstringrequired

The entries of the glossary. The entries have to be specified in the format provided by the entries_format parameter.

Example: Hello Guten Tag
entries_formatstring · enum · default: tsvrequired

The format in which the glossary entries are provided. Formats currently available:

  • tsv (default) - tab-separated values
  • csv - comma-separated values

See Supported Glossary Formats for details about each format.

Example: tsv
Options: tsv, csv
Responses
{
  "glossary_id": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7",
  "ready": true,
  "name": "My Glossary",
  "source_lang": "en",
  "target_lang": "de",
  "creation_time": "2021-08-03T14:16:18.329Z",
  "entry_count": 1
}

List all glossaries

List all Glossaries

List all glossaries and their meta-information, but not the glossary entries.

get

/glossaries

Authorizations
Responses
{
  "glossaries": [
    {
      "glossary_id": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7",
      "name": "My Glossary",
      "ready": true,
      "source_lang": "EN",
      "target_lang": "DE",
      "creation_time": "2021-08-03T14:16:18.329Z",
      "entry_count": 1
    }
  ]
}

Retrieve glossary details

Retrieve Glossary Details

Retrieve meta information for a single glossary, omitting the glossary entries.

get

/glossaries/{glossary_id}

Authorizations
Path parameters
glossary_idstringrequired

A unique ID assigned to the glossary.

Responses
{
  "glossary_id": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7",
  "name": "My Glossary",
  "ready": true,
  "source_lang": "EN",
  "target_lang": "DE",
  "creation_time": "2021-08-03T14:16:18.329Z",
  "entry_count": 1
}

Retrieve glossary entries

Retrieve Glossary Entries

List the entries of a single glossary in the format specified by the Accept header.

get

/glossaries/{glossary_id}/entries

Authorizations
Path parameters
glossary_idstringrequired

A unique ID assigned to the glossary.

Header parameters
Acceptstring · enum · default: text/tab-separated-values

The requested format of the returned glossary entries. Currently, supports only text/tab-separated-values.

Example: {"summary":"Tab-separated Values","value":{"in":"header","Accept":"text/tab-separated-values"}}
Options: text/tab-separated-values
Responses
Hello!	Guten Tag!

Delete a glossary

Delete a Glossary

Deletes the specified glossary.

delete

/glossaries/{glossary_id}

Authorizations
Path parameters
glossary_idstringrequired

A unique ID assigned to the glossary.

Responses

No body

Last updated