curl --request GET \
--url https://api.tolk.every-day.io/v1/exports/{profileKey} \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tolk.every-day.io/v1/exports/{profileKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tolk.every-day.io/v1/exports/{profileKey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"data": {
"id": 123,
"type": "import",
"status": "queued",
"progress": {
"done": 123,
"total": 123
},
"result": {},
"error": {
"code": "<string>",
"message": "<string>"
},
"createdAt": "<string>",
"startedAt": "<string>",
"finishedAt": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Download an export
The export of a profile (GET /v1/project lists them) in the languages of locales (a comma list; default: the
languages of the profile, else every language of the project), with missing deciding what a missing
translation becomes (default: the choice of the profile). The answer is the file with its ETag; send that back
in If-None-Match (also weak, in a list, or *) and an unchanged export is a 304 without a body. A large
export that is not built yet is a 202 with a job: poll GET /v1/jobs/{jobId} until it succeeded and fetch the
export again.
curl --request GET \
--url https://api.tolk.every-day.io/v1/exports/{profileKey} \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tolk.every-day.io/v1/exports/{profileKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tolk.every-day.io/v1/exports/{profileKey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"data": {
"id": 123,
"type": "import",
"status": "queued",
"progress": {
"done": 123,
"total": 123
},
"result": {},
"error": {
"code": "<string>",
"message": "<string>"
},
"createdAt": "<string>",
"startedAt": "<string>",
"finishedAt": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
1000What an export writes for a missing translation: fall back along the fallback chain, leave it empty, or omit it.
fallback, empty, omit Response
The file of the export, with the media type of its format (application/json, text/x-php, application/zip, …).
The response is of type file.