App Documentation

Netlify Function: incomingWebhook.js

This function serves as the main entry point for handling incoming webhooks.

Main Handler

The main exported handler in this function does the following:

Utility Functions

Dependencies

The function makes use of the following dependencies:

Backend Functions

This main function relies on a couple of backend utility functions imported from other modules:

Function: saveWebhook.js

This function is responsible for saving the incoming webhook data to an AWS S3 bucket.

Workflow

Dependencies

The function leverages the following modules:

Environment Variables

The function utilizes the following environment variables:

Output

Upon successful storage of the webhook data into the S3 bucket, the function returns a success message with a 200 status code, indicating the filename where the data was stored. If there is an error during the process, it logs the error and returns a 500 status code with an error message.