{"info":{"_postman_id":"7a4b0c5c-5f6b-4462-974a-a005d469c84b","name":"MergeMole Integration Docs","description":"<html><head></head><body><p><strong>The flow for integration is</strong></p>\n<ol>\n<li><p>Create templates in the MergeMole platform at <a href=\"https://mergemole.com/dashboard\">https://mergemole.com/dashboard</a> and get your api credentials at <a href=\"https://mergemole.com/api\">https://mergemole.com/api</a> ( Note you'll need to be on a paid plan to use MergeMole via api )</p>\n</li>\n<li><p>Use the endpoint <a href=\"https://mergemole.com/api/template-files\">https://mergemole.com/api/template-files</a> to fetch all templates in your account, you could also get your templates via the GUI at <a href=\"https://mergemole.com/dashboard\">https://mergemole.com/dashboard.</a></p>\n</li>\n<li><p>Once you get your template-id from step 2, do a GET query to <a href=\"https://mergemole.com/api/template-variables-action/\">https://mergemole.com/api/template-variables-action/template-id</a> to get the template's data variable.</p>\n</li>\n<li><p>Take the json from step 3, and you can show this as inputs for your users to map in or key in data.</p>\n</li>\n<li><p>Once the above step is done, do a POST query to <a href=\"https://mergemole.com/api/pdf/generate\">https://mergemole.com/api/pdf/generate</a> to get the pdf.</p>\n</li>\n</ol>\n<p>To get user data, you can call <a href=\"https://mergemole.com/api/test\">https://mergemole.com/api/test</a> to get user name &amp; email.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"41321603","collectionId":"7a4b0c5c-5f6b-4462-974a-a005d469c84b","publishedId":"2sB2j3AWqz","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-29T09:16:41.000Z"},"item":[{"name":"generate-pdf","id":"a389449f-ada9-4e2e-9d8a-f1bde20da980","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"","type":"text"},{"key":"X-API-Secret","value":"","type":"text"}],"body":{"mode":"raw","raw":"\n  {\n    \"data\": [\n      {\n        \"placeholder\": \"Day\",\n        \"value\": \"05\"\n      },\n       {\n        \"placeholder\": \"Month Name\",\n        \"value\": \"05\"\n      }\n    ],\n    \"template_id\": \"1\",\n    \"document_name\": \"Contract for Customer-name\"\n  }\n","options":{"raw":{"language":"json"}}},"url":"https://mergemole.com/api/pdf/generate","description":"<h3 id=\"generate-pdf\">Generate PDF</h3>\n<p>This endpoint allows you to generate a PDF document based on a provided template.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>data</code> (array of objects, required): An array of objects containing template's data variable and their corresponding values.</p>\n<ul>\n<li><p><code>placeholder</code> (string): The placeholder key.</p>\n</li>\n<li><p><code>value</code> (string): The value to replace the placeholder.</p>\n</li>\n</ul>\n</li>\n<li><p><code>template_id</code> (string, required): The ID of the template to be used for generating the PDF.</p>\n</li>\n<li><p><code>document_name</code> (string, required): The name of the generated PDF document.</p>\n</li>\n</ul>\n<h5 id=\"example\">Example</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": [\n    {\n      \"placeholder\": \"Day\",\n      \"value\": \"05\"\n    }\n  ],\n  \"template_id\": \"1\",\n  \"document_name\": \"Contract for Customer-name\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","pdf","generate"],"host":["mergemole","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a389449f-ada9-4e2e-9d8a-f1bde20da980"},{"name":"template-files","id":"f75d7ffa-df2e-42ca-ad32-1db280acb9e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"","type":"text"},{"key":"X-API-Secret","value":"","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"search","value":"","type":"text"}]},"url":"https://mergemole.com/api/template-files","description":"<p>This endpoint allows you to get all templates under your account. This is used to list out all templates and to get the template-id.</p>\n<p>You can pass in data via the search param to perform a template name search.</p>\n","urlObject":{"protocol":"https","path":["api","template-files"],"host":["mergemole","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f75d7ffa-df2e-42ca-ad32-1db280acb9e2"},{"name":"template-variables-action","id":"14da32c9-9b15-421e-89c9-8a977b04dc32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Token","value":"","type":"text"},{"key":"X-API-Secret","value":"","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://mergemole.com/api/template-variables-action/{template-id}","description":"<p>This endpoint allows you to get all data variables of a specified template. You can display each of the items as an input or to allow data mapping.</p>\n","urlObject":{"protocol":"https","path":["api","template-variables-action","{template-id}"],"host":["mergemole","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"14da32c9-9b15-421e-89c9-8a977b04dc32"},{"name":"Health check","id":"d37fb030-86f5-4933-b086-60b30c5d1c25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Token","value":"","type":"text"},{"key":"X-API-Secret","value":"","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://mergemole.com/api/test","description":"<p>This endpoint allows you to retrieve the name and email of the current owner of the API credentials.</p>\n","urlObject":{"protocol":"https","path":["api","test"],"host":["mergemole","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d37fb030-86f5-4933-b086-60b30c5d1c25"}]}