Events
Invent a New Signal
Teach Mailofly about a brand-new signal and what goodies it can carry in its backpack.
POST
Before your app starts shouting signals to Mailofly, you can register a new event definition!
This teaches Mailofly what name the signal will use (like
user.signed_up) and what properties to expect in its backpack (like first_name or plan).
Body
string
required
The unique name for this signal! Usually written with dot notation, like
"user.signup" or "item.purchased".object
A map of expected backpack items and their types (
string, number, or boolean). For example:Response
string
Always says
"event".string
The unique ID badge assigned to this new signal definition.
