Webhooks
When something you care about happens, Hablame sends a signed POST to a URL of yours. Today there are two events: the SMS that someone sends to your short code and the final status of each SMS you send through the API v6.
4 min read
How it works
- 01You request your endpoint registration
You send support your URL and the events you want to receive, and the Hablame team registers the endpoint. You get the signing secret in Cloud, only once. Set up webhooks.
- 02An event happens
When someone texts your short code, or when an SMS you sent through the API v6 is done, Hablame sends your endpoint a
POSTwith the event as JSON. Inbound SMS and SMS final status. - 03You verify and drop duplicates
You check the signature with your secret and never process the same
X-Hablame-Delivery-Idtwice. Verify signatures. - 04You respond 2xx in time
You have 15 s. If no 2xx arrives, Hablame retries for 72 hours. Delivery and retries.
Available events
| Type | What it means | Details |
|---|---|---|
sms. | Someone sent an SMS to your short code. | Inbound SMS |
sms. | An SMS you sent through the SMS API v6 (/) reached its final status: delivered, failed or blocked. | SMS final status |
What a notification looks like
Each notification is a POST with a three-key JSON body, id, type and data, plus headers carrying the signature and the delivery identifier.
POST /webhooks/hablame HTTP/1.1
Host: tu-dominio.com
Content-Type: application/json
User-Agent: Hablame-Webhooks/1
X-Hablame-Event-Type: sms.mo.87654
X-Hablame-Delivery-Id: wdl_01K8F3Q2Z9X7V4N6B5C2D1E0FA
X-Hablame-Timestamp: 1792854247
X-Hablame-Signature: sha256=333ed7a2b59cd8511cfefec69da4e04d6ef9925444f1225a97f729512b2ff04b
Idempotency-Key: wdl_01K8F3Q2Z9X7V4N6B5C2D1E0FA
{"id":"0192f0c47b1e7a3d9c553e2a1b4c5d6e","type":"sms.mo.87654","data":{"shortCode":"87654","from":"573001234567","text":"Hola, quiero más información","receivedAt":"2026-10-24T15:04:05Z","messageId":"0192f0c4-7b1e-7a3d-9c55-3e2a1b4c5d6e"}}What you need to know
- A notification can arrive more than once. If your response does not arrive in time, it is retried with the same
X-Hablame-Delivery-Id: use it to drop duplicates. - Only a 2xx counts as delivered. A redirect, a 4xx, a 5xx or no response at all is retried.
- There is no attempt limit. A notification stops being retried once it is 72 hours old without being delivered.
- The endpoint is never disabled automatically. If it goes down, it gets fewer attempts in the meantime, and as soon as it responds 2xx it catches up.
- Order is not guaranteed. Each delivery process sends up to 32 notifications at once to the same endpoint, and there can be several.
- There is no manual resend. A notification your system lost after responding 2xx will not arrive again.