---
title: "Extract fields from a template file"
method: POST
path: "/api/fields"
tags: ["Files"]
---

# Extract fields from a template file

`POST /api/fields`

Accepts a PDF, DOCX, or Markdown template file and returns information
about the fields it contains. Requires `admin`, `developer`, or the
`template_parse` permission.

## Response `200`

Field information in the requested format.

- object
  - `fields` unknown[]
    - unknown
  - `default_values` object
  - `locations` object
  - `types` object

## Other responses

- `400` — Bad request.
- `403` — Access denied.

---

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