I'm building a solution involves saving form data and a PDF version of the data on a remote server from ProntoForms. A form submission creates a PDF of the data and send the JSON to a Web API endpoint (that will do the work). The plan is for that Web API to call the ProntoForms API to retrieve the PDF document and attach it to the data on the remote server (via its id).
I know the format for that API cal for retrieving the document_idl is:
What I don't know is how to retrieve that document_id without the use of the Admin portal (as the example on the Support API page says to do, which isn't applicable in my case). Is there any way to get that document_id either in the JSON itself that is initially created or through the API? Not having a way to do this doesn't make sense to me so I feel I am missing it: this is all programming via API, so retrieving a document_id from a website isn't applicable.