Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Twilio

Schemestwilio://
Cargo featureservice-twilio
Servicehttps://www.twilio.com/
Body formatstext (first is the default)
Attachmentsno
Title lengthno title (merged into the body)
Body length160 characters
Body linesunlimited
Request throttle200 ms between requests
Vendor URLs acceptedno

URL formats

{schema}://{account_sid}:{auth_token}@{from_phone}
{schema}://{account_sid}:{auth_token}@{from_phone}/{targets}

{schema} is one of twilio://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{account_sid}Account SIDstringyessecret; must match ^AC[a-f0-9]+$
{auth_token}Auth Tokenstringyessecret; must match ^[a-z0-9]+$
{from_phone}From Phone Nostringyesmust match ^([a-z]+:)?\+?[0-9\s)(+-]+$
{short_code}Target Short Codestringnomust match ^[0-9]{5,6}$
{target_phone}Target Phone Nostringnoprefix +; must match ^([a-z]+:)?[0-9\s)(+-]+$
{targets}Targetslistnoany of short_code, target_phone; separated by /

Query parameters

ParameterMeaningTypeDefaultNotes
apikeyAPI Keystringsecret; must match ^SK[a-f0-9]+$
fromFrom Phone Nostringsets {from_phone}; also source
methodNotification Method: sms or callchoicesmsone of sms, call
sidAccount SIDstringsets {account_sid}
toTargetslistsets {targets}
tokenAuth Tokenstringsets {auth_token}

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@55555555555
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@12345/44444444444
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@98765/44444444444/w:55555555555/
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@33333333333/123/999999999999999/abcd/w:88888888888
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@55555555555?method=sms
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@15551233456/15559876543?method=call
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@15551233456/w:15559876543/15559876544?method=call
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@_/66666666666/t:77777777777?from=whatsapp:55555555555

Rejected URLs:

twilio://
twilio://:@/
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@12345678
twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@_

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'twilio://ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@55555555555'

Notes

Twilio SMS / WhatsApp / voice calls (twilio://): messages and calls through the Twilio API.