QUICK START GUIDE
This guide walks you through sending your first webhook with PatternHooks. By the end, you'll understand the core concepts and have a working integration. No prior webhook experience required.
IN THIS GUIDE
0PREREQUISITES
Before you begin, make sure you have the following:
Sign up free — no credit card required
Or Python 3.8+, Go 1.18+, Ruby 2.7+
We'll create a test one using webhook.site
VS Code, Sublime, or your favorite
1GET YOUR API KEY
Your API key authenticates requests to the PatternHooks API. Each key is scoped to either test or live mode.
- Log into the PatternHooks Dashboard
- Navigate to Settings → API Keys
- Click Create API Key
- Select Test Mode (we'll use live mode later)
- Copy the key — it starts with
sk_test_
Never commit API keys to version control or expose them in client-side code. Use environment variables instead: export PATTERNHOOKS_API_KEY=sk_test_xxx
2INSTALL THE SDK
We offer official SDKs for all major languages. Choose your preferred language:
Node.js
Python
Go
Ruby
The Node.js SDK includes full TypeScript definitions. No additional packages needed — just import and go!
3CREATE AN APPLICATION
Applications are containers for webhooks, typically representing one of your customers. Let's create one:
The uid field is optional but highly recommended. It allows you to look up applications by your internal customer ID later, which is much more convenient than storing our app IDs.
4ADD AN ENDPOINT
Endpoints are the URLs where webhooks will be delivered. For testing, we'll use webhook.site — a free service that gives you a unique URL to inspect incoming requests.
- Visit webhook.site
- Copy your unique URL (looks like
https://webhook.site/abc-123-...) - Create an endpoint:
The endpoint's signing secret (whsec_...) is used to verify webhook authenticity. Store it securely — you'll need it to verify incoming webhooks on your server.
5SEND YOUR FIRST EVENT
Now for the exciting part — let's send a webhook!
That's it! PatternHooks will now:
- Sign the payload with the endpoint's secret
- Deliver the webhook to the endpoint URL
- Automatically retry if the endpoint is unavailable
- Record the delivery attempt for monitoring
6VERIFY DELIVERY
Let's confirm the webhook was delivered successfully:
Option A: Check webhook.site
Go back to your webhook.site page. You should see the incoming request with:
- The JSON payload you sent
- Headers including
webhook-id,webhook-timestamp, andwebhook-signature - Content-Type:
application/json
Option B: Check the Dashboard
- Go to the PatternHooks Dashboard
- Navigate to Applications → Acme Corporation → Messages
- You'll see your message with delivery status
Option C: Check via API
You've successfully sent your first webhook with PatternHooks! You now understand applications, endpoints, and messages — the core concepts of the platform.
NEXT STEPS
Now that you have the basics down, here's what to explore next:
- Verify Webhook Signatures — Essential for security in production
- Configure Retry Policies — Customize retry behavior for your needs
- Local Development — Test webhooks on localhost with our CLI
- API Reference — Full documentation for all endpoints
- Handle Idempotency — Safely process duplicate webhooks