Skip to main content
Question

Webhooks returns base64 PDF, how do I turn it into a single “file” output for later steps?

  • November 25, 2025
  • 2 replies
  • 11 views

Mercology
Forum|alt.badge.img+5

I’m pulling a PDF from an external API using Webhooks by Zapier (GET). The request works (I can download and view the PDF outside Zapier), but the API returns PDF in raw PDF content inside JSON. How do I convert the file into a single file object I can attach in later steps (Google Drive upload / Gmail attachment)?

Here is a sample of  the content returned: “%PDF-1.4\n1 0 obj\n<< /Type /Catalog\n/Pages 2 0...”

2 replies

AndrewJDavison
Forum|alt.badge.img+11
  • Zapier Solution Partner
  • November 25, 2025

@Mercology 

I tried to solve this by building a micro-API with a vibcoding tool called Replit, then webhooked the base64 string over to it and got back the file.

It worked, however most base64 strings being sent were too long and Zapier throttled them from being sent out. 

In the end I gave up.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • November 25, 2025

Hi ​@Mercology 

Give this a try…

Zap action: Files by Zapier - File from Text