Templates

List Available Templates

Get Available Templates

Retrieves the list of available templates from the external conversion service, categorized by language.

Returns:

A JSON object where keys are language codes (e.g., 'en', 'zh') and values are lists of template names for that language (without the .docx extension).

Example cURL:

curl -X GET "/templates"

Example Response:

{
  "zh": [
    "templates",
    "英文通用",
    "论文",
    "论文-首行不缩进",
    "论文-标题加粗"
  ],
  "en": [
    "thesis",
    "templates",
    "short-fiction",
    "book2",
    "long-fiction",
    "book1",
    "article"
  ]
}
get/templates

Response

Successful Response

object required

Changes

No recorded changes to this endpoint across all 1 revision of this API.