Migration from Twilio

Migration of your messaging application from Twilio to Telgorithm is a very simple process. We use the same authorization way - you need only accound sid and secret token. This page guides you through minimum steps to start sending your messages via Telgorithm.

Sending SMS message

To send the SMS message you need only to use Telgorithm URL and change Body parameter name to Text:

Twilio
curl -X POST \
https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json \
-u $ACCOUNT_SID:$AUTH_TOKEN \
--data-urlencode "From=+15012345678" \
--data-urlencode "To=+12334567890" \
--data-urlencode "Body=Hello, Twilio!"
Telgorithm
curl -X POST \
https://api.telgorithm.com/messaging/v1/OutboundMessages \
-u $ACCOUNT_SID:$AUTH_TOKEN \
--data-urlencode "From=+15012345678" \
--data-urlencode "To=+12334567890" \
--data-urlencode "Text=Hello, Telgorithm!"

Sending MMS message

Twilio
curl -X POST \
https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json \
-u $ACCOUNT_SID:$AUTH_TOKEN \
--data-urlencode "From=+15012345678" \
--data-urlencode "To=+12334567890" \
--data-urlencode "MediaUrl=https://picsum.photos/200.jpg"
Telgorithm
curl -X POST \
https://api.telgorithm.com/messaging/v1/OutboundMessages \
-u $ACCOUNT_SID:$AUTH_TOKEN \
--data-urlencode "From=+15012345678" \
--data-urlencode "To=+12334567890" \
--data-urlencode "MediaUrls=['https://picsum.photos/200.jpg']"

Receiving a message

Inbound message will cause webhook to your configured endpoint:

Twilio
ToCountry=US&ToState=LA&SmsMessageSid=SM00000000000011111111111122222222&NumMedia=0&ToCity=TRANSYLVANIA
&FromZip=90029&SmsSid=SM00000000000011111111111122222222&FromState=CA&SmsStatus=received
&FromCity=LOS+ANGELES&Body=Nice+picture%21&FromCountry=US&To=%2B15012345678&ToZip=71276
&AddOns=%7B%22status%22%3A%22successful%22%2C%22message%22%3Anull%2C%22code%22%3Anull%2C%22results%22%3A%7B%7D%7D
&NumSegments=1&ReferralNumMedia=0&MessageSid=SM00000000000011111111111122222222
&AccountSid=AC99999999999999999999999999999999&From=%2B12334567890&ApiVersion=2010-04-01
Telgorithm
{
"sid": "IM000000000000111111111111222222222222333333333333",
"from": "+12334567890",
"to": "+15012345678",
"eventDate": "2022-06-28T16:27:07.845Z",
"text": "Nice picture!",
"segmentCount": 1
}