How Webhooks Work
When an event occurs (like an invoice being paid), Alguna sends a notification to a URL you specify. Your application can then take action based on that event.Setting Up Webhooks
Step 1: Add a Webhook Endpoint
- Go to Settings → Connections → Developers → Webhooks
- Click New Webhook
- Optionally give it a Name, such as “Production invoice sync”, so you can tell endpoints apart in the list
- Enter the Webhook URL (provided by your development team)
Step 2: Select Events
In the same dialog, tick the events the endpoint should receive. They are grouped by area, such as invoices, payments and subscriptions; at least one is required. Click Create. To change the name, events or URL later, choose Edit from the endpoint’s actions menu in the list and click Save.Step 3: Copy the Webhook Secret
- After you create the endpoint, the Webhook Created dialog shows its signing secret. Copy it
- Share this with your development team for signature verification — every delivery is signed, and the handler should reject anything that fails verification. See Verifying signatures.
Available Events
Subscription Events
Invoice Events
Payment Events
Credit Events
Other Events
Every event’s payload is documented on the Webhooks reference. Payloads are camelCase.
Testing Webhooks
Send test events to verify your setup:- Go to Settings → Connections → Developers → Webhooks
- Select your endpoint
- Click Send Test Event
- Choose an event type
- Verify the event was received and its signature verified
Viewing Webhook History
Track webhook deliveries:- Go to Settings → Connections → Developers → Webhooks
- Select your endpoint
- Click Message Logs
- View delivery status, timestamps, and responses
Retry Policy
If delivery fails, Alguna retries automatically:
If every attempt fails for 5 days, the endpoint is disabled.
Troubleshooting
Webhook Not Received
- Check the endpoint URL is correct
- Verify the endpoint is publicly accessible
- Review Message Logs for error details
- Ensure your server responds within 15 seconds
Endpoint Disabled
- Check Message Logs for failure reasons
- Fix any issues with your endpoint
- Click Enable to reactivate
Best Practices
Test First
Use test events before going live.
Monitor Logs
Regularly check webhook logs for failures.
Secure Secrets
Never expose your webhook secret publicly.
Quick Response
Ensure your endpoint responds within 15 seconds.
Next Steps
Event Reference
See all webhook events and payloads.
Developer quick start
Verify signatures in Node or Python, and handle retries.
Automations
React to events inside Alguna — no endpoint needed.
Launch self-serve
The webhooks a self-serve flow depends on.