> ## Documentation Index
> Fetch the complete documentation index at: https://docsautomator.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List template placeholders

> Extracts and returns all placeholders from the automation's Google Doc template. Placeholders are grouped into `main` (top-level) and line item groups (`line_items_1`, `line_items_2`, etc.).



## OpenAPI

````yaml /openapi.json get /listPlaceholdersV2
openapi: 3.1.0
info:
  title: DocsAutomator API
  version: '2.0'
  description: >-
    REST API for programmatic document generation, automation management, and
    e-signature workflows.
  contact:
    name: DocsAutomator Support
    email: support@docsautomator.co
    url: https://docsautomator.co
servers:
  - url: https://api.docsautomator.co
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Documents
    description: Create documents and manage async jobs
  - name: Automations
    description: CRUD operations for automations
  - name: Templates
    description: Template placeholders and duplication
  - name: E-Signatures
    description: Manage signing sessions, links, and audit trails
  - name: Email
    description: Test email delivery
paths:
  /listPlaceholdersV2:
    get:
      tags:
        - Templates
      summary: List template placeholders
      description: >-
        Extracts and returns all placeholders from the automation's Google Doc
        template. Placeholders are grouped into `main` (top-level) and line item
        groups (`line_items_1`, `line_items_2`, etc.).
      operationId: listPlaceholders
      parameters:
        - name: automationId
          in: query
          required: false
          schema:
            type: string
          description: >-
            The automation ID. The automation must have a template configured.
            Either `automationId` or `docId` is required.
        - name: docId
          in: query
          required: false
          schema:
            type: string
          description: Alternative to `automationId`.
      responses:
        '200':
          description: Placeholders extracted
          content:
            application/json:
              schema:
                type: object
                properties:
                  placeholders:
                    type: object
                    properties:
                      main:
                        type: array
                        items:
                          type: string
                        description: Top-level placeholder names.
                      line_items_1:
                        type: array
                        items:
                          type: string
                        description: Placeholders for the first line item group.
                      line_items_2:
                        type: array
                        items:
                          type: string
                        description: Placeholders for the second line item group.
                    additionalProperties:
                      type: array
                      items:
                        type: string
                example:
                  placeholders:
                    main:
                      - customer_name
                      - invoice_date
                      - total
                    line_items_1:
                      - description
                      - quantity
                      - rate
                      - amount
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Not found
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key from your workspace settings. Pass as `Authorization: Bearer
        <key>` or `X-API-Key: <key>`. Find it at
        [app.docsautomator.co/settings/workspace/api](https://app.docsautomator.co/settings/workspace/api).

````