Skip to main content

API: Form Submission Retrieval and Deletion

Comments

7 comments

  • Judah Sali

    Is there an api for requesting a list of Forms? 

    0
  • GlennMC

    Hello Judah,

    Unfortunately, the API does not currently support returning a list of forms.

    /Glenn

    0
  • Sterling Swartwout

    What are the valid values for document_id? Didn't see any reference in my List of Data Records.

    0
  • Mike Stonitsch

    Yes this won't work

    What is document id?  It should end with [document_id].json   Where do we get document id?

     curl -v -k -u user:password -X GET https://api.prontoforms.com/api/1/data/[id]/documents/[document_id]

    0
  • Jacinta Sarpkaya

    Hi Mike,

    The document ID is the unique identification number of the document your form once it has been filled out and submitted. This essentially controls the ways you can view your data. 

    To find your document ID, 

    • In the web portal, mouse over the Manage Forms dropdown in the main navigation panel, and select* **Documents.*
    • Click on the name of the JSON document being used.
    • On the following page, look at the address bar of your web browser.  The document ID appears after "documents" in the URL. I've highlighted it in red in the image below.

    Doc_ID.png

     

    Is that helpful?

    0
  • Mike Stonitsch

    Thanks Jacinta,

    I can receive header data fine.

    My problem now is to retrieve "Detail" data I must have destination for my document setup?

    For example I have a JSON document created and tied it to the form and I have not created a "Destination".  When I make the API get call, it says:

    Your API call resulted in an error.  Please see the HTTP Headers for details.  Error message: Form Document Link Does Not Exist: Document 'JSON - Example' is not an additional document of Form 'Survey' (ID 9999999-9999-8888-aaaa-a4484884ssks)

    Thanks,

    Mike

    0
  • Jacinta Sarpkaya

    Hi Mike,

    Do you know if you have your JSON document as an "additional document available for download"?  Documents labeled as such are made available for download through the API, so turning on this setting may fix your issue. There is documentation on that here:  https://truecontext.zendesk.com/entries/94006786-The-Destinations-Tab#Additional.

    If you have that set up and it still isn't working, please let me know so I can create a support ticket for you. Our support team will be able to take a closer look.

    Thanks,

    Jacinta

     

    0

Please sign in to leave a comment.