Status callbacks
How Comms tells your app a job's status changed, and how to verify the signature.
When a job a service queued changes status, Comms posts it to that service: to the job's callbackUrl if the send gave one, otherwise to the service's callback URL set under Services. The service needs a callback secret; Comms signs every callback with it.
The request
POST <your callback URL>
Content-Type: application/json
X-Comms-Signature: sha256=<hex HMAC-SHA256 of the raw body, keyed with your callback secret>
X-Comms-Delivery: <delivery id>
{"event":"job.status","jobId":"...","jobNumber":"KLVEA2612010001","kind":"email",
"recipient":"[email protected]","status":"delivered","providerUsed":"ses",
"at":"2026-12-01T04:00:12Z"}
lastError and detail are added when there is something to say (why it failed, what the provider reported).
Verify it
Compute the HMAC-SHA256 of the raw body with your callback secret and compare it, in constant time, with the header. Reject anything that does not match.
// Go
mac := hmac.New(sha256.New, []byte(secret))
mac.Write(body)
ok := hmac.Equal([]byte("sha256="+hex.EncodeToString(mac.Sum(nil))), []byte(r.Header.Get("X-Comms-Signature")))
Answer and retries
Answer with any 2xx within 10 seconds. Anything else is retried with growing waits, up to 8 attempts. The same change can arrive more than once: use X-Comms-Delivery or the job id and status to ignore repeats. Test sends never make callbacks.