List Export Templates
List all export templates saved under the current project for a given type (sync response). Templates can be created and edited on the project's Config → Export Templates page, or managed through the sibling CRUD endpoints in this group.
The returned id is typically passed as the template_id parameter to the Export INI endpoint — the template's format / mode / languages / field_order drive the export.
Endpoint
GET {BASE_URL}/api/open/v1/export-templatesAuthentication 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, see table below |
type Values
| Value | Description | Corresponding UI |
|---|---|---|
project_strings | Templates for project-level strings (the full text table) | Config → Export Templates → Full Text tab |
task_strings | Templates for task-level strings | Config → Export Templates → Tasks tab |
Export templates for TM / Termbase are not exposed via the Open Platform yet.
Response
json
{
"success": true,
"code": 0,
"msg": "ok",
"trace_id": "...",
"data": {
"type": "project_strings",
"templates": [
{
"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 Reference
| Field | Type | Description |
|---|---|---|
type | string | Echoes the request type |
templates | array | All templates of this type (empty array if none) |
templates[].id | string | Template unique ID; usable as template_id for Export INI |
templates[].name | string | Template display name |
templates[].is_default | bool | Whether this is the default template for the type (at most one per type) |
templates[].format | string | Export format: csv / json / xlsx / ini / xliff / xml |
templates[].mode | string | Single combined file single / one file per language separate (only present when supported by format) |
templates[].languages | string[] | Default target language codes selected by the template |
templates[].field_order | array | Ordered list of fields / languages; each item has type of field or language |
templates[].created_at | int | Created at (epoch ms) |
templates[].updated_at | int | Updated at (epoch ms) |
Error Codes
| code | Description |
|---|---|
| 400 | type missing or not in project_strings / task_strings |
| 401 | Signature invalid / timestamp expired |
| 403 | App Secret not configured |
| 404 | appKey unknown |
| 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" \
--data-urlencode "type=project_strings" \
-H "X-Loxily-AppKey: ${APP_KEY}" \
-H "X-Loxily-Timestamp: ${TIMESTAMP}" \
-H "X-Loxily-Sign: ${SIGN}"