curl --request GET \
--url https://eu.phrase.com/smt/api/v1/fileTranslations/{uid} \
--header 'Authorization: Bearer <token>'{
"uid": "random-uid",
"actions": [
{
"actionType": "MT_GENERIC_PRETRANSLATE",
"results": [
{
"id": "random-uid",
"sourceLang": "en",
"targetLang": "cs",
"status": "OK"
}
]
}
],
"metadata": {
"sourceLang": {
"code": "cs"
},
"targetLangs": [
{
"code": "cs"
}
],
"actionTypes": [
"MT_GENERIC_PRETRANSLATE"
],
"callbackUrl": "<string>",
"mtSettings": {
"usePhraseMTSettings": true,
"profile": {
"uid": "CFUki8ptanoz1WAIYoXSH4"
}
},
"transMemoriesConfig": [
{
"targetLang": {
"code": "cs"
},
"transMemories": [
{
"transMemory": {
"uid": "<string>"
},
"tmSourceLocale": {
"code": "cs"
},
"tmTargetLocale": {
"code": "cs"
}
}
]
}
]
}
}Allows the fetching of metadata from the processing file. The completed file can be downloaded using the File download endpoint.
curl --request GET \
--url https://eu.phrase.com/smt/api/v1/fileTranslations/{uid} \
--header 'Authorization: Bearer <token>'{
"uid": "random-uid",
"actions": [
{
"actionType": "MT_GENERIC_PRETRANSLATE",
"results": [
{
"id": "random-uid",
"sourceLang": "en",
"targetLang": "cs",
"status": "OK"
}
]
}
],
"metadata": {
"sourceLang": {
"code": "cs"
},
"targetLangs": [
{
"code": "cs"
}
],
"actionTypes": [
"MT_GENERIC_PRETRANSLATE"
],
"callbackUrl": "<string>",
"mtSettings": {
"usePhraseMTSettings": true,
"profile": {
"uid": "CFUki8ptanoz1WAIYoXSH4"
}
},
"transMemoriesConfig": [
{
"targetLang": {
"code": "cs"
},
"transMemories": [
{
"transMemory": {
"uid": "<string>"
},
"tmSourceLocale": {
"code": "cs"
},
"tmTargetLocale": {
"code": "cs"
}
}
]
}
]
}
}UID of the operation. See File translations endpoint.
Returns metadata of previously created translation request by requests unique identifier.
UID of the operation. UID can be used to query the result.
"random-uid"
1Show child attributes
CONVERTER_IMPORT, FILE_IMPORT, MT_GENERIC_PRETRANSLATE, QUALITY_ESTIMATION "MT_GENERIC_PRETRANSLATE"
Show child attributes
Show child attributes
Language code, using a two-letter language code from ISO 639-1, e.g., cs. Optionally, a region subtag based on a two-letter country code from ISO 3166-1 alpha-2, e.g., cs_cz, or a three-digit code from UN M.49, e.g., es_419, separated by an underscore. Both the two-letter language code and the two-letter country code need to be lower case.
Note that the Phrase Language AI setup dictates whether the region subtag is optional or not. If the only models deployed to a profile explicitly specify or are customized with a target locale, then a region subtag is mandatory.
"cs"
1Show child attributes
Language code, using a two-letter language code from ISO 639-1, e.g., cs. Optionally, a region subtag based on a two-letter country code from ISO 3166-1 alpha-2, e.g., cs_cz, or a three-digit code from UN M.49, e.g., es_419, separated by an underscore. Both the two-letter language code and the two-letter country code need to be lower case.
Note that the Phrase Language AI setup dictates whether the region subtag is optional or not. If the only models deployed to a profile explicitly specify or are customized with a target locale, then a region subtag is mandatory.
"cs"
1CONVERTER_IMPORT, FILE_IMPORT, MT_GENERIC_PRETRANSLATE, QUALITY_ESTIMATION Show child attributes
Show child attributes
Show child attributes
Language code, using a two-letter language code from ISO 639-1, e.g., cs. Optionally, a region subtag based on a two-letter country code from ISO 3166-1 alpha-2, e.g., cs_cz, or a three-digit code from UN M.49, e.g., es_419, separated by an underscore. Both the two-letter language code and the two-letter country code need to be lower case.
Note that the Phrase Language AI setup dictates whether the region subtag is optional or not. If the only models deployed to a profile explicitly specify or are customized with a target locale, then a region subtag is mandatory.
"cs"
Show child attributes
Show child attributes
Language code, using a two-letter language code from ISO 639-1, e.g., cs. Optionally, a region subtag based on a two-letter country code from ISO 3166-1 alpha-2, e.g., cs_cz, or a three-digit code from UN M.49, e.g., es_419, separated by an underscore. Both the two-letter language code and the two-letter country code need to be lower case.
Note that the Phrase Language AI setup dictates whether the region subtag is optional or not. If the only models deployed to a profile explicitly specify or are customized with a target locale, then a region subtag is mandatory.
"cs"
Show child attributes
Language code, using a two-letter language code from ISO 639-1, e.g., cs. Optionally, a region subtag based on a two-letter country code from ISO 3166-1 alpha-2, e.g., cs_cz, or a three-digit code from UN M.49, e.g., es_419, separated by an underscore. Both the two-letter language code and the two-letter country code need to be lower case.
Note that the Phrase Language AI setup dictates whether the region subtag is optional or not. If the only models deployed to a profile explicitly specify or are customized with a target locale, then a region subtag is mandatory.
"cs"
Was this page helpful?