Twilio
Send SMS or WhatsApp messages, place calls, inspect delivery, and check verification codes
Twilio connects a project to messaging, voice, and Verify through service credentials. Enter an Account SID, Standard API Key SID, and API key secret in the secure form. Administrators control visibility; no OAuth application is required.
Use a Standard API Key rather than the account Auth Token. Keep the API key secret write-only in Swarmz, and restrict the Twilio account and phone numbers used for testing.
Available operations
| Operation | What it does | Limit per minute |
|---|---|---|
send_message | Sends one SMS or WhatsApp message | 10 |
get_message | Reads delivery details for one message | 30 |
create_call | Places one outbound call using an HTTPS TwiML URL | 5 |
send_verification | Sends a Verify code by SMS, call, or WhatsApp | 10 |
check_verification | Checks one submitted Verify code | 20 |
Phone numbers use E.164 format, such as +12025550123. WhatsApp addresses use whatsapp:+12025550123. TwiML, media, and status callback URLs must use HTTPS.
Connect and verify Twilio
- Create a Standard API Key in the Twilio console and copy its secret before leaving the page.
- Ask the AI for the Twilio workflow, then enter the Account SID, API Key SID, and API key secret in the secure form.
- Send an SMS to a verified test recipient and record the returned message SID.
- Read that message until its delivery status is final.
- If the app uses Verify, send a code from a test Verify Service and check the code once.
- If the app places calls, use a test number and an HTTPS TwiML endpoint that you control.
Trial accounts can contact only verified recipients and add a trial notice. If authentication fails after rotating the API key, edit the connection and enter the new SID and secret. Generated browser code must not contain Twilio credentials or call Twilio directly.