Download Template

The download template endpoint allows you to download the actual template file.

Request

GET /v1/templates/{template_id}/content

Path Parameters

ParameterTypeDescription
template_idstringThe unique identifier of the template to download

Response

The response will be the template file in its original format (a Word document) with the appropriate Content-Type header.

Examples

const apiKey = "Your_API_Key";
const templateId = "template_123";

const response = await fetch(`https://templatedocs.io/api/v1/templates/${templateId}/content`, {
    headers: {
        "Authorization": `Bearer ${apiKey}`
    }
});
const blob = await response.blob();