Public endpoints and webhooks
Which public URLs Metron exposes, who calls them, and how each is authenticated. Use this when a bank, Meta, SmartOLT or Safaricom asks for a callback address.
Provider callbacks you give to others#
| Provider | What it sends | Authentication |
|---|---|---|
| Safaricom (M-Pesa) | C2B validation and confirmation, STK callback, B2C result and timeout | A key in the URL generated for your paybill, plus Safaricom's source address checks |
| Banks | Payment notifications | A signature with your bank secret, and a token in the URL |
| SmartOLT | OLT and ONU events | A token in the URL, rotatable in the connection |
| Meta (WhatsApp) | Messages and delivery receipts | Meta's signature and the phone number ID |
| SMS provider | Delivery reports | Provider callback |
You never type these URLs by hand. Copy them from the relevant connection in the Integrations Console.
Endpoints your customers use#
| Purpose | What it is |
|---|---|
| Customer login | Sign in with account and PIN, request a PIN reset code |
| Hotspot | List plans, buy by STK push, redeem a voucher, check status |
| Support tickets | Create a ticket |
| Leads | A lead form on your website |
| Outages | Active outages for your public outage page |
| Speed test | Record a customer's speed-test result |
| Public brand | Your name, logo and colours for the portal |
These answer only on a host registered to your ISP.
Jobs#
The scheduled jobs call authenticated endpoints with a bearer secret. They are not for outside use. See Automations and schedules.
Rules that apply to all of them#
- Tenant comes from the host or token, never from the request body. A caller cannot choose another ISP by sending an ID.
- Public endpoints answer 404 on a host that is not registered to an ISP.
- Callback bodies are size-capped and rate-limited per source address.
- Metron stores the raw payment callback first, then processes it, so a processing failure cannot lose a payment.
Something missing or wrong in this guide?WhatsApp usEmail feedback