{"info":{"_postman_id":"e6248ef3-b30a-4243-a853-a31ea3118370","name":"HelloPDF Public API Documentation","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>HelloPDF's API enables developers to convert WebPage's/URL's, HTML, and MHTML to PDF's in real time.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>You can authenticate with the API by passing your API Token in the <code>token</code> query parameter.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>The API only returns <code>200 SUCCESS</code>, <code>400 INVALID PARAMETER</code>, and <code>500 SERVER ERROR</code> HTTP codes.\n<em>If you encounter an HTTP 500 Response please contact <a href=\"mailto:support@lynndigital.com\">support@lynndigital.com</a>.</em></p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>We do not limit concurrent calls. Your \"Max Monthly Conversion Time\" is determined by your subscription. Please visit <a href=\"https://www.hellopdf.co/account\">https://www.hellopdf.co/account</a> for more information.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"12431215","collectionId":"e6248ef3-b30a-4243-a853-a31ea3118370","publishedId":"T1LTdinT","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"F55"},"publishDate":"2020-08-20T00:45:18.000Z"},"item":[{"name":"https://hellopdf.co/api/pdf","id":"5b834212-0137-4783-8fe0-dd66b0b78847","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hellopdf.co/api/pdf?token=api-token&url=url-to-convert&scale=1&landscape&pageRange&format=Letter&displayHeaderFooter&headerTemplate&footerTemplate&width&height&margin.top&margin.bottom&margin.right&margin.left&store&exportAs=pdf","description":"<h2 id=\"webpageurl-to-pdf\">WebPage/URL to PDF</h2>\n<p>The <code>headerTemplate</code> and <code>footerTemplate</code> markup have the following limitations:</p>\n<ul>\n<li>Script tags inside templates are not evaluated.</li>\n<li>Page styles are not visible inside templates</li>\n</ul>\n<p>See the \"Store in S3\" page to view the API response when using the <code>store</code> field.</p>\n<p><code>*</code> = Optional Requirement</p>\n<p><em>All query parameters prefixed by [PRO] are optional and require a Pro or Business subscription to use.</em></p>\n","urlObject":{"protocol":"https","path":["api","pdf"],"host":["hellopdf","co"],"query":[{"description":{"content":"<p>API Token</p>\n","type":"text/plain"},"key":"token","value":"api-token"},{"description":{"content":"<p>WebPage/URL To Convert</p>\n","type":"text/plain"},"key":"url","value":"url-to-convert"},{"description":{"content":"<p>*PDF Scale: 0.1-1</p>\n","type":"text/plain"},"key":"scale","value":"1"},{"description":{"content":"<p>*If passed then the PDF will be rendered in Landscape mode</p>\n","type":"text/plain"},"key":"landscape","value":null},{"description":{"content":"<p>*Range of pages to convert. E.g 1-7</p>\n","type":"text/plain"},"key":"pageRange","value":null},{"description":{"content":"<p>*PDF Format: Letter|Legal|Tabloid|Ledger|A0|A1|A2|A3|A4|A5|A6</p>\n","type":"text/plain"},"key":"format","value":"Letter"},{"description":{"content":"<p>[PRO] If passed then the PDF will be rendered with a Header and a Footer</p>\n","type":"text/plain"},"key":"displayHeaderFooter","value":null},{"description":{"content":"<p>[PRO] HTML Header Template For PDF</p>\n","type":"text/plain"},"key":"headerTemplate","value":null},{"description":{"content":"<p>[PRO] HTML Footer Template For PDF</p>\n","type":"text/plain"},"key":"footerTemplate","value":null},{"description":{"content":"<p>[PRO] PDF Width Suffixed With Unit</p>\n","type":"text/plain"},"key":"width","value":null},{"description":{"content":"<p>[PRO] PDF Height Suffixed With Unit</p>\n","type":"text/plain"},"key":"height","value":null},{"description":{"content":"<p>[PRO] PDF Top Margin</p>\n","type":"text/plain"},"key":"margin.top","value":null},{"description":{"content":"<p>[PRO] PDF Bottom Margin</p>\n","type":"text/plain"},"key":"margin.bottom","value":null},{"description":{"content":"<p>[PRO] PDF Right Margin</p>\n","type":"text/plain"},"key":"margin.right","value":null},{"description":{"content":"<p>[PRO] PDF Left Margin</p>\n","type":"text/plain"},"key":"margin.left","value":null},{"description":{"content":"<p>[PRO] If passed then document is stored in AWS. See the \"Store in S3\" page to view the API response.</p>\n","type":"text/plain"},"key":"store","value":null},{"description":{"content":"<p>[PRO] File Type: pdf|png</p>\n","type":"text/plain"},"key":"exportAs","value":"pdf"}],"variable":[]}},"response":[{"id":"fb6aea9c-4225-4a5d-aa0f-a87d396835d4","name":"https://hellopdf.co/api/pdf","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://hellopdf.co/api/pdf?token=api-token&url=url-to-convert","protocol":"https","host":["hellopdf","co"],"path":["api","pdf"],"query":[{"key":"token","value":"api-token","description":"API Token"},{"key":"url","value":"url-to-convert","description":"WebPage/URL To Convert"},{"key":"scale","value":"1","disabled":true},{"key":"landscape","value":null,"description":"If passed then the PDF will be rendered in Landscape mode","disabled":true},{"key":"pageRange","value":null,"description":"Range of pages to convert. E.g 1-7","disabled":true},{"key":"format","value":"Letter","description":"PDF Format: Letter|Legal|Tabloid|Ledger|A0|A1|A2|A3|A4|A5|A6","disabled":true},{"key":"displayHeaderFooter","value":null,"description":"[PRO] If passed then the PDF will be rendered with a Header and a Footer","disabled":true},{"key":"headerTemplate","value":null,"description":"[PRO] HTML Header Template For PDF","disabled":true},{"key":"footerTemplate","value":null,"description":"[PRO] HTML Footer Template For PDF","disabled":true},{"key":"width","value":null,"description":"[PRO] PDF Width Suffixed With Unit","disabled":true},{"key":"height","value":null,"description":"[PRO] PDF Height Suffixed With Unit","disabled":true},{"key":"margin.top","value":null,"description":"[PRO] PDF Top Margin","disabled":true},{"key":"margin.bottom","value":null,"description":"[PRO] PDF Bottom Margin","disabled":true},{"key":"margin.right","value":null,"description":"[PRO] PDF Right Margin","disabled":true},{"key":"margin.left","value":null,"description":"[PRO] PDF Left Margin","disabled":true},{"key":"store","value":null,"description":"[PRO] If passed then document is stored in AWS. See the \"Store in S3\" page to view the API response.","disabled":true},{"key":"exportAs","value":"pdf","description":"[PRO] File Type: pdf|png","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"Unable to preview response. Content-Type: `application/pdf`."}],"_postman_id":"5b834212-0137-4783-8fe0-dd66b0b78847"},{"name":"https://hellopdf.co/api/pdf - (Store in S3)","id":"8cf2e099-caa8-448a-a353-b74e4290bddb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hellopdf.co/api/pdf?token=your-api-token&url=url-to-convert&store=yes","description":"<h2 id=\"convert-a-webpage-to-a-pdf-then-save-to-aws-s3\">Convert a WebPage to a PDF then save to AWS S3.</h2>\n<p>The <code>headerTemplate</code> and <code>footerTemplate</code> markup have the following limitations:</p>\n<ul>\n<li>Script tags inside templates are not evaluated.</li>\n<li>Page styles are not visible inside templates</li>\n</ul>\n<p><em>Any grey fields are optional. All query parameters prefixed by [PRO] require a Pro or Business subscription to use.</em></p>\n","urlObject":{"protocol":"https","path":["api","pdf"],"host":["hellopdf","co"],"query":[{"key":"token","value":"your-api-token"},{"key":"url","value":"url-to-convert"},{"key":"store","value":"yes"}],"variable":[]}},"response":[{"id":"b159f3e1-e4a7-4e34-b67a-9f97910c336e","name":"HelloPDF - Convert and save to AWS S3","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://hellopdf.co/api/pdf?token=your-api-token&url=url-to-convert&store=yes","protocol":"https","host":["hellopdf","co"],"path":["api","pdf"],"query":[{"key":"token","value":"your-api-token"},{"key":"url","value":"url-to-convert"},{"key":"store","value":"yes"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Aug 2020 23:32:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"url\": \"https://hellopdf.s3.us-east-2.amazonaws.com/docs/8a3e25f80c093f4f173e3ae531c1b7cec9c37283/5f3db6927e828.pdf\"\n}"}],"_postman_id":"8cf2e099-caa8-448a-a353-b74e4290bddb"},{"name":"https://hellopdf.co/api/pdf/raw","id":"b84fed0b-360d-4ee7-8aca-583fdaf7cde3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<!DOCTYPE html>\r\n<html>\r\n<head>\r\n\t<title></title>\r\n</head>\r\n<body>\r\nThis is my PDF\r\n</body>\r\n</html>"},"url":"https://hellopdf.co/api/pdf/raw?token=api-token","description":"<p>HTML to PDF</p>\n","urlObject":{"protocol":"https","path":["api","pdf","raw"],"host":["hellopdf","co"],"query":[{"description":{"content":"<p>API Token</p>\n","type":"text/plain"},"key":"token","value":"api-token"}],"variable":[]}},"response":[{"id":"e6b3eb68-ea76-44d2-87f4-91cfd9d67cf2","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<!DOCTYPE html>\r\n<html>\r\n<head>\r\n\t<title></title>\r\n</head>\r\n<body>\r\nThis is my PDF\r\n</body>\r\n</html>"},"url":{"raw":"https://hellopdf.co/api/pdf/raw?token=api-token","protocol":"https","host":["hellopdf","co"],"path":["api","pdf","raw"],"query":[{"key":"token","value":"api-token","description":"API Token","type":"text"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"Unable to preview response. Content-Type: `application/pdf`."}],"_postman_id":"b84fed0b-360d-4ee7-8aca-583fdaf7cde3"},{"name":"https://hellopdf.co/api/v2/mhtml","id":"321307ff-a5b9-45f2-99bd-a8065737c55c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://hellopdf.co/api/v2/mhtml","description":"<p>[V2] MHTML to PDF</p>\n","urlObject":{"protocol":"https","path":["api","v2","mhtml"],"host":["hellopdf","co"],"query":[],"variable":[]}},"response":[{"id":"084151be-8fe4-468a-988f-419530fcc7da","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://hellopdf.co/api/v2/mhtml"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"321307ff-a5b9-45f2-99bd-a8065737c55c"}]}