Create a Glossary
Changed onFor new integrations we recommend POST /v3/glossaries, which supports multiple language pairs in a single glossary.
Create a glossary for one source and target language pair and return its glossary_id.
Request
- Base URLhttps://api.deepl.com
- URLhttps://api.deepl.com/v2/glossaries
- AuthAPI key in header Authorization
Request body
Example request
{
"name": "My Glossary",
"source_lang": "en",
"target_lang": "de",
"entries": "Hello\tGuten Tag",
"entries_format": "tsv"
}Response
The function for creating a glossary returns a JSON object containing the ID of the newly created glossary and a boolean flag that indicates if the created glossary can already be used in translate requests.
Example response
{
"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
}Changes
- breaking
removed the enum value
thof the request property(media type: application/json) - breaking
removed the enum value
thof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
thof the request property(media type: application/json) - breaking
removed the enum value
thof the request property(media type: application/x-www-form-urlencoded) - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
removed the
thenum value from theresponse property for the response status - info
removed the
thenum value from theresponse property for the response status
- breaking