How Webhooks Work
Once you subscribe to a service, Dojah will send an HTTP (usually a POST or a GET) request to your webhook URL whenever the relevant event occurs. Dojah’s request will include details of the event such as the service type and webhook URL. Dojah’s Webhook services allow you to subscribe for webhooks, fetch all subscriptions, and also delete a webhook service.Subscribe to a Webhook
Subscribe to a Webhook
To start receiving webhooks, make a POST request with the service you want to monitor and the URL where Dojah should send updates. There is also the option of subscribing via the dashboard.
- From the Dashboard (No Code)
- Via the API
- Go to Developers > Webhooks
- Click “Subscribe”
- Fill in the form:
- App Name – Select the app you want the webhook tied to
- Webhook URL – Enter the endpoint where Dojah will send events
- Service Name – Choose the service (e.g., KYC Widget, NGN Wallet)
Fetch all Webhooks
Fetch all Webhooks
To retrieve a list of all active webhook subscriptions:Request UrlAuthorization
Response
| Header | Type | Description |
|---|---|---|
AppId | string | Create an app to get your app ID on dashboard here |
Authorization | string | public secret key |
Delete Webhooks
Delete Webhooks
This endpoint allows you to delete webhooks that no longer serve you. You can either delete via API or easily delete via the dashboard.Request URLAuthorization
Body Parameter
Response
| Header | Type | Description |
|---|---|---|
AppId | string | Create an app to get your app ID on dashboard here |
Authorization | string | public secret key |
| Parameter | Type | Description | Required |
|---|---|---|---|
service | string | Type of services [ sms, ngn_wallet] | yes |