@flatfile/plugin-webhook-event-forwarder
A plugin to forward Flatfile Events to specified http endpoints for headless workflows.
When embedding Flatfile, this plugin should be deployed in a server-side.
@flatfile/plugin-webhook-event-forwarder
The @flatfile/plugin-webhook-event-forwarder"
plugin listens for Flatfile
Events and forwards them to a given endpoint via webhook. This allows for
language-agnostic processing of Flatfile Events and allows for receiving
data back from the given endpoint for robust processing workflows.
Parameters
The URL to send the webhook requests to. If not specified it will attempt to get the URL from your environment file. If not specified through either method it will fail.
A callback to run after the request completes. If the callback returns data,
it will be included in the job:outcome-acknowledged
event generated by the
request competion.
API Calls
api.events.create
Imported NPM Packages
-
@flatfile/api@1.5.37
is the official Flatfile SDK for JavaScript. -
@flatfile/cross-env-config@0.0.3
is a utility for getting environement variables. -
@flatfile/listener@0.3.17
is a library for listening to Flatfile Events. -
@types/express@4.17.21
types for Express. -
axios@1.6.1
is a tool for making webhook requests.
Usage
For workflows which process Flatfile Events outside of the listener file, use
the desired endpoint that the webhooks are to be sent to. For testing, use a
basic webhook.site
endpoint.