Can I use the SMS history endpoint to search Message IDs?
It's best practice to save records when you send them on your end. That way you can get search the message-ID and get that information from your stored records without querying us.
This is especially the case if you plan to do this with a high volume of messages.