WebMerge

FREE
By webmerge
Updated 4 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

WebMerge API Documentation

WebMerge automates document creation on the fly. Simply setup a template using a fillable PDF, Microsoft Word document, or build one using our online editor and then you can generate a customized document with data from a 3rd party or upload your own.

After each document is "merged" into the customized document, you can deliver it via email, send it to a cloud storage service, send it for esignature, or use a webhook to send it to another API/service.

View API Details
POSTCreate Document
GETGet Document Fields
DELETEDelete Document
POSTMerge Document
PUTUpdate Document
GETGet Document List
POSTCreate Document
Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDdescription
Required Parameters
nameSTRING
REQUIREDName of the document
typeSTRING
REQUIREDThe type of document
outputSTRING
REQUIRED"email" only works with type == html
file_contentsSTRING
REQUIREDbase64 encoded file contents
Optional Parameters
size_widthNUMBER
OPTIONALWidth of the PDF (If type == html)
htmlSTRING
OPTIONALThe document HTML (If type == html)
size_heightNUMBER
OPTIONALHeight of the PDF (If type == html)
output_nameSTRING
OPTIONALMerged document filename
Code Snippet
unirest.post("https://webmerge-webmerge.p.rapidapi.com/documents")
.header("X-RapidAPI-Host", "webmerge-webmerge.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("size_width=8.5")
.send("html=<h1>Invoice</h1>....")
.send("output_name=From {$FirstName}")
.send("name=Invoice")
.send("type="pdf", "html", "docx"")
.send("output="pdf", "docx", "email"")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://webmerge-webmerge.p.rapidapi.com/documents
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://webmerge-webmerge.p.rapidapi.com/documents")
.header("X-RapidAPI-Host", "webmerge-webmerge.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("size_width=8.5")
.send("html=<h1>Invoice</h1>....")
.send("output_name=From {$FirstName}")
.send("name=Invoice")
.send("type="pdf", "html", "docx"")
.send("output="pdf", "docx", "email"")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication