{
  "info": {
    "name": "PDFgen — mcp.ai",
    "description": "REST API for the PDFgen 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/pdfgen",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "pdfgen_create_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "template"
          ]
        },
        "description": "Create a reusable HTML template for later PDF generation.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"engine\": \"\",\n  \"content\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "pdfgen_delete_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "template"
          ]
        },
        "description": "Permanently delete one saved template owned by the connected account.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"template_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "pdfgen_generate_pdf",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/generate/pdf",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "generate",
            "pdf"
          ]
        },
        "description": "Generate a PDF from exactly one saved template, HTML document, Markdown document, or AI prompt and return a temporary download URL.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"data\": {},\n  \"html\": \"\",\n  \"engine\": \"\",\n  \"format\": \"\",\n  \"prompt\": \"\",\n  \"markdown\": \"\",\n  \"password\": \"\",\n  \"file_name\": \"\",\n  \"expiry_time\": 0,\n  \"orientation\": \"\",\n  \"protect_pdf\": false,\n  \"template_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "pdfgen_get_account",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/account",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "account"
          ]
        },
        "description": "Return the connected PDFgen account, organization, plan, and current credit usage.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "pdfgen_get_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "template"
          ]
        },
        "description": "Get one saved PDFgen template, including its complete HTML content.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"template_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "pdfgen_list_templates",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/templates",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "templates"
          ]
        },
        "description": "List saved PDF templates owned by the connected account and return one page with a continuation cursor.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"next_cursor\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "pdfgen_list_usage_logs",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/usage/logs",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "usage",
            "logs"
          ]
        },
        "description": "List recent PDFgen API calls for auditing, billing inspection, and generation troubleshooting. Returns one page with a continuation cursor. Usage logs are eventually consistent, so a just-completed ca",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"next_cursor\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "pdfgen_update_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "template"
          ]
        },
        "description": "Partially update a saved template's name, HTML content, or rendering engine without replacing omitted fields.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"engine\": \"\",\n  \"content\": \"\",\n  \"template_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}