SMS forwarding to a Webhook
Last updated
Last updated
You can setup a web-hook to receive SMS to your web application. If configured to web-hook, all the messages will be forwarded to your web URL.
Select the phone number to configure SMS
In the POP Window, Check URL and type in the URL to handle SMS.
Click on Confirm to save the settings.
Here you can see, SMS if configured to web-hook. Now you can create your application to process all the incoming messages.
We send the data in JSON format. For all incoming messages you will receive "From" "To" "Text" and "ReferenceID" and "deliveryReceipt", Here is sample data.
SampleCode to handle SMS in the configured in the about example. In this example, web application simple receive an SMS and forward to an email address.
We get the SMS and forward to your web url. While doing the we store the response code we get from your application. To view that. Click on Reporting -> SMS.
You can view all incoming and outgoing messages here.
SMS CDR
Enter a caption for this image (optional)
Click on "received" to view the details.
SMS CDR Details
Enter a caption for this image (optional)
Here you can see all the details of the communication between your system and our system.
Destination: Where the messages was forwarded to.
Data: What information we sent to the web url.
Server Response: Response we received from your server.
PS: All we need is 200 OK. All the other information is stored and discarded, we don't do anything with the response data.
We would love to see what you build and will be happy to help you troubleshoot any issue. Contact us for any support issue.