API documentation: request to add API link to download PDF to the documentation page

  • brfi
    Asked on March 16, 2023 at 11:46 PM

    How can I download the original PDF with the submission data via the Jotform API?

  • Lyla JotForm Support
    Replied on March 17, 2023 at 3:01 AM

    Hi brfi,

    Thanks for reaching out to us for help. We do not have an API endpoint to download the PDFs automatically or get the actual PDF files, but you can construct the PDF link manually via API so that you can download the PDF files. Please use the URL below to download the PDF file:

    https://www.jotform.com/server.php?action=getSubmissionPDF&sid=SubmissionID&formID=FormID

    You can also use this URL below:

    https://www.jotform.com/pdf-submission/SubmissionID

    You need to replace the SubmissionID and FormID (bolded) with the actual submission ID and form ID you retrieved through API.

    Reach out again if you have any other questions.

  • brfi
    Replied on March 17, 2023 at 4:28 PM

    It seems like it is possible but there's no documentation on it.

    https://api.jotform.com/pdf-converter/{formId}/fill-pdf?download=1&submissionID={sumissionID}&apikey={apiKey} would work and was mentioned as an answer for some similar questions. Is this something that is officially supported? If yes, can you please add documentation for that?


  • Girish JotForm Support
    Replied on March 19, 2023 at 12:24 AM

    Hi brfi,

    Yes, that link is supported. However, we've gone ahead and escalated your request to our developers to add this to our API documentation. But when or if it's developed depends on their workload, how viable it is, and how many other users also request it. If there are any updates, we’ll circle back to this thread and let you know.

    Thanks for your patience and understanding, we appreciate it.

  • James
    Replied on March 26, 2023 at 1:08 AM

    We were receiving errors after receiving the webhook of a completed form, the system was immediately requesting the pdf using the previous methods. A week ago we started getting 501 timeouts.
    my thought is build in a pause before requesting pdf. Potentially it is being assembled? We will try 3 minutes this week to see if it cures the issue.
  • Billy JotForm Support
    Replied on March 26, 2023 at 7:15 AM

    Hi James,

    Thank you for reaching out to Jotform Support. Your question was moved to a different thread and will be answered shortly. Please find the thread here.