---
title: "Get Template Files as Data Uri"
method: GET
path: "/template/files_as_data_uri/{template_id}"
tags: ["Template"]
---

# Get Template Files as Data Uri

`GET /template/files_as_data_uri/{template_id}`

Obtain a copy of the current documents specified by the `template_id` parameter. Returns a JSON object with a `data_uri` representing the base64 encoded file (PDFs only).

If the files are currently being prepared, a status code of `409` will be returned instead. In this case please wait for the `template_created` callback event.

## Path parameters

- `template_id` string, required

## Response `200`

successful operation

- FileResponseDataUri
  - `data_uri` string, required — File as base64 encoded string.

## Other responses

- `4XX` — failed_operation

## Changes

- **2024-09-04** `8d8f5e2e9401` — 1 info
  - the response property `data_uri` became required for the status `200`
- **2024-08-22** `e9603b26e6f8` — 1 breaking
  - the response property `data_uri` became optional for the status `200`

[Change history](https://skmtc.dev/hellosign/apis/dropbox-sign-api/changes/template/files_as_data_uri/:template_id/get.md)

---

[API](https://skmtc.dev/hellosign/apis/dropbox-sign-api.md) · [All operations](https://skmtc.dev/hellosign/apis/dropbox-sign-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hellosign/dropbox-sign-api/revisions/2998c4df4efd/schema)
