Odoo integration · Marketing and messaging
Integrate Twilio with Odoo
FlexigoTech has no published connector for Twilio today. Odoo Community already sends SMS through Twilio with sms_twilio (17 to 20): it posts each message to Twilio's Messages.json and gets the delivery status back on /sms_twilio/status. In its code there is no route for incoming messages and nothing for WhatsApp, so replies and WhatsApp through Twilio are the custom part.
A custom module needs Odoo.sh or a self-hosted Odoo: standard Odoo Online does not accept custom code.
What the Twilio API exposes
In Twilio's Messaging API, a Message resource is any inbound or outbound message: SMS, MMS, WhatsApp or RCS, with its direction, status, number of segments and price. Incoming messages and status changes reach the application as webhooks.
Authentication, events and limits, from the Twilio documentation
- Authentication: API keys, which can be limited to users or applications and revoked, are Twilio's preferred method
API keys are the preferred way to authenticate with Twilio's REST APIs.
(source) - Signed webhooks: the X-Twilio-Signature header, HMAC-SHA1 with the account's auth token by default
Twilio signs webhook requests so your app can confirm they came from Twilio.
(source) - Sending queue: messages wait in a queue for up to 10 hours by default, and the sending rate depends on the messages per second of each sender
Twilio queues your messages for 10 hours (36000 seconds) by default
(source) - WhatsApp: messages the business starts must use pre-registered templates; free text only as a reply to the customer
WhatsApp requires that business-initiated notifications sent by your application be templated and pre-registered, with the exception of messages sent as a reply to a user-initiated message.
(source)
Object by object: where each Twilio record would land in Odoo
| Twilio resource | Odoo model | Direction | What the integration would do |
|---|---|---|---|
| Message | sms.sms | Odoo → Twilio | Already covered by sms_twilio: each Odoo SMS sent through Twilio, with its delivery status coming back. |
| Message | mail.messageres.partner | Twilio → Odoo | Inbound messages (direction inbound) matched to the contact by phone number and logged on their record, so a customer's reply does not stay in the Twilio console. |
mail.messagesale.order | both ways | Order confirmations and delivery notices sent by WhatsApp with approved templates, and the customer's answers back on the order. |
Models checked in the Odoo 17 to 20 source code on 24-11-2026.
Does Odoo already ship something for Twilio?
Yes: Odoo ships “Twilio SMS” (sms_twilio, Community, in Odoo 17, 18, 19 and 20). Check what it covers before ordering anything custom.
How we would build it
First we look, free of charge, at what has to move between Twilio and your Odoo. Then you get the scope in writing and a fixed price before any code is written; we do not bill by the hour. The module is Python on the Odoo ORM, with tests, and we test it on a real Odoo.sh before delivery.
Sources
- www.twilio.com/docs/iam/api-keys, read on 24-11-2026
- www.twilio.com/docs/messaging/api/message-resource, read on 24-11-2026
- www.twilio.com/docs/messaging/guides/scaling-queueing-latency, read on 24-11-2026
- www.twilio.com/docs/usage/webhooks/webhooks-security, read on 24-11-2026
- www.twilio.com/docs/whatsapp/api, read on 24-11-2026
Related
Twilio is a trademark of its owner; this page summarises its public documentation.
