**Source URL:** https://limited.veevavault.dev/sitevault/vault-api/api-reference/24.1/documents/document-templates/download-document-template-file.md

# Download Document Template File



Download the file of a specific document template.

<Endpoint path="/api/{version}/objects/documents/templates/{template_name}/file" method="GET"></Endpoint>

## Headers {#headers}

<FieldTable>
| Name | Description |
| --- | --- |
| `Accept` | `application/json` (default) or `application/xml` For this request, the `Accept` header controls only the error response. On `SUCCESS`, the response is a file stream (download). |
</FieldTable>

## URI Path Parameters {#uri-path-parameters}

<FieldTable>
| Name | Description |
| --- | --- |
| `{template_name}` | The document template `name__v` field value. |
</FieldTable>

## Request {#request}

<CodeExample title="">
```
curl -X GET -H "Authorization: {SESSION_ID}" \
https://myvault.veevavault.com/api/v15.0/objects/documents/templates/claim_document_template__c/file

```
</CodeExample>

## Response {#response}

<CodeExample title="">
```
Content-Type: application/octet-stream;charset=UTF-8
Content-Disposition: attachment;filename="claim_document_template__c.pdf"

```
</CodeExample>

## Response Details {#response-details}

On `SUCCESS`, Vault retrieves the document template file.

The HTTP Response Header `Content-Type` is set to `application/octet-stream`. The HTTP Response Header `Content-Disposition` contains a filename component which can be used when naming the local file.
When retrieving templates with very small file size, the HTTP Response Header `Content-Length` is set to the size of the template file. Note that for template downloads of larger file sizes, the `Transfer-Encoding` method is set to `chunked` and the `Content-Length` is not displayed.



---

**Previous:** [Retrieve Document Template Attributes](/sitevault/vault-api/api-reference/24.1/documents/document-templates/retrieve-document-template-attributes)  
**Next:** [Create Single Document Template](/sitevault/vault-api/api-reference/24.1/documents/document-templates/create-single-document-template)