Forward SMS To A URL or API

api to forward sms to URL

POST URL function

Post Body example:

{"phoneNumber":"222333444","sms":"Hello sms - From 222333444"}

Post Options:

The app offers you 2 options for forwarding incoming SMS to your URL via POST: form-data or x-www-form-urlencoded .

Both the FWD ALL INCOMING SMS and CREATE TASK screens have this function.

For application/x-www-form-urlencoded, the body of the HTTP message is sent as a long query string, contains name-value pair separated by "&" character.

For multipart/form-data, the body is separated by a particular string boundary.


A simple form using the default application/x-www-form-urlencoded content type:
HttpResponse response ="")
.header("Content-Type", "application/x-www-form-urlencoded")
.header("cache-control", "no-cache")
.header("Postman-Token", "0146a6af-b9da-429d-b2e2-68e70137fbbc")

A form using multipart/form-data content type:
HttpResponse response ="")
.header("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
.header("cache-control", "no-cache")
.header("Postman-Token", "5d3c2fb9-7113-4e2a-b9ad-319ce66ef60a")
.body("------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"phoneNumber\"\r\n\r\nxxxxxx\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"sms\"\r\n\r\nzzzzzzz\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--")

Useful info:

We want to further develop this function, so if you have any special requests or need a different function, please get in touch with our manager Kerryn.

Our Contact Details

Our head office is in Australia, and our office hours are Melbourne time: 9am-6pm Monday to Friday. But we do monitor emails regularly.