---
title: "Get Template Configuration"
method: GET
path: "/api/manageTemplate/getTemplateConfig/{templateDir}"
tags: ["Manage Template"]
---

# Get Template Configuration

`GET /api/manageTemplate/getTemplateConfig/{templateDir}`

## Path parameters

- `templateDir` string, required

## Response `200`

Returned template configuration.

- TemplateConfigDto
  - `name` string, required — The name of the template
  - `id` string, required — The id of the template
  - `webgal-version` string, required — The webgal version of the template
  - `fonts` TemplateFontConfigDto[] — The font registrations of the template
    - `font-family` string, required — The font-family name
    - `url` string, required — The url of the font file
    - `type` 'truetype' | 'opentype' | 'woff' | 'woff2' | 'embedded-opentype' | 'svg', required — The font type used for @font-face format

## Other responses

- `404` — Template configuration not found.
- `500` — Internal server error.

## Changes

- **2023-10-20** `bbfe1dbc457f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/openwebgal/apis/webgal-terre-api/changes/api/manageTemplate/getTemplateConfig/:templateDir/get.md)

---

[API](https://skmtc.dev/openwebgal/apis/webgal-terre-api.md) · [All operations](https://skmtc.dev/openwebgal/apis/webgal-terre-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openwebgal/webgal-terre-api/revisions/2911d2db6a21/schema)
