Sign Documents is Empty when retrieved using API

  • tdhmarketingdrive
    Asked on September 18, 2024 at 9:25 PM

    Hello, when I click my forms it is always empty.

    I also try to retrieve the forms from api endpoint https://api.jotform.com/user/forms?apiKey=YOUR_API_KEY and the content is always empty.


    Is it due to the free plan I am currently using?


    regards

  • Blake JotForm Support
    Replied on September 19, 2024 at 2:00 AM

    Hi tdhmarketingdrive,

    Thanks for using Jotform. You can create forms and make API calls with your free plan. I see you have 8 forms in total in your account. Can you describe the issue a bit more and the screenshots of what’s happening? This guide will show you how to do that.

    Once we hear back from you, we'll be able to move forward with a solution.

  • tdhmarketingdrive
    Replied on September 19, 2024 at 8:32 AM

    That´s how I see my platform when I click all forms and try to retrieve the forms form API using my key.



    Sign Documents is Empty when retrieved using API Image 1 Screenshot 30Sign Documents is Empty when retrieved using API Image 2 Screenshot 41

  • Angelica JotForm Support
    Replied on September 19, 2024 at 10:00 AM

    Hi tdhmarketingdrive,

    That helped me to understand what’s happening. I'll need a bit of time to look into this. I’ll get back to you as soon as I can.

    Thanks for your patience, we appreciate it.

  • tdhmarketingdrive
    Replied on September 19, 2024 at 10:04 AM

    Ok,

    Thanks

  • Angelica JotForm Support
    Replied on September 19, 2024 at 10:21 AM

    Hi tdhmarketingdrive,

    When I checked your account, I saw that you have Signed Documents. Can you check your My Signed Documents trash and see if you can retrieve your data? Let me show you how:

    1. In your My Forms page, click the arrow down button.
    2. Select My Sign Documents. Sign Documents is Empty when retrieved using API Image 1 Screenshot 30
    3. On the left side of the screen of your My Sign Documents page, click on Trash.
    4. Select the document that you want to retrieve.
    5. Click on Restore.
    6. Go back and click All Sign Documents.Sign Documents is Empty when retrieved using API Image 2 Screenshot 41

    If you run into the same issue again, let us know, and we'll do some more testing to see what's going on. 

    Keep us updated and let us know if you need any more help.

  • tdhmarketingdrive
    Replied on September 19, 2024 at 10:29 AM

    I moved to trash and it is empty.

    The form are in the tab All Sign Documents, however I cannot retrieve them from the API.

    Sign Documents is Empty when retrieved using API Image 1 Screenshot 20

  • Afzal JotForm Support
    Replied on September 19, 2024 at 11:47 AM

    Hi tdhmarketingdrive,

    I tested the below API endpoint to see if I could replicate the issue, and I ran into the same issue:

     https://api.jotform.com/user/forms?apiKey=YOUR_API_KEY

    The reason you are not able to get the Sign Documents using the above endpoint is because the Sign Documents are considered as reports. To get the submission on the Sign Documents in a PDF document you can use the below endpoint:

    https://jotform.com/server.php?action=getSubmissionPDF&sid={submission_ID}&reportid={submission_ID}&apikey={API_key}

    Here's the result:

    Sign Documents is Empty when retrieved using API Image 1 Screenshot 20

    Give it a try and let us know how it goes. 

  • tdhmarketingdrive
    Replied on September 19, 2024 at 11:50 AM

    Well,


    I actually need to get those IDs in order to fetch the signed documents and insert them in my database. Let´s consider, after signing a document, I will not have the IDs, I need to first get the IDs and then use the end point to retrieve the data.

    How to manage this situatio?


    Regards

  • Christopher JotForm Support
    Replied on September 19, 2024 at 12:49 PM

    Hi tdhmarketingdrive,

    You can retrieve all the submission data via API from your Signed Document with the provided API below.

    https://api.jotform.com/form/{form ID}/submissions?apiKey={apiKey}

    Give it a try and let us know how it goes.

  • tdhmarketingdrive
    Replied on September 19, 2024 at 2:58 PM

    Hello Christopher. Let me explain my situation. I am currently developing an application and I need to sign agreement between two parts. I am considering to use Jotform to sign documents, but I need also to keep the documents saved in my database. Could you tell me the steps to have this task done using the API?

    reagrds

  • Kyle JotForm Support
    Replied on September 19, 2024 at 3:23 PM

    Hi tdhmarketingdrive,

    To integrate Jotform’s signed documents into your application and save them in your database, we need to use the endpoint to get all submissions for a specific form below, as provided by my colleague Christopher:

    https://api.jotform.com/form/%7Bform ID}/submissions?apiKey={apiKey}

    To get the PDF document, use the API provided below:

    https://jotform.com/server.php?action=getSubmissionPDF&sid={submission_ID}&reportid={submission_ID}&apikey={API_key} 

    Give it a try and let us know if you have any other questions.

  • tdhmarketingdrive
    Replied on September 19, 2024 at 3:58 PM

    Well when I get this endpoint, I do not see any submissionID.


    Regards


    Sign Documents is Empty when retrieved using API Image 1 Screenshot 20

  • Paolo JotForm Support
    Replied on September 19, 2024 at 4:50 PM

    Hi tdhmarketingdrive,

    The submission ID is embedded within the endpoint you shared. This unique identifier allows us to track and retrieve the specific form submission in question. You can verify and cross-check if the IDs match by following the instructions provided in this guide. For your reference, I've included a screenshot below that highlights exactly where the submission ID appears within the endpoint.

    Sign Documents is Empty when retrieved using API Image 1 Screenshot 20

    Let us know if you have any other questions.

Your Answer