Webhook Configuration
Webhooks allow Sangho to notify your server in real time when events occur on your account. You can create and manage your endpoints from the dashboard or via the Webhooks API.
Create an endpoint from the dashboard
- 1. Go to Dashboard → Developers → Webhooks.
- 2. Click Add an endpoint.
- 3. Enter your server's HTTPS URL.
- 4. Select the events to listen for (or All events).
- 5. Click Create — copy the
webhook_secretshown only once.
Endpoint requirements
- Valid HTTPS URL (HTTP rejected except
localhostin Sandbox). - HTTP
200response within 30 seconds. - Response body is ignored — only the HTTP status code matters.
- Endpoint must be publicly accessible from the internet.
Always respond HTTP 200 immediately, even if business
processing fails. Handle errors in the background to avoid unnecessary redeliveries.
See the Idempotency guide for
handling duplicates.
Minimal endpoint (Express)
Retry policy
If your endpoint does not respond 200 within 30 seconds,
Sangho retries delivery 10 times with exponential backoff.
| Attempt | Cumulative delay |
|---|---|
| 1 | Immediate |
| 2 | +5 min |
| 3 | +15 min |
| 4 | +30 min |
| 5 | +1 h |
| 6 | +2 h |
| 7 | +4 h |
| 8 | +8 h |
| 9 | +16 h |
| 10 | +24 h then +48 h |
Test an endpoint
From an endpoint’s detail page in the dashboard, click Send a test event. Select the event type and Sangho sends a real payload to your endpoint. You can also do this via the API:
To test your endpoint during local development, use ngrok or localtunnel to expose your local server via a public HTTPS URL.