How do I POST the submissions on the form?

  • santamonicakennel
    Domanda del 6 dicembre 2023 alle ore 15:48

    Salve, sono 2 giorni che mi leggo la documentazione sull'argomento ma dopo diversi tentativi non riusciti, chiedo cortesemente a voi. Con altri servizi sono riuscito facilmente ma con Jotform non riesco a capire quale url inserire per utilizzare URL POST sul nostro sito web. Allego uno screenshot al riguardo. Sono in possesso della API key e dell'ID del form interessato. Grazie

    Jotform Thread 9802383 Screenshot
  • Sweta Jotform Support
    Risposta del 7 dicembre 2023 alle ore 00:51

    Hi santamonicakennel,

    Thanks for reaching out to Jotform Support. Unfortunately, our Italian Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Italian, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. Would you like to add a submission to the form? Take a look at this API to POST your submissions.

    Adding a request body to your API call is easy. Let me show you how:

    • At first, you can get the list of question IDs from form/{id}/questions API call. Check out the response that I have got using the following call:
    https://api.jotform.com/form/231013768294053/questions?apiKey=fdbbb0056d901f

    API: Sending form submissions through API Image 1 Screenshot 40 Screenshot 10

    Next, you can put the following in the request parameter of the API call:

    • submission[3]=Data entered in question 3. In this example, the third question is a full-name question.
    • submission[4]=Data entered in question 4. In this example, the fourth question is an email question.
    • submission[5]=Data entered in question 5. In this example, the fifth question is a phone number question.

    API: Sending form submissions through API Image 2 Screenshot 51 Screenshot 21

    Check out the sample URL:

    https://api.jotform.com/v1/form/231013768294053/submissions?apiKey=7hg901fdcyghv&submission[3]=Sweta Shaw&submission[4]=sweta.s@j.com&submission[5]=1231231234

    You can generate a new API key or use your existing API key. To access your API key:

    • Go to the API tab and click Create New Key or copy the existing keys.my account create new key min Screenshot 73 Screenshot 32

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