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

# List estimate PDF attachments

> List estimate PDF attachments through the public API.

Attachments are returned in attachment order, including files added through the quote editor. Each attachment includes its id, URL, original filename, content type, and size in bytes. You need invoice-module read access.

Their pages appear after the quote pages in the [generated estimate PDF](/api/estimates/pdf). Quotes have no QR payment slip.


## OpenAPI

````yaml GET /v1/estimates/{estimateId}/pdf-attachments
openapi: 3.1.0
info:
  title: infinity.swiss Open API
  version: '1.0'
  summary: ''
servers:
  - url: https://api.infinity.swiss
security:
  - apiKey: []
paths:
  /v1/estimates/{estimateId}/pdf-attachments:
    parameters:
      - name: estimateId
        in: path
        required: true
        schema:
          type: string
    get:
      summary: List estimate PDF attachments
      description: >-
        Returns attachments in the order their pages appear in the generated
        estimate PDF. Requires invoice-module read access.
      operationId: list-estimate-pdf-attachments-v1
      responses:
        '200':
          description: The estimate's PDF attachments.
          content:
            application/json:
              schema:
                type: object
                required:
                  - attachments
                properties:
                  attachments:
                    type: array
                    items:
                      $ref: '#/components/schemas/InvoicePdfAttachment'
        '401':
          $ref: '#/components/responses/Unauthorised'
        '403':
          $ref: '#/components/responses/InvoiceAttachmentForbidden'
        '404':
          $ref: '#/components/responses/EstimateNotFound'
components:
  schemas:
    InvoicePdfAttachment:
      type: object
      required:
        - id
        - url
        - name
        - type
        - size
      properties:
        id:
          type: string
        url:
          type: string
          format: uri
        name:
          type: string
        type:
          type: string
          enum:
            - application/pdf
        size:
          type: integer
          description: File size in bytes.
          maximum: 10485760
  responses:
    Unauthorised:
      description: >-
        An unauthorised request was submitted. You may be using an incorrect or
        expired API token, or are attempting to access a document outside of the
        scope of the token.
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                x-stoplight:
                  id: 08hkw8ukmi2lp
                description: Specific error code
          examples:
            Unauthorised request:
              value:
                code: general/unauthorised
    InvoiceAttachmentForbidden:
      description: >-
        Invoice-module access is missing, or attachments are read-only. Issued
        invoices and estimates become read-only when annulled, paid, outside an
        editable fiscal year, or in a settled VAT period. Draft attachments
        remain editable.
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                enum:
                  - rest-api/insufficient-scope
                  - customer-invoices/attachments-read-only
    EstimateNotFound:
      description: >-
        The estimate is missing or the id refers to an invoice
        (customer-invoices/quote-not-found), or the estimate belongs to another
        organisation (customer-invoices/not-found).
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                enum:
                  - customer-invoices/quote-not-found
                  - customer-invoices/not-found
  securitySchemes:
    apiKey:
      name: x-api-token
      type: apiKey
      in: header
      description: >-
        API token for authentication. Obtain from your Infinity account
        settings.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.