You have the option of using webhooks to notify you of new inbound messages to your SMS-capable long code and toll-free phone numbers.
Incoming Message Payload
{
"from": "+1[your messaging-enabled number]",
"to": "+1[intended recipient]",
"body": "Hello World"
}
Its is that simple.