v2
latestOpenAPI 3.0.02026-08-07103189636.5 KBDownload multiple translated files
Download ZIP archive with the requested translated files.
This endpoint allows you to specify multiple files and locales in the request body (limit is 500 file-locale combinations) to select which files and languages you want to download.
It is important to check the HTTP response status code. If Smartling finds and returns the file normally, you will receive a 200 SUCCESS response. If you receive a 204 response, no files were included because the requested files were not fully published and fileFilter was set to PUBLISHED_FILES_ONLY. If you receive any other response status code than 200, the requested files will not be part of the response.
When you upload a UTF-16 character encoded file, then /file/get requests for that file will have a character encoding of UTF-16. All other uploaded files will return with a character encoding of UTF-8.
You can always use the content-type header in the response of a file/get request to determine the character encoding.
Example:
curl -X POST \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"files": [
{
"fileUri": "yourfile.json",
"localeIds": ["de-DE", "fr-FR"]
},
{
"fileUri": "anotherfile.xml",
"localeIds": ["es-ES"]
}
],
"retrievalType": "published",
"includeOriginalStrings": true,
"fileNameMode": "LOCALE_LAST",
"localeMode": "LOCALE_IN_PATH",
"zipFileName": "translations.zip",
"fileFilter": "ALL_FILES"
}' \
'https://api.smartling.com/files-api/v2/projects/{projectId}/files/zip'
Path parameters
A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.
Request body
Response
OK