Skip to main content
POST
Webhook Endpoints
You can configure webhook endpoints via the API to be notified about events that happen in your Pursar account, such as successful mobile money charges, completed payouts, or updated customer identity sessions.

Create a Webhook Endpoint

string
required
The HTTPS URL where Pursar should deliver event payloads.
array
required
The list of event types to subscribe to (e.g. ["charge.successful", "payment_intent.succeeded", "payout.paid"]). Use ["*"] to subscribe to all events.
string
An optional description of what this endpoint is used for.

Code Examples


Response

The secret field (whsec_...) is the endpoint’s unique HMAC signing secret. Store it securely on your server to verify incoming webhook signatures.

List Webhook Endpoints

GET /webhook_endpoints Returns a list of all configured webhook endpoints.
cURL