API to retrieve a submission PDF

  • Profile Image
    connor.mooney
    Asked on March 24, 2021 at 05:22 PM

    Hi all,

    My team is looking to make use of Jotform APIs for retrieving submission data and uploaded files. The API documentation is pretty good, but I'm not seeing an API listed that will download the submission PDF that gets generated by the PDF Editor tool, similar to the PDFs that are generated and attached to the emails. Does such an API exist, and can you point me to the documentation for that?

    Thank you,

    Connor

  • Profile Image
    gerardw
    Answered on March 25, 2021 at 01:05 AM

    Hello Connor,

    There's no API endpoint for automatic PDF download or for retrieving the actual PDF file but you can construct the PDF link manually through API so you can download the PDF file. 

    You can use the following URL to download the PDF file.

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

    Or

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

    Just replace the bold text (SubmissionID and FormID) with the actual submission ID and form ID that you retrieved through API.

    Here is a guide on how to get the submission ID: https://www.jotform.com/help/549-where-to-find-the-submission-id

    If you need further assistance, let us know.