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

Exotel

Schemesexotel://
Cargo featureservice-exotel
Servicehttps://exotel.com/
Body formatstext (first is the default)
Attachmentsno
Title lengthno title (merged into the body)
Body length2,000 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{sid}:{token}@{from_phone}
{schema}://{sid}:{token}@{from_phone}/{targets}

{schema} is one of exotel://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{from_phone}From Phone No / Sender IDstringyesmust match ^(?:(?=.{3,16}$)(?=.*[A-Z.-])[A-Z0-9][A-Z0-9.-]*|[0-9]{6}|\+?[0-9\s)(+-]{9,})$
{sid}Account SIDstringyessecret
{target_phone}Target Phone Nostringnoprefix +; must match ^[0-9\s)(+-]+$
{targets}Targetslistnoany of target_phone; separated by /
{token}Tokenstringyessecret

Query parameters

ParameterMeaningTypeDefaultNotes
apikeyAPI Keystringalso key; secret
batchBatch Modeboolno
fromFrom Phone No / Sender IDstringsets {from_phone}
priorityPrioritychoicenormalone of normal, high
regionRegion Namechoiceusone of us, in
sidAccount SIDstringsets {sid}
toTargetslistsets {targets}
tokenTokenstringsets {token}
unicodeUnicode Charactersboolyes

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):

exotel://sid:token@15551232000
exotel://sid:token@MYBRAND/919876543210
exotel://sid:token@15551232000/919876543210/+91 98765 43211
exotel://sid:token@15551232000?region=IN
exotel://sid:token@15551232000/919876543210/919876543211/919876543212?batch=yes
exotel://sid:token@15551232000?priority=h
exotel://sid:token@15551232000?unicode=no
exotel://sid:token@15551232000?key=K2&source=ALT.ID

Rejected URLs:

exotel://
exotel://sid@15551232000
exotel://:token@15551232000
exotel://sid:token@12345/919876543210

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'exotel://sid:token@15551232000'

Notes

Exotel (exotel://): SMS through the Exotel API.