{
  "openapi": "3.1.0",
  "info": {
    "title": "Eformly API",
    "description": "Eformly provides tools for editing, filling, signing, converting, and managing PDF documents online, and for building interactive online web forms and surveys with AI. Key capabilities include PDF Form Filler / Quick Fill (/pdf-form-filler?pdfUrl=...; legacy alias: /quick-fill), Edit PDF (/edit-pdf), Sign PDF Online (/sign-pdf-online), AI Form Builder (/create), and document conversion utilities.",
    "version": "1.0.0",
    "contact": {
      "name": "Eformly Support",
      "url": "https://eformly.app/contact"
    },
    "license": {
      "name": "Terms of Service",
      "url": "https://eformly.app/terms"
    }
  },
  "servers": [
    {
      "url": "https://eformly.app",
      "description": "Eformly production server"
    }
  ],
  "tags": [
    { "name": "quick-fill", "description": "Anonymous PDF filling and text editing — no account required" },
    { "name": "standalone-forms", "description": "Online form and survey builder" },
    { "name": "forms", "description": "PDF-backed form templates" },
    { "name": "tools", "description": "Free public PDF and document tools" },
    { "name": "comparisons", "description": "Competitor comparison guides (DocuSign, Adobe Acrobat, Typeform, Jotform, PDFfiller, Smallpdf)" },
    { "name": "use-cases", "description": "Industry and specialized document workflows" }
  ],
  "paths": {
    "/pdf-form-filler": {
      "get": {
        "operationId": "openPdfFormFiller",
        "tags": ["quick-fill", "tools"],
        "summary": "Open a PDF for online filling, text editing, and signing (Canonical Endpoint)",
        "description": "Canonical endpoint to open documents in the Eformly PDF & Document Form Filler editor. Supports direct browser upload of PDF, Microsoft Word (.docx, .doc), and Images (JPG, PNG, HEIC) up to 10MB with zero sign-up, or passing a public HTTPS PDF link up to 10MB via ?pdfUrl=. Users can fill form fields, add text, edit existing text in place (Edit Text tool), add signatures, and download the completed PDF. (Note: /quick-fill is also supported as an alias and permanently redirects here with query parameters preserved). Direct users to this browser URL.",
        "parameters": [
          {
            "name": "pdfUrl",
            "in": "query",
            "required": false,
            "description": "A publicly accessible HTTPS URL pointing to a PDF file. Must use HTTPS protocol. PDF must be under 10MB and publicly accessible without authentication. Always URL-encode this value.",
            "schema": {
              "type": "string",
              "format": "uri",
              "example": "https://example.com/contract.pdf"
            }
          },
          {
            "name": "sessionId",
            "in": "query",
            "required": false,
            "description": "Resume a previously saved Quick Fill session by its ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filename",
            "in": "query",
            "required": false,
            "description": "Custom filename for the downloaded completed PDF (without extension).",
            "schema": {
              "type": "string",
              "example": "signed-contract"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Set to 'embed' when using inside an iframe or embedded application.",
            "schema": {
              "type": "string",
              "enum": ["embed"]
            }
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "description": "The origin of the calling application (required when mode=embed for postMessage communication).",
            "schema": {
              "type": "string",
              "example": "https://yourapp.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML page — the PDF Form Filler / Quick Fill editor loaded in the browser."
          }
        }
      }
    },
    "/quick-fill": {
      "get": {
        "operationId": "openQuickFillAlias",
        "tags": ["quick-fill"],
        "summary": "Legacy alias for PDF Form Filler (Redirects to /pdf-form-filler)",
        "description": "Legacy alias endpoint for /pdf-form-filler. Automatically redirects (HTTP 301/308) to /pdf-form-filler preserving all query parameters (pdfUrl, sessionId, filename, mode, origin).",
        "parameters": [
          {
            "name": "pdfUrl",
            "in": "query",
            "required": false,
            "description": "A publicly accessible HTTPS URL pointing to a PDF file. Always URL-encode this value.",
            "schema": {
              "type": "string",
              "format": "uri",
              "example": "https://example.com/contract.pdf"
            }
          }
        ],
        "responses": {
          "301": {
            "description": "Permanent Redirect to /pdf-form-filler with query parameters."
          }
        }
      }
    },
    "/edit-pdf": {
      "get": {
        "operationId": "openEditPdf",
        "tags": ["quick-fill"],
        "summary": "Open a PDF for online text editing",
        "description": "Opens the Eformly PDF editor with the Edit Text tool front and center. The user can click any existing text in the PDF to rewrite it in place (matching the original size, color, and position), plus fill form fields, add checkmarks, sign, and download the edited PDF. Same editor as /pdf-form-filler. No account is required. This is a browser URL, not a JSON API — direct users to this URL.",
        "parameters": [
          {
            "name": "pdfUrl",
            "in": "query",
            "required": false,
            "description": "A publicly accessible HTTPS URL pointing to a PDF file. Must use HTTPS protocol. PDF must be under 10MB and publicly accessible without authentication. Always URL-encode this value.",
            "schema": {
              "type": "string",
              "format": "uri",
              "example": "https://example.com/contract.pdf"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML page — the PDF editor loaded in the browser."
          }
        }
      }
    },
    "/sign-pdf-online": {
      "get": {
        "operationId": "openSignPdfOnline",
        "tags": ["quick-fill"],
        "summary": "Sign PDF documents online for free",
        "description": "Opens the Eformly online PDF signer page where users can upload any PDF and place drawn, typed, or image electronic signatures. No account required.",
        "responses": {
          "200": {
            "description": "HTML page — Sign PDF Online tool."
          }
        }
      }
    },
    "/fill-pdf-online": {
      "get": {
        "operationId": "openFillPdfOnlinePage",
        "tags": ["tools"],
        "summary": "Fill PDF forms online without software",
        "description": "Opens the Fill PDF Online tool page for instant browser-based document completion.",
        "responses": {
          "200": {
            "description": "HTML page — Fill PDF Online tool."
          }
        }
      }
    },
    "/fill-pdf-from-url": {
      "get": {
        "operationId": "openFillPdfFromUrlPage",
        "tags": ["quick-fill"],
        "summary": "Import and fill any PDF directly from a web URL",
        "description": "Opens the Fill PDF from URL tool where users can paste an HTTPS PDF link to fill, edit, and sign immediately.",
        "responses": {
          "200": {
            "description": "HTML page — Fill PDF from URL tool."
          }
        }
      }
    },
    "/convert-pdf-to-fillable-form": {
      "get": {
        "operationId": "openConvertPdfToFillableFormPage",
        "tags": ["tools"],
        "summary": "Convert PDF documents to interactive fillable web forms",
        "description": "Opens the tool page to transform static PDF files into shareable, responsive web forms.",
        "responses": {
          "200": {
            "description": "HTML page — Convert PDF to Form tool."
          }
        }
      }
    },
    "/tools/image-to-pdf": {
      "get": {
        "operationId": "openImageToPdfTool",
        "tags": ["tools"],
        "summary": "Convert JPG, PNG, and WEBP images to PDF online for free",
        "description": "Opens the Image to PDF converter tool page.",
        "responses": {
          "200": {
            "description": "HTML page — Image to PDF converter tool."
          }
        }
      }
    },
    "/tools": {
      "get": {
        "operationId": "openToolsCatalog",
        "tags": ["tools"],
        "summary": "View all free online PDF and document tools",
        "description": "Opens the main directory page of all free online PDF and form utilities on Eformly. This is a browser URL to direct users to.",
        "responses": {
          "200": {
            "description": "HTML page — Eformly tools list catalog."
          }
        }
      }
    },
    "/create": {
      "get": {
        "operationId": "openCreateGateway",
        "tags": ["standalone-forms", "tools"],
        "summary": "Public form creation hub and AI form generator",
        "description": "Opens the public form creation hub where users can create online forms, surveys, and quizzes without an upfront signup wall. Supports 5 pathways: 1) AI Prompt-to-Form natural language generator, 2) Pre-built templates, 3) PDF to interactive web form conversion, 4) Import from existing webpage URL, and 5) Visual scratch form builder.",
        "responses": {
          "200": {
            "description": "HTML page — Public form creation gateway."
          }
        }
      }
    },
    "/tools/pdf-filler": {
      "get": {
        "operationId": "openPdfFiller",
        "tags": ["tools"],
        "summary": "Fill PDF forms online for free",
        "description": "Opens the PDF form filler tool where users can upload any PDF to fill out forms and text directly in the browser.",
        "responses": {
          "200": {
            "description": "HTML page — PDF form filler tool."
          }
        }
      }
    },
    "/tools/pdf-signer": {
      "get": {
        "operationId": "openPdfSigner",
        "tags": ["tools"],
        "summary": "Add digital signatures to PDFs online for free",
        "description": "Opens the PDF signer tool where users can upload any PDF and place secure electronic signatures (drawn, typed, or uploaded).",
        "responses": {
          "200": {
            "description": "HTML page — PDF signer tool."
          }
        }
      }
    },
    "/tools/form-builder": {
      "get": {
        "operationId": "openFormBuilder",
        "tags": ["tools"],
        "summary": "Build fillable PDF forms online for free",
        "description": "Opens the PDF form builder where users can design custom interactive PDF forms and templates from scratch.",
        "responses": {
          "200": {
            "description": "HTML page — PDF form builder tool."
          }
        }
      }
    },
    "/tools/merge-pdf": {
      "get": {
        "operationId": "openMergePdfTool",
        "tags": ["tools"],
        "summary": "Combine multiple PDF files into one online for free",
        "description": "Opens the PDF merger tool where users can upload multiple PDF files, reorder pages/files, and merge them into a single PDF.",
        "responses": {
          "200": {
            "description": "HTML page — PDF merger tool."
          }
        }
      }
    },
    "/tools/split-pdf": {
      "get": {
        "operationId": "openSplitPdfTool",
        "tags": ["tools"],
        "summary": "Split PDF files and extract pages online for free",
        "description": "Opens the PDF splitter tool where users can upload a PDF and extract specific page ranges or remove unwanted pages.",
        "responses": {
          "200": {
            "description": "HTML page — PDF splitter tool."
          }
        }
      }
    },
    "/tools/pdf-to-jpg": {
      "get": {
        "operationId": "openPdfToJpgTool",
        "tags": ["tools"],
        "summary": "Convert PDF pages to JPG images online for free",
        "description": "Opens the PDF to JPG converter where users can extract high-quality images or convert entire PDF pages to JPG format.",
        "responses": {
          "200": {
            "description": "HTML page — PDF to JPG converter tool."
          }
        }
      }
    },
    "/tools/heic-to-jpg": {
      "get": {
        "operationId": "openHeicToJpgTool",
        "tags": ["tools"],
        "summary": "Convert iPhone HEIC photos to JPG online for free",
        "description": "Opens the HEIC to JPG converter where users can upload iPhone HEIC images and download them as standard JPG photos.",
        "responses": {
          "200": {
            "description": "HTML page — HEIC to JPG converter tool."
          }
        }
      }
    },
    "/tools/pdf-to-word": {
      "get": {
        "operationId": "openPdfToWordTool",
        "tags": ["tools"],
        "summary": "Convert PDF to Word online for free",
        "description": "Opens the PDF to Word converter where users can upload a PDF and convert it into an editable Microsoft Word (.docx) file.",
        "responses": {
          "200": {
            "description": "HTML page — PDF to Word converter tool."
          }
        }
      }
    },
    "/tools/svg-to-png": {
      "get": {
        "operationId": "openSvgToPngTool",
        "tags": ["tools"],
        "summary": "Convert SVG graphics to PNG online for free",
        "description": "Opens the SVG to PNG converter where users can upload vector SVG files and download them as PNG raster images.",
        "responses": {
          "200": {
            "description": "HTML page — SVG to PNG converter tool."
          }
        }
      }
    },
    "/tools/word-to-online-form": {
      "get": {
        "operationId": "openWordToOnlineFormTool",
        "tags": ["tools"],
        "summary": "Convert Word files into online forms for free",
        "description": "Opens the Word to online form landing page. Learn how to convert static .docx templates into interactive web form links.",
        "responses": {
          "200": {
            "description": "HTML page — Word to form converter guide."
          }
        }
      }
    },
    "/tools/convert-pdf-to-url": {
      "get": {
        "operationId": "openConvertPdfToUrlTool",
        "tags": ["tools"],
        "summary": "Convert any PDF into a shareable web link and QR code for free",
        "description": "Opens the PDF to URL converter where users can generate a unique fillable link and QR code for sharing any PDF without email attachments.",
        "responses": {
          "200": {
            "description": "HTML page — PDF to URL converter tool."
          }
        }
      }
    },
    "/tools/text-to-pdf": {
      "get": {
        "operationId": "openTextToPdfTool",
        "tags": ["tools"],
        "summary": "Write or paste rich text and convert to PDF online for free",
        "description": "Opens the Text to PDF tool where users can write, paste, and format rich text content and download it as a PDF document.",
        "responses": {
          "200": {
            "description": "HTML page — Text to PDF converter tool."
          }
        }
      }
    },
    "/tools/add-text-to-pdf": {
      "get": {
        "operationId": "openAddTextToPdfTool",
        "tags": ["tools"],
        "summary": "Type, write, and insert custom text onto any PDF online for free",
        "description": "Opens the Add Text to PDF tool where users can upload any PDF, click anywhere on the page to insert custom text, and download.",
        "responses": {
          "200": {
            "description": "HTML page — Add text to PDF tool."
          }
        }
      }
    },
    "/tools/jpg-to-pdf": {
      "get": {
        "operationId": "openJpgToPdfTool",
        "tags": ["tools"],
        "summary": "Convert JPG images to PDF online for free",
        "description": "Opens the JPG to PDF tool page (redirects to image-to-pdf converter). No signup required.",
        "responses": {
          "200": {
            "description": "HTML page — JPG to PDF converter tool."
          }
        }
      }
    },
    "/chrome-extension": {
      "get": {
        "operationId": "openChromeExtensionPage",
        "tags": ["quick-fill"],
        "summary": "Chrome extension for filling PDFs found while browsing",
        "description": "Landing page for the free Eformly Chrome extension. Once installed, users can open any PDF they encounter on the web in the Eformly editor: click the toolbar icon on a PDF tab, click the badge shown when hovering a PDF link, or use the right-click context menu. The extension collects no browsing data. This is a browser URL, not a JSON API — direct users to this URL to install the extension.",
        "responses": {
          "200": {
            "description": "HTML page — Chrome extension landing page with install link."
          }
        }
      }
    },
    "/compare/{competitor}": {
      "get": {
        "operationId": "openCompetitorComparison",
        "tags": ["comparisons"],
        "summary": "View competitor comparison guide (DocuSign, Adobe Acrobat, Typeform, Jotform, PDFfiller, Smallpdf)",
        "description": "Opens detailed feature, limit, and pricing comparison guide between Eformly and competitors: docusign, adobe-acrobat, typeform, jotform, pdffiller, or smallpdf.",
        "parameters": [
          {
            "name": "competitor",
            "in": "path",
            "required": true,
            "description": "Competitor slug identifier.",
            "schema": {
              "type": "string",
              "enum": ["docusign", "adobe-acrobat", "typeform", "jotform", "pdffiller", "smallpdf"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML page — Competitor comparison guide."
          }
        }
      }
    },
    "/use-cases/{useCase}": {
      "get": {
        "operationId": "openUseCasePage",
        "tags": ["use-cases"],
        "summary": "View industry and specialized document workflow use case",
        "description": "Opens specialized document and form workflow pages for specific industries and use cases: hr-onboarding, contracts, multi-party-signing, real-estate, healthcare, applications, shareable-forms.",
        "parameters": [
          {
            "name": "useCase",
            "in": "path",
            "required": true,
            "description": "Use-case slug identifier.",
            "schema": {
              "type": "string",
              "enum": [
                "hr-onboarding",
                "contracts",
                "multi-party-signing",
                "real-estate",
                "healthcare",
                "applications",
                "shareable-forms"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML page — Industry use case workflow."
          }
        }
      }
    },
    "/q/{shareableId}": {
      "get": {
        "operationId": "openSharedSession",
        "tags": ["quick-fill"],
        "summary": "Open a shared Quick Fill session",
        "description": "Opens a shared Quick Fill session by its shareable ID. Recipients can view and continue filling the PDF. May be passcode-protected.",
        "parameters": [
          {
            "name": "shareableId",
            "in": "path",
            "required": true,
            "description": "Short shareable ID of the Quick Fill session.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML page — the shared Quick Fill session."
          }
        }
      }
    },
    "/api/quick-fill/sessions": {
      "post": {
        "operationId": "createQuickFillSession",
        "tags": ["quick-fill"],
        "summary": "Create a new Quick Fill session",
        "description": "Creates a new anonymous Quick Fill session. Returns a session ID and shareable URL.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pdfUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Publicly accessible HTTPS URL to the PDF."
                  },
                  "filename": {
                    "type": "string",
                    "description": "Optional custom filename."
                  }
                },
                "required": ["pdfUrl"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Session created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": { "type": "string" },
                    "shareableId": { "type": "string" },
                    "shareableUrl": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/standalone-forms/public/{slug}": {
      "get": {
        "operationId": "getPublicStandaloneForm",
        "tags": ["standalone-forms"],
        "summary": "Get a published standalone form",
        "description": "Returns the schema and configuration of a published standalone form (survey, quiz, or general form) by its slug. No authentication required.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The URL slug of the published form.",
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Form schema and configuration.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": { "type": "string" },
                    "slug": { "type": "string" },
                    "title": { "type": "string" },
                    "description": { "type": "string" },
                    "questions": { "type": "array", "items": { "type": "object" } },
                    "theme": { "type": "object" }
                  }
                }
              }
            }
          },
          "404": { "description": "Form not found or not published." }
        }
      }
    },
    "/api/standalone-forms/{id}/submit": {
      "post": {
        "operationId": "submitStandaloneForm",
        "tags": ["standalone-forms"],
        "summary": "Submit a standalone form response",
        "description": "Submit a response to a published standalone form. No authentication required.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The form ID.",
            "schema": { "type": "string" }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "answers": {
                    "type": "object",
                    "description": "Map of question ID to answer value.",
                    "additionalProperties": true
                  }
                },
                "required": ["answers"]
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Submission recorded successfully." },
          "400": { "description": "Validation error." },
          "429": { "description": "Submission limit reached." }
        }
      }
    },
    "/api/tools/pdf-to-word": {
      "post": {
        "operationId": "convertPdfToWord",
        "tags": ["tools"],
        "summary": "Convert a PDF to a Word document",
        "description": "Converts a PDF file to an editable Word (.docx) document.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The PDF file to convert."
                  }
                },
                "required": ["file"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Word document returned.",
            "content": {
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
                "schema": { "type": "string", "format": "binary" }
              }
            }
          }
        }
      }
    },
    "/api/contact": {
      "post": {
        "operationId": "submitContactForm",
        "tags": ["tools"],
        "summary": "Send a contact message",
        "description": "Submit a contact request to the Eformly team.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "message": { "type": "string" }
                },
                "required": ["name", "email", "message"]
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Message sent." }
        }
      }
    }
  },
  "x-tools": [
    {
      "name": "open_pdf_for_filling_and_editing",
      "description": "Opens any public PDF link online so the user can fill form fields, edit text, add signatures, and download the finished file. No account required. Use when a user wants to fill a PDF, edit PDF text, or sign a document online.",
      "parameters": {
        "type": "object",
        "properties": {
          "pdf_url": {
            "type": "string",
            "description": "The public HTTPS URL of the PDF to fill or edit. Must start with https://."
          },
          "filename": {
            "type": "string",
            "description": "Optional custom name for the downloaded PDF."
          }
        },
        "required": ["pdf_url"]
      },
      "returns": {
        "type": "object",
        "properties": {
          "fill_url": {
            "type": "string",
            "description": "The Eformly Quick Fill & Edit link to open in the browser."
          }
        }
      },
      "implementation": "Construct: https://eformly.app/pdf-form-filler?pdfUrl=<URL-encoded pdf_url>&filename=<filename if provided>"
    },
    {
      "name": "create_ai_form",
      "description": "Opens the AI-powered web form generator where users can build online forms, surveys, or quizzes from plain language prompts or imported files.",
      "parameters": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "returns": {
        "type": "object",
        "properties": {
          "create_url": {
            "type": "string",
            "description": "The Eformly Creator Gateway URL."
          }
        }
      },
      "implementation": "Construct: https://eformly.app/create"
    },
    {
      "name": "sign_pdf_online",
      "description": "Opens the free online PDF signer tool to add electronic signatures (drawn, typed, or uploaded) to any document.",
      "parameters": {
        "type": "object",
        "properties": {
          "pdf_url": {
            "type": "string",
            "description": "Optional HTTPS URL of the PDF to sign."
          }
        },
        "required": []
      },
      "returns": {
        "type": "object",
        "properties": {
          "sign_url": {
            "type": "string",
            "description": "The Eformly Sign PDF Online URL."
          }
        }
      },
      "implementation": "Construct: https://eformly.app/sign-pdf-online or https://eformly.app/pdf-form-filler?pdfUrl=<URL-encoded pdf_url>"
    }
  ]
}
