Twilio connectors
The Bonita Twilio connectors let you send SMS messages, make phone calls, verify phone numbers, and look up phone information directly from your Bonita processes.
The Bonita Twilio Connectors are available for Bonita 10.2 Community (2024.3) version and above.
|
This connector is currently in Beta. It has not yet been fully validated in production environments. We welcome your feedback — please report testing results or issues using the beta feedback form on GitHub. We are eager to collaborate with early adopters to bring this connector to General Availability. |
Overview
The Twilio connector provides six operations:
-
Send SMS — send an SMS message
-
Send Verification — send a verification code via SMS or voice
-
Check Verification — verify a code submitted by the user
-
Get Message Status — check the delivery status of a sent message
-
Make Call — initiate an outbound phone call
-
Lookup Phone — look up phone number information
Authentication uses HTTP Basic Auth with Account SID and Auth Token.
Getting started
Add the connector as an extension dependency to your Bonita project. Import the .jar file via Import from file in Bonita Studio.
Connection configuration (shared by all operations)
| Parameter | Required | Description | Default |
|---|---|---|---|
accountSid |
Yes |
Twilio Account SID |
— |
authToken |
Yes |
Twilio Auth Token |
— |
fromNumber |
Conditional |
Twilio phone number to send from (required for SMS and calls) |
— |
connectTimeout |
No |
Connection timeout in milliseconds |
30000 |
readTimeout |
No |
Read timeout in milliseconds |
60000 |
Send SMS (twilio-send-sms)
Send Verification (twilio-send-verification)
Check Verification (twilio-check-verification)
Get Message Status (twilio-get-message-status)
Make Call (twilio-make-call)
Lookup Phone (twilio-lookup-phone)
Look up information about a phone number.
Output parameters
| Parameter | Type | Description |
|---|---|---|
phoneNumber |
String |
Formatted phone number |
countryCode |
String |
Country code |
carrierName |
String |
Carrier name |
lineType |
String |
Line type (mobile, landline, voip) |
isValid |
Boolean |
Whether the phone number is valid |
success |
Boolean |
Whether the operation succeeded |
errorMessage |
String |
Error message if the operation failed |
Error handling
All operations set success=false and populate errorMessage on failure. Error messages are truncated to 1000 characters to prevent database column overflow in Bonita.
| HTTP Code | Behavior |
|---|---|
200/201 |
Success — parse response and populate outputs |
400 |
Bad request — invalid phone number or parameters |
401 |
Unauthorized — invalid Account SID or Auth Token |
404 |
Not found — resource does not exist |
429 |
Rate limited — too many requests |
5xx |
Server error — Twilio service unavailable |
Source code
The connector source code is available on GitHub: bonita-connector-twilio