WebhookPayload
Webhook delivery body. Always exactly one entry in messages — Landbot never batches.
- messagesType: array · WebhookMessage[]required
A single webhook message. Discriminated on
type.A single webhook message. Discriminated on
type.- typeDiscriminatorenumconst:textrequiredvalues
- text
- channelType: object · WebhookChannelrequired
The channel the customer is conversing on.
- customerType: object · WebhookCustomerrequired
The customer this message belongs to. Custom variables (Fields/Hidden Fields) appear as ADDITIONAL top-level keys here and may be type-mangled (e.g. a list arrives as the Python-repr string "['a','b']"). Treat custom values as strings unless the source block guarantees otherwise.
- dataType: objectrequired
- senderType: object · WebhookSenderrequired
Who originated this message.
- timestampType: numberrequired
Unix epoch SECONDS (not ms, not ISO). Web → microsecond float; WhatsApp customer-sent → integer; WhatsApp bot/agent-sent → float. Preserved across retries.
- _rawType: object · WebhookRaw
The unwrapped raw message as Landbot represents it internally — fields not surfaced in
data.