Do you might have limitations on messages despatched via API? Depending on the style of variety you utilize, there are limitations to the volume of messages which can be sent per second (often known as MPS). check with https://rebeccalrhi923556.blogocial.com/text-messaging-salesforce-fundamentals-explained-65885676