tanqoryExtTranslationJob
- Query
- Markets, tax and languages
A translation job of the store, or null.
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
id | ID! | Required |
Returns
TanqoryExtTranslationJob A translation export, import or auto-translate run, queued and run by the store's worker: the page that started it can be left and opened again to follow it.
| Field | Type | Description |
|---|---|---|
createdAt | DateTime! | |
credits | Float! | AI credits billed so far (auto-translate). |
failed | Int! | Rows or resources that could not be saved (the first 200 are in |
file | String | The CSV file of a COMPLETED export (no byte-order mark); null otherwise. |
fileName | String | The file's name, e.g. translations-fr.csv (exports only). |
finishedAt | DateTime | |
id | ID! | |
kind | TanqoryExtTranslationJobKind! | |
locales | [String!]! | The languages it covers (an import: empty until it runs). |
processed | Int! | |
rowErrors | [TanqoryExtTranslationJobRowError!]! | |
skipped | Int! | Rows or fields left as they were: empty translated content, the same as the saved translation, a translation kept without overwrite, a translation added or edited by hand. |
status | TanqoryExtTranslationJobStatus! | |
stopReason | String | Why a PAUSED or FAILED job stopped: INSUFFICIENT_CREDITS, SPEND_LIMIT_REACHED, AI_UNAVAILABLE, ACCESS_DENIED, INVALID_FILE or INTERNAL. |
total | Int! | |
updatedAt | DateTime! | |
written | Int! | Translations written (an export: rows in the file). |
Example request
A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.
Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
-H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
--data '{"query":"query TanqoryExtTranslationJob($id: ID!) {\n tanqoryExtTranslationJob(id: $id) {\n createdAt\n credits\n failed\n file\n fileName\n finishedAt\n id\n kind\n locales\n processed\n }\n}","variables":{"id":"gid://tanqory/Type/id"}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtTranslationJob(\$id: ID!) {
tanqoryExtTranslationJob(id: \$id) {
createdAt
credits
failed
file
fileName
finishedAt
id
kind
locales
processed
}
}`;
const variables = {
"id": "gid://tanqory/Type/id"
};
const res = await fetch(`https://api.tanqory.com/admin/2026-10/stores/${process.env.STORE_ID}/graphql`, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.TANQORY_ACCESS_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtTranslationJob($id: ID!) {
tanqoryExtTranslationJob(id: $id) {
createdAt
credits
failed
file
fileName
finishedAt
id
kind
locales
processed
}
}"""
variables = json.loads("""{
"id": "gid://tanqory/Type/id"
}""")
req = urllib.request.Request(
"https://api.tanqory.com/admin/2026-10/stores/" + os.environ["STORE_ID"] + "/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"Authorization": "Bearer " + os.environ["TANQORY_ACCESS_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))