curl --request POST \
--url https://api.textsetu.com/api/v1/orgs/{orgId}/translation-memories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": false,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
}
}
'import requests
url = "https://api.textsetu.com/api/v1/orgs/{orgId}/translation-memories"
payload = {
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": False,
"approvalBypassAdmins": False,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
}
}
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: 'Marketing TM',
description: 'Reusable copy for marketing surfaces.',
sourceLanguage: 'en',
scope: 'all',
approvalRequired: false,
approvalBypassAdmins: false,
minMatchPercentage: 75,
penalties: {caseMismatch: 1, whitespace: 1, punctuation: 2}
})
};
fetch('https://api.textsetu.com/api/v1/orgs/{orgId}/translation-memories', 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}/translation-memories",
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' => 'Marketing TM',
'description' => 'Reusable copy for marketing surfaces.',
'sourceLanguage' => 'en',
'scope' => 'all',
'approvalRequired' => false,
'approvalBypassAdmins' => false,
'minMatchPercentage' => 75,
'penalties' => [
'caseMismatch' => 1,
'whitespace' => 1,
'punctuation' => 2
]
]),
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}/translation-memories"
payload := strings.NewReader("{\n \"name\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\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.textsetu.com/api/v1/orgs/{orgId}/translation-memories")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/orgs/{orgId}/translation-memories")
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\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"translationMemory": {
"id": "tm_3f2a9b1c",
"orgId": "org_5d4c3b2a",
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": false,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
},
"createdAt": "2026-01-15T09:24:00.000Z",
"updatedAt": "2026-02-02T14:05:00.000Z"
}
}
}Create a translation memory
Create a new translation memory in the organization. minMatchPercentage (default 75, floor 40) is the threshold below which fuzzy matches from this TM are not surfaced. penalties deducts points for case / whitespace / trailing punctuation differences on otherwise-identical sources.
curl --request POST \
--url https://api.textsetu.com/api/v1/orgs/{orgId}/translation-memories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": false,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
}
}
'import requests
url = "https://api.textsetu.com/api/v1/orgs/{orgId}/translation-memories"
payload = {
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": False,
"approvalBypassAdmins": False,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
}
}
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: 'Marketing TM',
description: 'Reusable copy for marketing surfaces.',
sourceLanguage: 'en',
scope: 'all',
approvalRequired: false,
approvalBypassAdmins: false,
minMatchPercentage: 75,
penalties: {caseMismatch: 1, whitespace: 1, punctuation: 2}
})
};
fetch('https://api.textsetu.com/api/v1/orgs/{orgId}/translation-memories', 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}/translation-memories",
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' => 'Marketing TM',
'description' => 'Reusable copy for marketing surfaces.',
'sourceLanguage' => 'en',
'scope' => 'all',
'approvalRequired' => false,
'approvalBypassAdmins' => false,
'minMatchPercentage' => 75,
'penalties' => [
'caseMismatch' => 1,
'whitespace' => 1,
'punctuation' => 2
]
]),
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}/translation-memories"
payload := strings.NewReader("{\n \"name\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\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.textsetu.com/api/v1/orgs/{orgId}/translation-memories")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.textsetu.com/api/v1/orgs/{orgId}/translation-memories")
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\": \"Marketing TM\",\n \"description\": \"Reusable copy for marketing surfaces.\",\n \"sourceLanguage\": \"en\",\n \"scope\": \"all\",\n \"approvalRequired\": false,\n \"approvalBypassAdmins\": false,\n \"minMatchPercentage\": 75,\n \"penalties\": {\n \"caseMismatch\": 1,\n \"whitespace\": 1,\n \"punctuation\": 2\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"translationMemory": {
"id": "tm_3f2a9b1c",
"orgId": "org_5d4c3b2a",
"name": "Marketing TM",
"description": "Reusable copy for marketing surfaces.",
"sourceLanguage": "en",
"scope": "all",
"approvalRequired": false,
"approvalBypassAdmins": false,
"minMatchPercentage": 75,
"penalties": {
"caseMismatch": 1,
"whitespace": 1,
"punctuation": 2
},
"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 name for the translation memory.
1 - 100"Marketing TM"
Optional free-text description.
500"Reusable copy for marketing surfaces."
BCP-47 code of the TM's source language — matches are keyed off it.
10"en"
all = every project may leverage it; selected = only assigned projects. Defaults to all.
all, selected "all"
When true, entry translations by non-approvers are stored as proposals.
false
When true, org admins' edits are auto-approved even while approval is required.
false
Minimum match % below which fuzzy matches are not surfaced (floor 40, default 75).
40 <= x <= 10075
Per-difference score deductions applied to near-exact matches.
Show child attributes
Show child attributes

