-
edwardzevAsked on February 5, 2025 at 3:10 AM
hi
I wonder if there is a way to pass the pdf doc that are automatically generated via webhook. along with the submission data.
thanks
-
Angelica JotForm SupportReplied on February 5, 2025 at 2:36 PM
Hi Edward,
Thanks for reaching out to Jotform Support. Unfortunately, it's not possible to pass the PDF that are automatically generated via Webhook as this only delivers data. But, you can dynamically generate the PDF link and retrieve the report via a straightforward HTTP request programmatically. To request the PDF Submission Report for any submission, you'll need to use this URL format:
https://www.jotform.com/server.php?action=getSubmissionPDF&sid=[Submission-ID]&formID=[Form-ID]
Replace [Submission-ID] and [Form-ID] with the actual values. With this link, you can programmatically fetch the PDF report via HTTP call. You might also want to check out this guide on Where to Find the Submission ID.
Give it a try and let us know if you need any other help.
-
jlegalReplied on February 14, 2025 at 8:16 AM
The problem is that you still need to expose your data for all to see by disabling "Require log-in to see submissions" which is a terrible idea. Unless this has been fixed? So many tickets opened about this topic already.
-
Christopher JotForm SupportReplied on February 14, 2025 at 8:23 AM
Hi jlegal,
You do not have to disable Require log-in to see submissions when using the API provided by my colleague. You can simply add your API key as a URL parameter as provided below.
https://www.jotform.com/server.php?action=getSubmissionPDF&sid={Submission ID}&formID={Form ID}&apikey={API key}
You can get your API key via the API page.
Give it a try and let us know how it goes.
-
jlegalReplied on February 14, 2025 at 8:25 AM
-
Christopher JotForm SupportReplied on February 14, 2025 at 8:42 AM
Hi jlegal,
To avoid confusion, I have moved your new concern to this thread.
Let us know if there’s anything else we can help you with.