curl --request POST \
--url https://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": [
{
"clients": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"createdByUsers": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"createdFrom": "2023-11-07T05:31:56Z",
"createdTo": "2023-11-07T05:31:56Z",
"domains": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"filename": "<string>",
"keyName": "<string>",
"lastModifiedFrom": "2023-11-07T05:31:56Z",
"lastModifiedTo": "2023-11-07T05:31:56Z",
"modifiedByUsers": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"projects": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"subdomains": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
]
}
],
"sourceMatchCase": true,
"sourceQuery": "<string>",
"sourceUseRegex": true,
"targetLangs": [
"<string>"
],
"targetMatchCase": true,
"targetQuery": "<string>",
"targetUseRegex": true,
"tuId": "<string>"
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent"
payload = {
"filters": [
{
"clients": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"createdByUsers": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"createdFrom": "2023-11-07T05:31:56Z",
"createdTo": "2023-11-07T05:31:56Z",
"domains": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"filename": "<string>",
"keyName": "<string>",
"lastModifiedFrom": "2023-11-07T05:31:56Z",
"lastModifiedTo": "2023-11-07T05:31:56Z",
"modifiedByUsers": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"projects": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"subdomains": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }]
}
],
"sourceMatchCase": True,
"sourceQuery": "<string>",
"sourceUseRegex": True,
"targetLangs": ["<string>"],
"targetMatchCase": True,
"targetQuery": "<string>",
"targetUseRegex": True,
"tuId": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: [
{
clients: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
createdByUsers: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
createdFrom: '2023-11-07T05:31:56Z',
createdTo: '2023-11-07T05:31:56Z',
domains: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
filename: '<string>',
keyName: '<string>',
lastModifiedFrom: '2023-11-07T05:31:56Z',
lastModifiedTo: '2023-11-07T05:31:56Z',
modifiedByUsers: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
projects: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
subdomains: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}]
}
],
sourceMatchCase: true,
sourceQuery: '<string>',
sourceUseRegex: true,
targetLangs: ['<string>'],
targetMatchCase: true,
targetQuery: '<string>',
targetUseRegex: true,
tuId: '<string>'
})
};
fetch('https://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent', 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://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent",
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([
'filters' => [
[
'clients' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'createdByUsers' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'createdFrom' => '2023-11-07T05:31:56Z',
'createdTo' => '2023-11-07T05:31:56Z',
'domains' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'filename' => '<string>',
'keyName' => '<string>',
'lastModifiedFrom' => '2023-11-07T05:31:56Z',
'lastModifiedTo' => '2023-11-07T05:31:56Z',
'modifiedByUsers' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'projects' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'subdomains' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
]
]
],
'sourceMatchCase' => true,
'sourceQuery' => '<string>',
'sourceUseRegex' => true,
'targetLangs' => [
'<string>'
],
'targetMatchCase' => true,
'targetQuery' => '<string>',
'targetUseRegex' => true,
'tuId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent"
payload := strings.NewReader("{\n \"filters\": [\n {\n \"clients\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdFrom\": \"2023-11-07T05:31:56Z\",\n \"createdTo\": \"2023-11-07T05:31:56Z\",\n \"domains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"filename\": \"<string>\",\n \"keyName\": \"<string>\",\n \"lastModifiedFrom\": \"2023-11-07T05:31:56Z\",\n \"lastModifiedTo\": \"2023-11-07T05:31:56Z\",\n \"modifiedByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"projects\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"subdomains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ]\n }\n ],\n \"sourceMatchCase\": true,\n \"sourceQuery\": \"<string>\",\n \"sourceUseRegex\": true,\n \"targetLangs\": [\n \"<string>\"\n ],\n \"targetMatchCase\": true,\n \"targetQuery\": \"<string>\",\n \"targetUseRegex\": true,\n \"tuId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": [\n {\n \"clients\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdFrom\": \"2023-11-07T05:31:56Z\",\n \"createdTo\": \"2023-11-07T05:31:56Z\",\n \"domains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"filename\": \"<string>\",\n \"keyName\": \"<string>\",\n \"lastModifiedFrom\": \"2023-11-07T05:31:56Z\",\n \"lastModifiedTo\": \"2023-11-07T05:31:56Z\",\n \"modifiedByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"projects\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"subdomains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ]\n }\n ],\n \"sourceMatchCase\": true,\n \"sourceQuery\": \"<string>\",\n \"sourceUseRegex\": true,\n \"targetLangs\": [\n \"<string>\"\n ],\n \"targetMatchCase\": true,\n \"targetQuery\": \"<string>\",\n \"targetUseRegex\": true,\n \"tuId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": [\n {\n \"clients\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdFrom\": \"2023-11-07T05:31:56Z\",\n \"createdTo\": \"2023-11-07T05:31:56Z\",\n \"domains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"filename\": \"<string>\",\n \"keyName\": \"<string>\",\n \"lastModifiedFrom\": \"2023-11-07T05:31:56Z\",\n \"lastModifiedTo\": \"2023-11-07T05:31:56Z\",\n \"modifiedByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"projects\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"subdomains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ]\n }\n ],\n \"sourceMatchCase\": true,\n \"sourceQuery\": \"<string>\",\n \"sourceUseRegex\": true,\n \"targetLangs\": [\n \"<string>\"\n ],\n \"targetMatchCase\": true,\n \"targetQuery\": \"<string>\",\n \"targetUseRegex\": true,\n \"tuId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodySearch TM content
Overview
- Searches TM content within a single Translation Memory (TM), matching against source and/or target segment text, with optional metadata filters.
Interpreting found results
- Searching a TARGET locale → response contains the matching target TUV plus the source TUV for that TU.
- Searching a SOURCE locale → response contains the full TU (matching source TUV and all target TUVs). One TU counts as a single found item, but the UI should render N
<srcTUV, targetTUV>pairs.
Query modes
- Exact query (plain text, no wildcard markers, regex disabled): if
sourceOperator|targetOperator=IS|IS_NOT(exact mode) the whole field must (not) match exactly; ifCONTAINS|DOES_NOT_CONTAIN(contains mode) the text may appear anywhere within the field. - Wildcard query (
sourceUseRegex|targetUseRegex=false): uses?(single character) and*(multi-character) placeholders.*is only supported as a terminal suffix (end of word/token) — e.g.trans*matchestranslation/transfer;tr?nslatematchestranslate/trenslate. - Regex query (
sourceUseRegex|targetUseRegex=true):REGEXPsearches for substrings (not whole-word by default). Elasticsearch 8.14.3 / Lucene 9.10 supports\w,\W,\d,\D,\s,\S; word boundaries\b/\Bare not supported. Prefer wildcard queries for word-based matching.
Metadata filters
filtersaccepts multiple metadata filter criteria (projects, domain, subdomains, …); AND logic is applied across them.
Defaults & limitations
- Whitespace is normalized; the wildcard processor can filter out Phrase tags.
- Even wildcard results are post-filtered to enforce correct word order.
- A single query is capped at 10,000 matches. If more than 10,000 segments match, only the first 10,000 are returned and
totalElementswill not exceed that cap.
Execution & performance notes
REGEXPuses non-analyzed normalized fields; additional post-validation ensures fidelity to the original query text.- Matching TUVs are collected until
batchSizeis reached; only then are sibling TUVs from the same TU loaded. - For pagination (changing
index), ES results are re-processed to keeptotalElementsaccurate.
curl --request POST \
--url https://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": [
{
"clients": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"createdByUsers": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"createdFrom": "2023-11-07T05:31:56Z",
"createdTo": "2023-11-07T05:31:56Z",
"domains": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"filename": "<string>",
"keyName": "<string>",
"lastModifiedFrom": "2023-11-07T05:31:56Z",
"lastModifiedTo": "2023-11-07T05:31:56Z",
"modifiedByUsers": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"projects": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"subdomains": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
]
}
],
"sourceMatchCase": true,
"sourceQuery": "<string>",
"sourceUseRegex": true,
"targetLangs": [
"<string>"
],
"targetMatchCase": true,
"targetQuery": "<string>",
"targetUseRegex": true,
"tuId": "<string>"
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent"
payload = {
"filters": [
{
"clients": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"createdByUsers": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"createdFrom": "2023-11-07T05:31:56Z",
"createdTo": "2023-11-07T05:31:56Z",
"domains": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"filename": "<string>",
"keyName": "<string>",
"lastModifiedFrom": "2023-11-07T05:31:56Z",
"lastModifiedTo": "2023-11-07T05:31:56Z",
"modifiedByUsers": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"projects": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"subdomains": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }]
}
],
"sourceMatchCase": True,
"sourceQuery": "<string>",
"sourceUseRegex": True,
"targetLangs": ["<string>"],
"targetMatchCase": True,
"targetQuery": "<string>",
"targetUseRegex": True,
"tuId": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: [
{
clients: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
createdByUsers: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
createdFrom: '2023-11-07T05:31:56Z',
createdTo: '2023-11-07T05:31:56Z',
domains: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
filename: '<string>',
keyName: '<string>',
lastModifiedFrom: '2023-11-07T05:31:56Z',
lastModifiedTo: '2023-11-07T05:31:56Z',
modifiedByUsers: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
projects: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
subdomains: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}]
}
],
sourceMatchCase: true,
sourceQuery: '<string>',
sourceUseRegex: true,
targetLangs: ['<string>'],
targetMatchCase: true,
targetQuery: '<string>',
targetUseRegex: true,
tuId: '<string>'
})
};
fetch('https://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent', 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://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent",
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([
'filters' => [
[
'clients' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'createdByUsers' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'createdFrom' => '2023-11-07T05:31:56Z',
'createdTo' => '2023-11-07T05:31:56Z',
'domains' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'filename' => '<string>',
'keyName' => '<string>',
'lastModifiedFrom' => '2023-11-07T05:31:56Z',
'lastModifiedTo' => '2023-11-07T05:31:56Z',
'modifiedByUsers' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'projects' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'subdomains' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
]
]
],
'sourceMatchCase' => true,
'sourceQuery' => '<string>',
'sourceUseRegex' => true,
'targetLangs' => [
'<string>'
],
'targetMatchCase' => true,
'targetQuery' => '<string>',
'targetUseRegex' => true,
'tuId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent"
payload := strings.NewReader("{\n \"filters\": [\n {\n \"clients\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdFrom\": \"2023-11-07T05:31:56Z\",\n \"createdTo\": \"2023-11-07T05:31:56Z\",\n \"domains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"filename\": \"<string>\",\n \"keyName\": \"<string>\",\n \"lastModifiedFrom\": \"2023-11-07T05:31:56Z\",\n \"lastModifiedTo\": \"2023-11-07T05:31:56Z\",\n \"modifiedByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"projects\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"subdomains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ]\n }\n ],\n \"sourceMatchCase\": true,\n \"sourceQuery\": \"<string>\",\n \"sourceUseRegex\": true,\n \"targetLangs\": [\n \"<string>\"\n ],\n \"targetMatchCase\": true,\n \"targetQuery\": \"<string>\",\n \"targetUseRegex\": true,\n \"tuId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": [\n {\n \"clients\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdFrom\": \"2023-11-07T05:31:56Z\",\n \"createdTo\": \"2023-11-07T05:31:56Z\",\n \"domains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"filename\": \"<string>\",\n \"keyName\": \"<string>\",\n \"lastModifiedFrom\": \"2023-11-07T05:31:56Z\",\n \"lastModifiedTo\": \"2023-11-07T05:31:56Z\",\n \"modifiedByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"projects\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"subdomains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ]\n }\n ],\n \"sourceMatchCase\": true,\n \"sourceQuery\": \"<string>\",\n \"sourceUseRegex\": true,\n \"targetLangs\": [\n \"<string>\"\n ],\n \"targetMatchCase\": true,\n \"targetQuery\": \"<string>\",\n \"targetUseRegex\": true,\n \"tuId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/transMemories/{transMemoryUid}/searchContent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": [\n {\n \"clients\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"createdFrom\": \"2023-11-07T05:31:56Z\",\n \"createdTo\": \"2023-11-07T05:31:56Z\",\n \"domains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"filename\": \"<string>\",\n \"keyName\": \"<string>\",\n \"lastModifiedFrom\": \"2023-11-07T05:31:56Z\",\n \"lastModifiedTo\": \"2023-11-07T05:31:56Z\",\n \"modifiedByUsers\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"projects\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"subdomains\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ]\n }\n ],\n \"sourceMatchCase\": true,\n \"sourceQuery\": \"<string>\",\n \"sourceUseRegex\": true,\n \"targetLangs\": [\n \"<string>\"\n ],\n \"targetMatchCase\": true,\n \"targetQuery\": \"<string>\",\n \"targetUseRegex\": true,\n \"tuId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Get a token from auth/login endpoint and then pass it in the Authorization HTTP header in every subsequent API call. For more information visit our help center.
Path Parameters
Translation memory UID
Query Parameters
Start index for pagination (default: 0)
x >= 0Batch size, accepts values between 1 and 100, default 50
0 <= x <= 100Body
Search TM content request payload
Filter for related metadata (e.g. project, client, ...). It's possible to provide multiple filter criteria of same type (AND logic applied)
Show child attributes
Show child attributes
If true, sourceQuery will be considered case-sensitive
Matching operator for sourceQuery. Default: IS
IS, IS_NOT, CONTAINS, DOES_NOT_CONTAIN Query string for source part of segment. Provide either sourceQuery or targetQuery (not both)
If true, sourceQuery will be considered to be regular expression
Target languages/locales of the given TM to search in. Example: en_us
If true, targetQuery will be considered case-sensitive
Matching operator for targetQuery. Default: IS
IS, IS_NOT, CONTAINS, DOES_NOT_CONTAIN Query string for target part of segment. Provide either sourceQuery or targetQuery (not both)
If true, targetQuery will be considered to be regular expression
ID of the translation unit
Response
OK
Was this page helpful?