UKSIM Incoming SMS Webhook API v1
UKSIM sends normalized incoming SMS events to the HTTPS endpoint configured for your Webhook Access client. Delivery is at least once, so consumers must deduplicate by event ID.
Request
POST application/json; charset=utf-8
{
"id": "evt_01JABCDEF1234567890",
"type": "sms.received",
"from": "+447700900123",
"to": "+447700900456",
"text": "Your verification code is 123456",
"received_at": "2026-08-01T16:28:39Z"
}
The id field is the idempotency key. Partners must not depend on internal device, route, License, or database fields that are not part of this contract.
id— stable event identifier; unchanged across retries.type—sms.receivedfrom— numeric Sender in E.164 where possible; a custom profile may expose an alphanumeric Sender.to— canonical partner-facing receiving UK mobile number.text— UTF-8 SMS message content.received_at— SMS receipt time in ISO 8601 UTC.
Authentication
Standard Webhooks HMAC is recommended. Basic Auth is supported over HTTPS. Unauthenticated endpoints are Administrator-only and should be protected by an equivalent access control.
Webhook-IdWebhook-TimestampWebhook-Signature
Sign the exact raw request body using: Webhook-Id + "." + Webhook-Timestamp + "." + raw body. Decode the whsec_ secret from Base64, calculate HMAC-SHA256, compare in constant time, and reject timestamps outside a five-minute window.
With Basic Authentication, requests include Authorization: Basic base64(username:password). The Administrator-only None mode sends no credential and requires equivalent protection at the receiver.
Response and retries
Persist or enqueue the event before returning a 2xx response. Network failures, 408, 429, and 5xx responses are retried with bounded exponential backoff. Other 4xx responses are permanent failures. Redirects are not followed.
| Status | Meaning |
|---|---|
200 / 202 | Event durably accepted or safely deduplicated. |
400 | Invalid JSON or payload. |
401 | Authentication or signature failure. |
404 | Incorrect Endpoint path. |
408 / 429 / 5xx | Temporary failure; eligible for a bounded retry. |
Endpoint requirements
- Publicly resolvable HTTPS endpoint with TLS 1.2 or newer.
- Accept UTF-8 JSON and preserve the raw request body for signature verification.
- Process events idempotently using id.
- Do not use private, loopback, link-local, reserved, or cloud metadata addresses.
