- Getting Started
- Installation
- Key Concepts
- Integrations
- Account & Billing
- Security & Privacy
- PDF Generation
- Reference
- Tutorials
- Troubleshooting
- Excel Generation
- Reference
- Troubleshooting
Making PDF Documents with Zapier
DocRaptor's HTML-to-PDF API makes it easy to convert HTML into a PDF document on Zapier, especially with our hosted documents add-on.
Step 1: Create a Trigger
You'll need some kind of trigger event. For this example, we'll use Zapier's Forecast app:

Step 2: Add the Webhooks by Zapier App
Use Zapier's built-in Webhooks app and select the POST action:

Step 3: Setup the DocRaptor API Call
For the URL, use "https://docraptor.com/docs". Make sure the Payload Type is set to "json". All the data options follow DocRaptor standard API parameters.
The only required parameters are "type", "document_content", and "hosted". You can optionally defined "hosted_expires_at" and/or "hosted_download_limit":

Leave all these options on their defaults:

Lastly, make sure you have a DocRaptor account and insert your API key followed by a pipe character "|" (it's normally above the backslash) with no spaces as the Basic Authentication key:

Click Continue and give everything a quick test.
Step 4: Do something with the PDF
That's all! From there, you'll have an awesome PDF and you can put it wherever you want. For this example, we'll post the forecast our chatroom:

If you have any problems or questions, please contact our support team at support@docraptor.com!