Create a glossary
curl --request POST \
--url https://api.rask.ai/v3/glossaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Product terms",
"source_language": "en",
"target_language": "es-es",
"entries": {
"dubbing": "doblaje",
"lip-sync": "sincronizacion labial"
}
}
'import requests
url = "https://api.rask.ai/v3/glossaries"
payload = {
"name": "Product terms",
"source_language": "en",
"target_language": "es-es",
"entries": {
"dubbing": "doblaje",
"lip-sync": "sincronizacion labial"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Product terms',
source_language: 'en',
target_language: 'es-es',
entries: {dubbing: 'doblaje', 'lip-sync': 'sincronizacion labial'}
})
};
fetch('https://api.rask.ai/v3/glossaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rask.ai/v3/glossaries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Product terms',
'source_language' => 'en',
'target_language' => 'es-es',
'entries' => [
'dubbing' => 'doblaje',
'lip-sync' => 'sincronizacion labial'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rask.ai/v3/glossaries"
payload := strings.NewReader("{\n \"name\": \"Product terms\",\n \"source_language\": \"en\",\n \"target_language\": \"es-es\",\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"lip-sync\": \"sincronizacion labial\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rask.ai/v3/glossaries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Product terms\",\n \"source_language\": \"en\",\n \"target_language\": \"es-es\",\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"lip-sync\": \"sincronizacion labial\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/glossaries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Product terms\",\n \"source_language\": \"en\",\n \"target_language\": \"es-es\",\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"lip-sync\": \"sincronizacion labial\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "glossary",
"id": "e3b8d1f5-4a2c-4e9d-8b7f-2c6a0d1e9f38",
"name": "Product terms",
"source_language": "en",
"target_language": "es",
"version": 1,
"entry_count": 2,
"entries": {
"dubbing": "doblaje",
"lip-sync": "sincronizacion labial"
},
"created_at": "2026-09-02T08:30:00Z",
"created_by": {
"user_id": "0d9a4e1c-7f2b-4c8d-a1e5-3b6f9c2d8e47"
}
}Glossaries
Create a glossary
Creates a glossary of source -> target term pairs for one supported language pair (version 1).
POST
/
glossaries
Create a glossary
curl --request POST \
--url https://api.rask.ai/v3/glossaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Product terms",
"source_language": "en",
"target_language": "es-es",
"entries": {
"dubbing": "doblaje",
"lip-sync": "sincronizacion labial"
}
}
'import requests
url = "https://api.rask.ai/v3/glossaries"
payload = {
"name": "Product terms",
"source_language": "en",
"target_language": "es-es",
"entries": {
"dubbing": "doblaje",
"lip-sync": "sincronizacion labial"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Product terms',
source_language: 'en',
target_language: 'es-es',
entries: {dubbing: 'doblaje', 'lip-sync': 'sincronizacion labial'}
})
};
fetch('https://api.rask.ai/v3/glossaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rask.ai/v3/glossaries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Product terms',
'source_language' => 'en',
'target_language' => 'es-es',
'entries' => [
'dubbing' => 'doblaje',
'lip-sync' => 'sincronizacion labial'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rask.ai/v3/glossaries"
payload := strings.NewReader("{\n \"name\": \"Product terms\",\n \"source_language\": \"en\",\n \"target_language\": \"es-es\",\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"lip-sync\": \"sincronizacion labial\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rask.ai/v3/glossaries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Product terms\",\n \"source_language\": \"en\",\n \"target_language\": \"es-es\",\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"lip-sync\": \"sincronizacion labial\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/glossaries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Product terms\",\n \"source_language\": \"en\",\n \"target_language\": \"es-es\",\n \"entries\": {\n \"dubbing\": \"doblaje\",\n \"lip-sync\": \"sincronizacion labial\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "glossary",
"id": "e3b8d1f5-4a2c-4e9d-8b7f-2c6a0d1e9f38",
"name": "Product terms",
"source_language": "en",
"target_language": "es",
"version": 1,
"entry_count": 2,
"entries": {
"dubbing": "doblaje",
"lip-sync": "sincronizacion labial"
},
"created_at": "2026-09-02T08:30:00Z",
"created_by": {
"user_id": "0d9a4e1c-7f2b-4c8d-a1e5-3b6f9c2d8e47"
}
}Entries are JSON; CSV/TSV files must be converted first.
When to use: to enforce terminology in translations (attach it to projects).
Side effects: None beyond the new glossary.
Cost: Free.
Idempotency:
Idempotency-Key accepted (SDKs send one); retries within 24 h replay the glossary as it is now, and answer 404 glossary_not_found if it was deleted since.
Plan: glossary.
Required scopes: glossaries:write
Errors: feature_not_in_plan (403), glossary_language_pair_not_supported (422), glossary_entries_invalid (422)Authorizations
Headers
Body
application/json
Body of createGlossary (<= 10 MiB).
Response
Created: Glossary.
A glossary for one language pair.