Quickstart
Send your first webhook in five minutes: create an app, add an endpoint, send an event.
5 min read
This guide uses test mode, so nothing reaches a real customer. You need a Sluice account and a terminal. The examples use Node.js, and the Python and Go pages show the same steps in those languages.
1. Get a test key
Open the dashboard, go to Settings, then API keys, and copy the key that starts with sk_test_. Keep it on your server. Never put a secret key in a browser or a mobile app.
2. Install the library
3. Create an app for a customer
An app represents one of your customers. Use your own ID for it, so you never have to store ours.
4. Add an endpoint
For this test, point the endpoint at a request inspector such as a free bin from any webhook testing site, or at a local tunnel to your laptop.
5. Send an event
Within a second the endpoint receives a signed POST request. Open Logs in the dashboard to see the attempt, the response code and the time it took.
Next steps
Verify signatures before you trust a webhook in production
Read the retry schedule so you know what happens when an endpoint fails
Switch to a
sk_live_key when you are ready, as described in Test and live mode
Something missing or wrong on this page? Tell us at support@sluicehq.dev and we will fix it.