> ## 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.

# Render a pleading to PDF

> Fills a pleading document and returns a PDF.



## OpenAPI

````yaml api-reference/pdfs.yaml post /pleadings/render
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:
  /pleadings/render:
    post:
      tags:
        - pleadings
      summary: Render a pleading to PDF
      description: Fills a pleading document and returns a PDF.
      operationId: renderDocument
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - documentID
                - caseID
                - filingName
                - filingParty
                - claimant
                - respondent
                - timestamp
                - fields
              properties:
                documentID:
                  type: string
                  description: Unique ID of the document template to fill.
                  minLength: 1
                  maxLength: 50
                  example: statementOfClaim
                caseID:
                  type: string
                  description: Unique ID of the related case.
                  minLength: 1
                  maxLength: 50
                  example: 2025-11-000123
                filingName:
                  type: string
                  description: Name of the person creating the filing.
                  minLength: 1
                  maxLength: 50
                  example: Alex Morgan
                filingParty:
                  type: string
                  description: Party of the person creating the filing.
                  minLength: 1
                  maxLength: 50
                  example: Claimant
                claimant:
                  type: string
                  description: The party initiating the claim.
                  minLength: 1
                  maxLength: 300
                  example: Acme Company
                respondent:
                  type: string
                  description: The party responding to the claim.
                  minLength: 1
                  maxLength: 300
                  example: Mike Smith
                timestamp:
                  type: string
                  format: date-time
                  description: When the document data was created or submitted (ISO 8601).
                  example: '2025-11-01T14:30:00Z'
                docketStamp:
                  type: string
                  description: >-
                    Optional stamp value applied to the first page to mark
                    docket number.
                  minLength: 1
                  maxLength: 5
                  example: '49'
                supersedesStamp:
                  type: string
                  description: >-
                    Optional stamp value applied to the first page to indicate a
                    superseding docket number.
                  minLength: 1
                  maxLength: 5
                  example: '48'
                fields:
                  type: object
                  description: Key-value map for template field replacements.
                  additionalProperties:
                    type: string
                  example:
                    incidentDate: '2025-10-20'
                    incidentLocation: 123 Main St, Springfield, NY 10001
                    claimAmount: $5,000
                    statement: >-
                      I declare under penalty of perjury that the foregoing is
                      true and correct.
      responses:
        '200':
          description: PDF successfully rendered.
          headers:
            Content-Type:
              schema:
                type: string
                example: application/pdf
              example: application/pdf
              description: The media type of the returned file.
            Content-Disposition:
              schema:
                type: string
                example: inline; filename="document.pdf"
              example: inline; filename="document.pdf"
              description: How the PDF should be displayed by the browser.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '404':
          description: Document template not found.
          content:
            text/plain:
              schema:
                type: string
                example: document not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: access token
      scheme: bearer
      bearerFormat: JWT

````