MSG91
| Schemes | msg91:// |
| Cargo feature | service-msg91 |
| Service | https://msg91.com |
| Body formats | text (first is the default) |
| Attachments | no |
| Title length | no title (merged into the body) |
| Body length | 160 characters |
| Body lines | unlimited |
| Request throttle | none |
| Vendor URLs accepted | no |
URL formats
{schema}://{template}@{authkey}/{targets}
{schema} is one of msg91://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{authkey} | Authentication Key | string | yes | secret; must match ^[a-z0-9]+$ | |
{target_phone} | Target Phone No | string | no | prefix +; must match ^[0-9\s)(+-]+$ | |
{targets} | Targets | list | yes | any of target_phone; separated by / | |
{template} | Template ID | string | yes | secret; must match ^[a-z0-9 _-]+$ |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
short_url | Short URL | bool | no | |
to | Targets | list | sets {targets} |
Prefixed parameters:
:name=value: Template Mapping
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):
msg91://tttttttttttttttttttt@aaaaaaaaaaaaaaaaaaaaaaa/15551232000
msg91://tttttttttttttttttttt@aaaaaaaaaaaaaaaaaaaaaaa/15551232000?:body=body
msg91://tttttttttttttttttttt@aaaaaaaaaaaaaaaaaaaaaaa/15551232000/15551232001?short_url=yes
msg91://tttttttttttttttttttt@aaaaaaaaaaaaaaaaaaaaaaa/?to=15551232000&short_url=no
msg91://tttttttttttttttttttt@aaaaaaaaaaaaaaaaaaaaaaa/15551232000?:body=msg&:type=&:extra=value&:mobiles=x
Rejected URLs:
msg91://
msg91://-
msg91://aaaaaaaaaaaaaaaaaaaaaaa
msg91://tttttttttttttttttttt@aaaaaaaaaaaaaaaaaaaa-x/15551232000
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'msg91://tttttttttttttttttttt@aaaaaaaaaaaaaaaaaaaaaaa/15551232000'
Notes
MSG91 flows (msg91://): SMS through MSG91 flow templates.