Send a one-time verification code with a reference. The system generates the code and sends it by SMS; the code itself is not returned in the response.
destinationstringDestination number
originstringSender Name
templatestring?The message, which must include {code} (and may include {ref})
Register and manage your endpoint URLs from the developer dashboard (login required; not available via API key). Once registered, every event such as send success/failure, delivery results, and low credit is POSTed to your URL. Every payload is signed with HMAC-SHA256 (X-Webhook-Signature header).
urlstringThe HTTPS endpoint that will receive events
eventsstring[]The list of events you want to receive
Request
# Webhook endpoints are registered + managed in the
# developer dashboard (logged-in). Registration is not
# available to API keys. Registration payload:
{
"url": "https://your-app.com/hooks/sepsms",
"events": ["dr.success", "dr.failed"]
}
Response
// POST sent to your URL. The event name, timestamp and
// signature travel in headers, not the body:
// X-Webhook-Event: dr.success
// X-Webhook-Timestamp: 1737020405
// X-Webhook-Signature: t=1737020405,v1=<hmac-sha256>
{
"smsUuid": "9f8b2c1e-...",
"msisdn": "66812345678",
"txId": "8f3a1c9d...",
"status": "success"
}