Skip to main content
GET
/
v1
/
fileTranslations
/
{uid}
/
{actionType}
/
{language}
Action result
curl --request GET \
  --url https://eu.phrase.com/smt/api/v1/fileTranslations/{uid}/{actionType}/{language} \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>'
"--Boundary_1_1453803947_1691603987728\nContent-Type: application/octet-stream\nContent-Disposition: form-data; name=\"file\"; filename=\"test.txt\"\nPřeložený text\n\n--Boundary_1_1453803947_1691603987728\nContent-Type: application/json\nContent-Disposition: form-data; name=\"metadata\"\n\n{\"sourceLang\":{\"code\":\"en\"},\"targetLangs\":[{\"code\":\"cs\"}],\"actionTypes\":[\"MT_GENERIC_PRETRANSLATE\"],\"callbackUrl\":\"https://your-server.com/send/data/here\"}\n--Boundary_1_1453803947_1691603987728--\n"

Authorizations

Authorization
string
header
required

Provide Authorization header with token obtained through Login operation.

Headers

Accept
string
required

Media type which caller expects as a response.

Path Parameters

uid
string
required

UID of the operation. See File translations endpoint.

actionType
enum<string>
required

File associated with the specified action type will be returned, if the action was completed.

Available options:
CONVERTER_IMPORT,
FILE_IMPORT,
MT_GENERIC_PRETRANSLATE,
QUALITY_ESTIMATION
Example:

"MT_GENERIC_PRETRANSLATE"

language
string
required

Requested language of the file. Please note different actions have different languages available.

Response

Action result has been successfully returned.

metadata
object
required
file
file
required

The file data.