The @aaisp service isn’t free, but it offers mobile numbers with SMS handling. I use these for spam numbers, and have SMS diverted to email (but you can use https post if you want). There’s a web interface for sending SMS, and a simple curlable API.