Sinch
| Schemes | sinch:// |
| Cargo feature | service-sinch |
| Service | https://sinch.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 | 200 ms between requests |
| Vendor URLs accepted | no |
URL formats
{schema}://{service_plan_id}:{api_token}@{from_phone}
{schema}://{service_plan_id}:{api_token}@{from_phone}/{targets}
{schema} is one of sinch://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{api_token} | Auth Token | string | yes | secret; must match ^[a-f0-9]+$ | |
{from_phone} | From Phone No | string | yes | must match ^\+?[0-9\s)(+-]+$ | |
{service_plan_id} | Account SID | string | yes | secret; must match ^[a-f0-9]+$ | |
{short_code} | Target Short Code | string | no | must match ^[0-9]{5,6}$ | |
{target_phone} | Target Phone No | string | no | prefix +; must match ^[0-9\s)(+-]+$ | |
{targets} | Targets | list | no | any of short_code, target_phone; separated by / |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
from | From Phone No | string | sets {from_phone}; also source | |
region | Region | string | us | must match ^[a-z]{2}$ |
spi | Account SID | string | sets {service_plan_id} | |
to | Targets | list | sets {targets} | |
token | Auth Token | string | sets {api_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):
sinch://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@55555555555
sinch://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@12345/44444444444
sinch://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@55555555555/66666666666/77777777777
sinch://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@33333333333/123/999999999999999/abcd/
sinch://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@55555555555?region=EU
sinch://_?spi=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&token=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb&from=55555555555
sinch://_?spi=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&token=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb&source=55555555555
sinch://_?spi=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&token=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb&from=55555555555&to=7777777777777
Rejected URLs:
sinch://
sinch://:@/
sinch://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@12345678
sinch://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@_
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'sinch://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@55555555555'
Notes
Sinch SMS (sinch://): SMS through the Sinch API.