'Custom field in SMS message

Is it possible to include a custom field in the Twilio SMS message that will be persisted in Twilio and be included in the call back?

We have a requirement that prior to sending an SMS to Twilio, we check that the message hasn't already been sent. Currently we persist the returned MessageSid and check that. The issue is that occasionally the Twilio API doesn't respond in the allotted time and we don't have the MessageSid to persist and check.

Ideally we would include a custom field in the SMS message that we can check in Twilio prior to sending.

Any suggestions are greatly appreciated.



Solution 1:[1]

Twilio developer evangelist here.

There is not a custom field that can be added to a Twilio SMS message, all the properties of a message can be seen in the message resource documentation.


Perhaps you can explain more about what is causing your issue here? Why might you try to send the same message twice and need to perform this check? And why might a slightly slower API request cause that system to fail?

Solution 2:[2]

I found ClickSend SMS API very powerful as it allows to add custom templates and fields. You can checkout the link here https://try.clicksend.com/au/sms-api/#

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 philnash
Solution 2 user18274170