API Documentation
- Additional Workflow Step
- Analysis
- Async Request
- Authentication
- Bilingual File
- Business Unit
- Buyer
- Client
- Connector
- Conversations
- Cost Center
- Custom Fields
- Custom File Type
- Domain
- Due Date Scheme
- Email Template
- File
- Glossary
- Import settings
- Job
- Language AI
- Language Quality Assessment
- Machine Translation
- Machine Translation Settings
- Mapping
- Net Rate Scheme
- Notifications
- Price List
- Project
- Project Reference File
- Project Template
- Provider
- Quality Assurance
- Quote
- SCIM
- Segmentation Rules
- Service
- Spell Check
- SubDomain
- Supported Languages
- Term Base
- Translation
- Translation Memory
- POSTSearch job's translation memoriesdeprecated
- POSTSearch translation memory for segment by job
- GETList translation memories
- POSTCreate translation memory
- DELDelete translation memories (batch)
- GETDownload cleaned TM
- GETDownload export
- POSTExtract cleaned translation memory
- GETGet translation memory
- PUTEdit translation memory
- DELDelete translation memory
- GETExport translation memorydeprecated
- POSTSearch translation memory
- POSTImport segmentsdeprecated
- GETGet last task information
- GETGet translation memory metadata
- GETList related projects
- POSTSearch translation memory (sync)
- POSTInsert segment
- DELDelete all segments
- PUTEdit segment
- DELDelete both source and translation
- DELDelete segment of given language
- POSTAdd target language to translation memory
- POSTWildcard search
- POST
- User
- Vendor
- Webhook
- Workflow Step
- XML Assistant
Translation Memory
Search translation memory for segment by job
Returns at most maxSegments records with score >= scoreThreshold and at most maxSubsegments records which are subsegment, i.e. the source text is substring of the query text.
POST
/
api2
/
v1
/
projects
/
{projectUid}
/
jobs
/
{jobUid}
/
transMemories
/
searchSegment
Copy
Ask AI
curl --request POST \
--url https://cloud.memsource.com/web/api2/v1/projects/{projectUid}/jobs/{jobUid}/transMemories/searchSegment \
--header 'Content-Type: application/json' \
--data '{
"segment": "<string>",
"workflowLevel": 8,
"scoreThreshold": 0.505,
"previousSegment": "<string>",
"nextSegment": "<string>",
"contextKey": "<string>",
"maxSegments": 2,
"maxSubSegments": 2,
"tagMetadata": [
{
"id": "<string>",
"type": "<string>",
"content": "<string>",
"transAttributes": "<string>"
}
]
}'
Copy
Ask AI
{
"searchResults": [
{
"segmentId": "<string>",
"source": {
"id": "<string>",
"text": "<string>",
"lang": "<string>",
"rtl": true,
"modifiedAt": 123,
"createdAt": 123,
"modifiedBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"createdBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"filename": "<string>",
"project": {
"id": 123,
"uid": "<string>",
"name": "<string>"
},
"client": {
"id": 123,
"name": "<string>"
},
"domain": {
"id": 123,
"name": "<string>"
},
"subDomain": {
"id": 123,
"name": "<string>"
},
"tagMetadata": [
{
"id": "<string>",
"type": "<string>",
"content": "<string>",
"transAttributes": "<string>"
}
],
"previousSegment": "<string>",
"nextSegment": "<string>",
"key": "<string>"
},
"translations": [
{
"id": "<string>",
"text": "<string>",
"lang": "<string>",
"rtl": true,
"modifiedAt": 123,
"createdAt": 123,
"modifiedBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"createdBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"filename": "<string>",
"project": {
"id": 123,
"uid": "<string>",
"name": "<string>"
},
"client": {
"id": 123,
"name": "<string>"
},
"domain": {
"id": 123,
"name": "<string>"
},
"subDomain": {
"id": 123,
"name": "<string>"
},
"tagMetadata": [
{
"id": "<string>",
"type": "<string>",
"content": "<string>",
"transAttributes": "<string>"
}
],
"previousSegment": "<string>",
"nextSegment": "<string>",
"key": "<string>"
}
],
"transMemory": {
"uid": "<string>",
"id": "<string>",
"name": "<string>",
"reverse": true
},
"grossScore": 123,
"score": 123,
"subSegment": true
}
]
}
Body
application/json
Response
200
application/json
successful operation
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://cloud.memsource.com/web/api2/v1/projects/{projectUid}/jobs/{jobUid}/transMemories/searchSegment \
--header 'Content-Type: application/json' \
--data '{
"segment": "<string>",
"workflowLevel": 8,
"scoreThreshold": 0.505,
"previousSegment": "<string>",
"nextSegment": "<string>",
"contextKey": "<string>",
"maxSegments": 2,
"maxSubSegments": 2,
"tagMetadata": [
{
"id": "<string>",
"type": "<string>",
"content": "<string>",
"transAttributes": "<string>"
}
]
}'
Copy
Ask AI
{
"searchResults": [
{
"segmentId": "<string>",
"source": {
"id": "<string>",
"text": "<string>",
"lang": "<string>",
"rtl": true,
"modifiedAt": 123,
"createdAt": 123,
"modifiedBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"createdBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"filename": "<string>",
"project": {
"id": 123,
"uid": "<string>",
"name": "<string>"
},
"client": {
"id": 123,
"name": "<string>"
},
"domain": {
"id": 123,
"name": "<string>"
},
"subDomain": {
"id": 123,
"name": "<string>"
},
"tagMetadata": [
{
"id": "<string>",
"type": "<string>",
"content": "<string>",
"transAttributes": "<string>"
}
],
"previousSegment": "<string>",
"nextSegment": "<string>",
"key": "<string>"
},
"translations": [
{
"id": "<string>",
"text": "<string>",
"lang": "<string>",
"rtl": true,
"modifiedAt": 123,
"createdAt": 123,
"modifiedBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"createdBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"filename": "<string>",
"project": {
"id": 123,
"uid": "<string>",
"name": "<string>"
},
"client": {
"id": 123,
"name": "<string>"
},
"domain": {
"id": 123,
"name": "<string>"
},
"subDomain": {
"id": 123,
"name": "<string>"
},
"tagMetadata": [
{
"id": "<string>",
"type": "<string>",
"content": "<string>",
"transAttributes": "<string>"
}
],
"previousSegment": "<string>",
"nextSegment": "<string>",
"key": "<string>"
}
],
"transMemory": {
"uid": "<string>",
"id": "<string>",
"name": "<string>",
"reverse": true
},
"grossScore": 123,
"score": 123,
"subSegment": true
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.