Skip to content

Event catalog

Every event arrives with the same three-key envelope. What changes from one to another is type and the shape of data.

2 min read

The envelope

The body of every notification is a JSON object with exactly these three keys, in this order:

Read keys by name and do not reject an event because data carries a key you do not know.

Event types

How the type is built

The type is lowercase, made of letters, digits and separators (., _ or -), with no spaces. When it has a variable part, such as the short code in sms.mo.{shortCode}, that part goes at the end: an SMS sent to 87654 carries the type sms.mo.87654, both in type and in the X-Hablame-Event-Type header.

Need help?

Was this page helpful?

See all support channels