Get Export Template
Fetch a single export template by (type, id) (sync response).
Typical usage: call List Export Templates first to obtain templates[].id, then call this endpoint to get its full content. If you already have the id saved, you can call this endpoint directly.
Endpoint
GET {BASE_URL}/api/open/v1/export-templates/getAuthentication Headers
Same as Create Translation Task. GET has no body, so signature is MD5(timestamp + "" + appSecret).
Query Parameters
| Param | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Template type: project_strings / task_strings. See List Export Templates |
id | string | Yes | Template ID (from templates[].id of the list endpoint) |
Response
json
{
"success": true,
"code": 0,
"msg": "ok",
"trace_id": "...",
"data": {
"type": "project_strings",
"template": {
"id": "tpl-9d3f1a2c",
"name": "Default INI export",
"is_default": true,
"format": "ini",
"mode": "single",
"languages": ["en", "ja", "ko"],
"field_order": [
{ "type": "language", "value": "en" },
{ "type": "language", "value": "ja" },
{ "type": "language", "value": "ko" }
],
"created_at": 1715520000000,
"updated_at": 1715520000000
}
}
}Field semantics are identical to those in List Export Templates; each element of the list endpoint's templates[] has the exact same shape as template here.
Error Codes
| code | Description |
|---|---|
| 400 | type missing or invalid / id missing |
| 401 | Signature invalid / timestamp expired |
| 403 | App Secret not configured |
| 404 | No template found for the given id (note: a wrong type also yields 404 — ids are not shared across types) |
| 500 | Internal error |
Example
bash
APP_KEY="5685414646a54423c891d87194d87f3f"
APP_SECRET="<your App Secret>"
BASE_URL="https://api.loxily.com"
TIMESTAMP=$(date +%s)
SIGN=$(printf '%s' "${TIMESTAMP}${APP_SECRET}" | md5)
curl -s -G "${BASE_URL}/api/open/v1/export-templates/get" \
--data-urlencode "type=project_strings" \
--data-urlencode "id=tpl-9d3f1a2c" \
-H "X-Loxily-AppKey: ${APP_KEY}" \
-H "X-Loxily-Timestamp: ${TIMESTAMP}" \
-H "X-Loxily-Sign: ${SIGN}"