01
Handler flow#
Read the raw body, verify x-botinbox-signature, acknowledge quickly, enqueue work, then use inbox_id and message.id from the payload to retrieve context and reply.
02
Operational behavior#
Use x-botinbox-event-id for idempotency. BotInbox retries failures, so the receiver must safely handle duplicate delivery.