Skip to content

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-templates

Authentication Headers

Same as Create Translation Task. GET has no body, so signature is MD5(timestamp + "" + appSecret).

Query Parameters

ParamTypeRequiredDescription
typestringYesTemplate type, see table below

type Values

ValueDescriptionCorresponding UI
project_stringsTemplates for project-level strings (the full text table)Config → Export Templates → Full Text tab
task_stringsTemplates for task-level stringsConfig → 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

FieldTypeDescription
typestringEchoes the request type
templatesarrayAll templates of this type (empty array if none)
templates[].idstringTemplate unique ID; usable as template_id for Export INI
templates[].namestringTemplate display name
templates[].is_defaultboolWhether this is the default template for the type (at most one per type)
templates[].formatstringExport format: csv / json / xlsx / ini / xliff / xml
templates[].modestringSingle combined file single / one file per language separate (only present when supported by format)
templates[].languagesstring[]Default target language codes selected by the template
templates[].field_orderarrayOrdered list of fields / languages; each item has type of field or language
templates[].created_atintCreated at (epoch ms)
templates[].updated_atintUpdated at (epoch ms)

Error Codes

codeDescription
400type missing or not in project_strings / task_strings
401Signature invalid / timestamp expired
403App Secret not configured
404appKey unknown
500Internal 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}"