Handle webhook integration that fails

  • Kelvin McCarthy
    Asked on March 21, 2021 at 7:55 PM

    Hi,

    I'm setting up a form that uses webhook integration to call an external API. So far, everything's working fine! I'm trying to find out what happens when the external API is offline or unreachable. I can't see any where in Jotform (submission, logs, etc.) that tells me that the webhook failed to complete.

    I expect that the external API will be up all the time but, just in case, I want to know how to handle failed webhooks. Can you please help?

    Thanks!

  • Vanessa_T
    Replied on March 22, 2021 at 1:43 AM

    Unfortunately, we do not have logs for failed webhooks.

    If the webhook fails, it's either your webhook is unreachable, or the API may have reached your API but your script failed.

    If for the second scenario, then you can add a log once the API reaches your webhook, then you can add something in your script as well that logs if the script successfully finished or not.