Discussions

Ask a Question
Back to All

Return Contact/Conversation errors

We created an external program that will pull data from our pharmacy system, generate a text, create conversation if new/none found, determine which sequence is appropriate based on pulled data, create a sequence contact (POST /sequences/{id}/contacts), and if successfully added to a sequence will then send the text (POST /messaging/sms).

In the response body from the send sms endpoint, there is a delivery_status --- would that already return if message failed to send because the line was a landline or does it default to queued as it creates the message? Because we are using our own created program for sending messages + enrolling in sequences, we have occasionally run into the issue of messages failing to send because the destination number is a landline or non-routeable. But in the POST we are returned delivery_status: queued.

Or is there a different way to check the delivery status of the message we just sent?