Twilio

Communication Account SID and auth token

Send SMS and WhatsApp messages, place calls, and manage numbers, from any Windmill script, flow or app.

Set up in 3 steps

1

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.

2

Add the resource in Windmill

Open Resources, add a resource of type twilio, and fill accountSid and token.

3

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.

Submit a script →

Resource types

The credential shapes the scripts on this page expect — pick the one your script asks for.

FieldTypeRequiredWhat it is
accountSidstringYes
tokenstringYes

twilio_message_template

View raw schema →
FieldTypeRequiredWhat it is
account_sidstringYesThe 34 letter SID used to represent a Twilio resource.
auth_tokenstringYesThe token used to authenticate Twilio API requests
message_service_sidstringNoThe 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_sidstringYesThe SID for the message content template.
origin_numberstringYesThe 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:
recipientsarrayNoThe 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.