{
  "info": {
    "name": "API2PDF — mcp.ai",
    "description": "REST API for the API2PDF MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/api2pdf",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "api2pdf_add_header_footer",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/add/header/footer",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "add",
            "header",
            "footer"
          ]
        },
        "description": "Convert HTML to PDF with customizable headers and footers using Headless Chrome. Use for generating reports, invoices, or documents with consistent page numbering, titles, dates, or branding on every ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"html\": \"\",\n  \"options\": {},\n  \"fileName\": \"\",\n  \"inlinePdf\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_check_status",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/check/status",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "check",
            "status"
          ]
        },
        "description": "Tool to check the health status of the API2PDF service. Use when you need to verify if the API is available and responding. This endpoint does not require authentication and returns a simple status in",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_delete_pdf",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/pdf",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "pdf"
          ]
        },
        "description": "Delete a previously generated PDF from API2PDF storage by its response ID. By default, API2PDF automatically deletes PDFs after 24 hours. Use this tool when you need to immediately remove a PDF for se",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"response_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_extract_pages",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/extract/pages",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "extract",
            "pages"
          ]
        },
        "description": "Tool to extract specific pages from a PDF document. Use when you need only certain pages from a larger PDF file. Provide a URL to the source PDF and optionally a page range (0-indexed, end exclusive).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"end\": 0,\n  \"url\": \"\",\n  \"start\": 0,\n  \"inline\": false,\n  \"storage\": {},\n  \"fileName\": \"\",\n  \"extraHTTPHeaders\": {},\n  \"useCustomStorage\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_libreoffice_pdf_to_html",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/libreoffice/pdf/to/html",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "libreoffice",
            "pdf",
            "to",
            "html"
          ]
        },
        "description": "Tool to convert a PDF document to HTML using LibreOffice. Use when you need HTML output of a PDF file (experimental; images may be excluded).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\",\n  \"inline\": false,\n  \"fileName\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_libreoffice_thumbnail",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/libreoffice/thumbnail",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "libreoffice",
            "thumbnail"
          ]
        },
        "description": "Tool to generate a thumbnail image of a document using LibreOffice. Use when you need a quick visual preview of a PDF or Office file's first page.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_merge_pdfs",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/merge/pdfs",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "merge",
            "pdfs"
          ]
        },
        "description": "Merge multiple PDF documents into a single PDF file. Provide a list of publicly accessible PDF URLs, and they will be combined in the order specified. The merged PDF is available via a download URL fo",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"urls\": \"\",\n  \"inline\": false,\n  \"storage\": {},\n  \"fileName\": \"\",\n  \"extraHTTPHeaders\": {},\n  \"useCustomStorage\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_optimize_pdf",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/optimize/pdf",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "optimize",
            "pdf"
          ]
        },
        "description": "Tool to optimize a PDF document to reduce file size while maintaining quality. Use when you need to minimize storage or bandwidth for an existing PDF.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\",\n  \"inline\": false,\n  \"storage\": {},\n  \"fileName\": \"\",\n  \"extraHTTPHeaders\": {},\n  \"useCustomStorage\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_reorder_pages",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/reorder/pages",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "reorder",
            "pages"
          ]
        },
        "description": "Reorder pages of a PDF document by specifying a new page sequence. Provide a URL to the source PDF and a list of zero-based page indices in the desired order. For example, to reverse a 3-page PDF, use",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\",\n  \"pages\": \"\",\n  \"inline\": false,\n  \"storage\": {},\n  \"fileName\": \"\",\n  \"extraHTTPHeaders\": {},\n  \"useCustomStorage\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "api2pdf_zebra_generate_barcode",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/zebra/generate/barcode",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "zebra",
            "generate",
            "barcode"
          ]
        },
        "description": "Tool to generate barcodes or QR codes using Zebra Crossing (ZXING). Use when you need a barcode or QR code image from text values.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"value\": \"\",\n  \"width\": 0,\n  \"format\": \"\",\n  \"height\": 0,\n  \"showlabel\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}