Learn how to set up a webhook to receive event data from Fungies.
To start receiving webhook events in your app, create and register a webhook endpoint by following the steps below:
You can register and create one endpoint to handle several different event types at once, or set up individual endpoints for specific events.
Set up an HTTP or HTTPS endpoint function that can accept webhook requests with a POST method. If you’re still developing your endpoint function on your local machine, it can use HTTP. After it’s publicly accessible, your webhook endpoint function must use HTTPS.
Set up your endpoint function so that it:
To register your endpoint, go to the Fungies Dashboard and navigate to the Developers -> Webhooks
section.
Click the Create a webhook
button and fill in the form with the following information:
https://...
url you copied in the previous step.Click the Save
button to register your endpoint.
From now on, your endpoint will receive events from Fungies and you can start processing them.
We highly recommend you secure your endpoint by ensuring your handler verifies that all webhook request are generated by Fungies. This can be done by verifying the signature of the event using the secret key you provided when registering the endpoint.
The x-fngs-signature
header included in each signed event contains the signature and is prefixed by sha256_
.
Fungies generates signatures using a hash-based message authentication code HMAC with SHA-256.
In order to verify the signature, you should use the secret key you provided when registering the endpoint and the raw body of the request.
Learn how to set up a webhook to receive event data from Fungies.
To start receiving webhook events in your app, create and register a webhook endpoint by following the steps below:
You can register and create one endpoint to handle several different event types at once, or set up individual endpoints for specific events.
Set up an HTTP or HTTPS endpoint function that can accept webhook requests with a POST method. If you’re still developing your endpoint function on your local machine, it can use HTTP. After it’s publicly accessible, your webhook endpoint function must use HTTPS.
Set up your endpoint function so that it:
To register your endpoint, go to the Fungies Dashboard and navigate to the Developers -> Webhooks
section.
Click the Create a webhook
button and fill in the form with the following information:
https://...
url you copied in the previous step.Click the Save
button to register your endpoint.
From now on, your endpoint will receive events from Fungies and you can start processing them.
We highly recommend you secure your endpoint by ensuring your handler verifies that all webhook request are generated by Fungies. This can be done by verifying the signature of the event using the secret key you provided when registering the endpoint.
The x-fngs-signature
header included in each signed event contains the signature and is prefixed by sha256_
.
Fungies generates signatures using a hash-based message authentication code HMAC with SHA-256.
In order to verify the signature, you should use the secret key you provided when registering the endpoint and the raw body of the request.