curl --request POST \
--url https://api.textsetu.com/api/v1/orgs/{orgId}/glossaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": true,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error"
}
'import requests
url = "https://api.textsetu.com/api/v1/orgs/{orgId}/glossaries"
payload = {
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "all",
"approvalRequired": False,
"approvalBypassAdmins": True,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error"
}
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: 'Brand Terms',
description: 'Approved product and brand terminology for all UI surfaces.',
scope: 'all',
approvalRequired: false,
approvalBypassAdmins: true,
qaTermConsistency: 'warning',
qaForbiddenTerms: 'error'
})
};
fetch('https://api.textsetu.com/api/v1/orgs/{orgId}/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.textsetu.com/api/v1/orgs/{orgId}/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' => 'Brand Terms',
'description' => 'Approved product and brand terminology for all UI surfaces.',
'scope' => 'all',
'approvalRequired' => false,
'approvalBypassAdmins' => true,
'qaTermConsistency' => 'warning',
'qaForbiddenTerms' => 'error'
]),
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.textsetu.com/api/v1/orgs/{orgId}/glossaries"
payload := strings.NewReader("{\n \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\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.textsetu.com/api/v1/orgs/{orgId}/glossaries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/orgs/{orgId}/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\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"glossary": {
"id": "a1b2c3d4-0000-4000-8000-000000000010",
"orgId": "org_5a4b3c2d",
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": true,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error",
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z"
}
}
}Create a glossary
Create a new glossary in the organization. Its scope, approval workflow, and QA severities can be set here or updated later. Add languages and terms in follow-up calls.
curl --request POST \
--url https://api.textsetu.com/api/v1/orgs/{orgId}/glossaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": true,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error"
}
'import requests
url = "https://api.textsetu.com/api/v1/orgs/{orgId}/glossaries"
payload = {
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "all",
"approvalRequired": False,
"approvalBypassAdmins": True,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error"
}
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: 'Brand Terms',
description: 'Approved product and brand terminology for all UI surfaces.',
scope: 'all',
approvalRequired: false,
approvalBypassAdmins: true,
qaTermConsistency: 'warning',
qaForbiddenTerms: 'error'
})
};
fetch('https://api.textsetu.com/api/v1/orgs/{orgId}/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.textsetu.com/api/v1/orgs/{orgId}/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' => 'Brand Terms',
'description' => 'Approved product and brand terminology for all UI surfaces.',
'scope' => 'all',
'approvalRequired' => false,
'approvalBypassAdmins' => true,
'qaTermConsistency' => 'warning',
'qaForbiddenTerms' => 'error'
]),
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.textsetu.com/api/v1/orgs/{orgId}/glossaries"
payload := strings.NewReader("{\n \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\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.textsetu.com/api/v1/orgs/{orgId}/glossaries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/orgs/{orgId}/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\": \"Brand Terms\",\n \"description\": \"Approved product and brand terminology for all UI surfaces.\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": true,\n \"qaTermConsistency\": \"warning\",\n \"qaForbiddenTerms\": \"error\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"glossary": {
"id": "a1b2c3d4-0000-4000-8000-000000000010",
"orgId": "org_5a4b3c2d",
"name": "Brand Terms",
"description": "Approved product and brand terminology for all UI surfaces.",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": true,
"qaTermConsistency": "warning",
"qaForbiddenTerms": "error",
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z"
}
}
}Authorizations
API token: tsu_pat_… (PAT) or tsu_proj_… (project token). The token's granted RBAC permissions determine access; see each operation's x-permission.
Path Parameters
Organization id (UUID) or id-embedded path slug.
Body
Human-readable glossary name, unique within the organization.
1 - 100"Brand Terms"
Optional summary of what this glossary covers.
500"Approved product and brand terminology for all UI surfaces."
Which projects the glossary applies to: all projects in the org, or only selected ones assigned to it. Defaults to all.
all, selected "all"
When true, term translations from non-approvers are stored as proposals until approved.
false
When true, org/glossary admins' edits are auto-approved even while approval is required.
true
Severity when a required term is missing from a translation: off, warning, or error. See the quality checks guide.
off, warning, error "warning"
Severity when a forbidden or deprecated term is used: off, warning, or error.
off, warning, error "error"

