Skip to content

Twilio SMS

Send text messages through Twilio.

CategorySMS
AuthenticationAccount SID and auth token
Reachesapi.twilio.com
Needs an agentNo
Demo modeNo

sms.send

  1. Sign in to the Twilio console.
  2. On the dashboard, copy the Account SID and the Auth Token.
  3. Buy or note a phone number capable of sending SMS to your country. Phone Numbers, Manage, Active numbers.

For a school, an alphanumeric sender id is often better than a number, because a message from “SCHOOLICT” is more obviously legitimate than one from an unknown mobile number. Availability depends on country: it works in Australia and much of Europe, and does not in the United States or Canada. Alphanumeric senders cannot receive replies.

Consider using a subaccount for Plugboard so its usage and its credentials are separate from anything else your school sends.

Admin, Connectors, Twilio SMS, Configure.

FieldValue
accountSidThe Account SID, starting AC
fromNumberThe sender, for example +61400000000, or an alphanumeric sender id

Use E.164 format for numbers: a plus, the country code, then the number, with no spaces or brackets.

FieldValue
authTokenThe Auth Token

Save and test.

SMS is more intrusive than email, and a school texting families is making a choice worth making deliberately.

Consent. Check what your enrolment paperwork actually says about contacting families by text. “We may contact you” is not the same as “we may text you”, and some jurisdictions treat them differently.

Timing. A message sent when a repair is marked ready at 7pm arrives at 7pm. If you are automating, think about hours.

Cost. Every message is billed. A school with two thousand devices and an active repairs desk sends more messages than the estimate in the meeting.

Replies. If you send from a number, people will reply to it. Somebody has to be reading those, or you need an alphanumeric sender that cannot receive replies, so the impossibility is explicit rather than accidental.

Numbers go stale. Parent mobile numbers change and your SIS is not always told. Failed sends are worth watching rather than assuming delivery.

SMS is used for notifications where you configure it to be. Email remains the default channel for everything, and the email messages page is where the wording lives.

The common pattern is email for everything and SMS only for ready-for-collection, which is the message where the delay between sending and reading actually costs something.

SymptomCause
401 on testWrong Account SID or Auth Token. The SID starts AC
21606 or “not a valid from number”The number is not on your account, or is not SMS-capable in the destination country
21612The route from your sender to that destination is not permitted
Alphanumeric sender rejectedNot supported in the destination country. The United States and Canada do not allow it
Messages sent, never arriveCheck the Twilio console’s message log. It shows carrier-level status
Sudden failures after monthsThe auth token was rotated, or the account ran out of credit