How to accept Twilio-shaped SMS webhooks

POST a Twilio-shaped body to the messages path. It is parsed like a real webhook.

Run it

curl -s -X POST https://api.model.tools/api/v1/sms/15551234567 -H 'Content-Type: application/json' -d '{"from":"BANK","text":"Code 482910"}'

Response

{"id":"…","command_id":"submit_sm_resp","number":"15551234567","stored":true}