Jotform API: Approval/Deny API is missing

  • In2_JotForm1
    Asked on October 12, 2021 at 11:19 AM

    under the workflow the approval / deny parameters are not available in the api. is it going to be available soon?

  • Tommi_N
    Replied on October 12, 2021 at 12:17 PM

    Hi In2_JotForm1,

    We are unable to give any time estimation for upcoming features, but I have now escalated your feature request to our developer team's attention to add weight on the issue.

  • Umut JotForm Developer
    Replied on February 4, 2022 at 5:41 AM

    Hello,

    You can now get the workflow status on our endpoints:

    GET /submission/{submissionID}
    GET /form/{formID}/submissions

    It can be seen as "workflowStatus" in the API response. You will get a response something like this:

    {
    "responseCode": 200,
    "message": "success",
    "content": {
    "id": "SUBMISSION-ID",
    "form_id": "FORM-ID",
    "ip": "SOME-IP-ADDR",
    "created_at": "2022-01-28 04:45:57",
    "status": "ACTIVE",
    "new": "0",
    "flag": "0",
    "notes": "",
    "updated_at": "2022-01-28 04:46:20",
    "answers": {},
    "workflowStatus": "Approve"
    },
    "duration": "95.28ms"
    }

    By default, if the submission is denied status will be "Deny" and if the submission is approved status will be "Approve".

    You may wonder why don't just return "APPROVED" or "DENIED" as API response. That's because Jotform supports custom workflow actions:

    rpn0oVJdX4FDoVj Bg5wRjFraUemyUUWNHkfMu 1 Screenshot 10

    In this workflow if you select Custom, in the API response workflowStatus will be "Custom".

    If you need further assistance feel free to let us know.