Twilio
Communication Account SID and auth tokenSend SMS and WhatsApp messages, place calls, and manage numbers, from any Windmill script, flow or app.
Set up in 3 steps
Copy your Account SID and auth token
Both are on the Twilio console dashboard. Prefer an API key and secret over the account auth token if you can — it can be revoked on its own.
Add the resource in Windmill
Open Resources, add a resource of type twilio, and fill accountSid and token.
Run your first script
Fork the send message script below and send to a number you own. On a trial account, Twilio only delivers to verified numbers.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
Delete Call
Delete Message
New Phone Number
New Call
New SMS
New Recording
New Transcription
Send SMS Verification
List Calls
Get Message
List Messages
List Message Media
Send SMS
Check Verification Token
Make a Phone Call
Get Call
Send MMS
Resource types
The credential shapes the scripts on this page expect — pick the one your script asks for.
twilio
View raw schema →| Field | Type | Required | What it is |
|---|---|---|---|
| accountSid | string | Yes | |
| token | string | Yes |
twilio_message_template
View raw schema →| Field | Type | Required | What it is |
|---|---|---|---|
| account_sid | string | Yes | The 34 letter SID used to represent a Twilio resource. |
| auth_token | string | Yes | The token used to authenticate Twilio API requests |
| message_service_sid | string | No | The SID for a messaging service, which is a container that bundle messaging functionality for your specific use cases (such as WhatsApp). It can be found in the Messaging Services menu; each service has their own SID. By including it, you can retrieve usage statistics for the service. |
| content_sid | string | Yes | The SID for the message content template. |
| origin_number | string | Yes | The phone number from which messages will originate. This number must be initially approved and authenticated in the Twilio UI before it can be activated and used. If you are sending via a WhatsApp number, prefix your phone number with whatsapp: |
| recipients | array | No | The list of phone numbers to which alerts will be sent. If you are sending to WhatsApp numbers, prefix your phone numbers with whatsapp: |
Questions
Sending costs money
Messages and calls bill per use on your Twilio balance. Test against your own number before scheduling anything that loops.
What is twilio_message_template for?
Sending an approved WhatsApp or SMS template. It carries a Messaging Service, a content template id and the recipients alongside the credentials, so a flow does not have to repeat them.
Are my credentials stored on the hub?
Never. They live only in your own Windmill workspace, encrypted at rest.