Email Notification Webhook

  • mnmkng/email-notification-webhook
  • Modified
  • Users 37
  • Runs 33.6k
  • Created by Author's avatarOndra Urban

This actor sends you an email notification with a log file when one of your other actors fails, succeeds, times out, you name it.

This actor sends you an email notification with a log file when one of your other actors fails, succeeds, times out, you name it.

How to use

Choose the actor you'd like to get notifications for and simply create a webhook for that actor and copy the following URL into the webhook's URL field, replacing {YOUR_API_TOKEN} with your token.

https://api.apify.com/v2/acts/mnmkng~email-notification-webhook/runs?token={YOUR_API_TOKEN}

Select the desired event types and save the webhook. You should now receive an email notification including a log file whenever the selected events take place. The email will be sent to the email associated with your account by default. If you wish to send the notification to a different email, update the default webhook payload template with the desired notificationEmail:

{ "notificationEmail": "my.notifications@email.com" "userId": {{userId}}, "createdAt": {{createdAt}}, "eventType": {{eventType}}, "eventData": {{eventData}}, "resource": {{resource}} }

Why is it useful

It's great to know immediately when something goes wrong with one of your actors. I suggest setting up the webhook for the ACTOR.RUN.FAILED and ACTOR.RUN.TIMED_OUT events. This way, you'll always know right away and you can even check the log file immediately to see if the failure requires your attention.