---
title: "List Document Templates"
method: POST
path: "/document_generation/templates-list"
tags: ["Document AI — DMS"]
---

# List Document Templates

`POST /document_generation/templates-list`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/document_generation/templates-list`
- Auth: HTTP bearer

List the active document generation templates of the account with name, category, page layout and variables_schema.

## Request body

- object
  - `category` string: Category filter (e.g. invoices, contracts, reports).
  - `limit` integer: Maximum number of templates to return (1-200).
  - `offset` integer: Pagination offset (0-based, default 0).
  - `include_inactive` boolean: Corporate plan and above: Also list deactivated templates.
  - `search` string: Corporate plan and above: Search in name, template_id and description.

## Response `200`

Success

- object
  - `_billing` object
    - `credits` object
      - `total_monthly` integer
      - `remaining_monthly` integer
      - `credit_source` string
      - `api_handler` string
      - `tier_info` object
        - `tier` string
        - `name` string
        - `initial_credits` integer
        - `price_monthly` integer
        - `price_overage_per_credit` integer
      - `notice` string
      - `renewal_days` integer
      - `subscription_status` string
    - `job` object
      - `api_job_name` string
      - `app` string
      - `action` string
      - `default_credits` integer
      - `credits_billed` integer
      - `pricing` object
        - `credits_per_unit` integer
        - `unit` string
        - `unit_count` integer
        - `addons` string
    - `requests` object
      - `limits` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `current` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `remaining` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `next_possible_request_seconds` integer
    - `remaining_credits` integer
    - `total_monthly` integer
    - `account_id` integer
    - `plan` object
      - `tier` string
      - `name` string
    - `credits_billed` integer
  - `limit` integer
  - `offset` integer
  - `processing_time` string
  - `status` string
  - `templates` unknown[]
    - unknown
  - `total` integer

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
