---
title: "Read the draft template in full"
method: GET
path: "/v1/imports/{id}/draft"
tags: ["Imports"]
---

# Read the draft template in full

`GET /v1/imports/{id}/draft`

## Request

- Base URL: `https://api.galleyrender.com`
- URL: `https://api.galleyrender.com/v1/imports/{id}/draft`
- Auth: HTTP bearer

The template an import made, whole: source, schema, example, strings and options, for a caller who wants to edit it before saving or to create the template by hand. It holds the words of the document, so it is served only to the account that made the import, and only once the import is `ready` or `saved`.

## Path parameters

- `id` string, required

## Response `200`

The draft.

- ImportDraft
  - `object` 'import_draft', required
  - `import_id` string, required
  - `name` string
  - `description` string
  - `source` string, required: The template: one self-contained HTML document with Liquid expressions.
  - `schema` object: JSON Schema for the data it takes.
  - `example` unknown
  - `strings` object: The template's text, by language.
  - `options` object
  - `expected_pages` integer
  - `fonts` string[]

## Other responses

- `401`: `authentication_error`.
- `404`: `not_found`.
- `409`: `conflict` — no draft yet (`details.code: "import_no_draft"`).
- `503`: `import_disabled`.

---

[API](https://skmtc.dev/galleyrender/apis/galley-render-api.md) · [All operations](https://skmtc.dev/galleyrender/apis/galley-render-api/llms.txt) · [OpenAPI document](https://skmtc.dev/galleyrender/apis/galley-render-api/revisions/a85d68468cd2?raw)
