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

# Fill a PDF from a template

> Fills a PDF using a specified template and placeholder values.



## OpenAPI

````yaml api-reference/pdfs.yaml post /templates/fill
openapi: 3.0.3
info:
  title: pdfs
  description: >-
    The PDFs service takes a stored PDF template and fills in placeholder fields
    with the values you give it. It then sends back the completed PDF for you to
    save, email, or use however you want.
  version: 1.0.0
servers:
  - url: https://pdfs.platform.arb.inc
security: []
tags:
  - name: /
  - name: markdown
  - name: pleadings
  - name: templates
paths:
  /templates/fill:
    post:
      tags:
        - templates
      summary: Fill a PDF from a template
      description: Fills a PDF using a specified template and placeholder values.
      operationId: postTemplatesFill
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - templateID
              properties:
                documentID:
                  type: string
                  description: Identifier of the document to fill.
                  example: statementOfClaim
                placeholders:
                  type: object
                  description: >-
                    Map of template placeholder names to their replacement
                    values.
                  additionalProperties:
                    type: string
                  example:
                    attempts_at_resolution: Attempt i made
                    claim_details: My claim details
      responses:
        '200':
          description: PDF successfully filled.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '404':
          description: Template not found.
          content:
            text/plain:
              schema:
                type: string
        '409':
          description: >-
            Unknown placeholders were provided that do not exist in the
            template.
          content:
            text/plain:
              schema:
                type: string
                example: 'unknown placeholders: customer_email, due_date'

````