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

# Generate Pdf

> Generate a PDF from proposal data.

**Required scope:** `read`

Returns the PDF file as binary response.

Note: Free tier users will see "Powered by Quikly.ai" branding.
Pro and Lifetime tiers get clean PDFs.



## OpenAPI

````yaml /openapi/openapi-external.json post /proposals/generate-pdf
openapi: 3.1.0
info:
  title: Quikly.ai External API
  version: 1.0.0
  description: >-
    REST API for external integrations with Quikly.ai. Authenticate using an API
    key passed in the X-API-Key header. Use these endpoints from n8n, Zapier,
    custom scripts, or any HTTP client.
servers: []
security:
  - ApiKeyAuth: []
tags:
  - name: Proposals
    description: Create, read, update, and manage client proposals.
  - name: Profile
    description: Read and update the authenticated user's profile.
  - name: Templates
    description: Manage reusable proposal templates.
  - name: AI Services
    description: >-
      AI-powered analysis: rate recommendations, brief analysis,
      differentiators.
  - name: Public API
  - name: Usage
    description: Query API usage and quota information.
  - name: Webhooks
    description: Manage webhook subscriptions for real-time events.
  - name: Agent
    description: Interact with the AI agent for automated workflows.
  - name: Lead Sessions
    description: Track and manage lead capture sessions.
paths:
  /proposals/generate-pdf:
    post:
      tags:
        - Proposals
      summary: Generate Pdf
      description: |-
        Generate a PDF from proposal data.

        **Required scope:** `read`

        Returns the PDF file as binary response.

        Note: Free tier users will see "Powered by Quikly.ai" branding.
        Pro and Lifetime tiers get clean PDFs.
      operationId: generate_pdf_api_external_v1_proposals_generate_pdf_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PDFRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PDFRequest:
      properties:
        requirements:
          items:
            type: object
          type: array
          title: Requirements
        settings:
          type: object
          title: Settings
        profile:
          type: object
          title: Profile
        config:
          type: object
          title: Config
        calculations:
          type: object
          title: Calculations
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
          default: en
      type: object
      required:
        - requirements
        - settings
        - profile
        - config
        - calculations
      title: PDFRequest
      description: Request to generate PDF from proposal data.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from Quikly.ai Settings → API Keys.
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````