Send message using SMaM URL
The Send Me a Message (SMaM) URL can be used a number of different ways to send a message to the mobile number(s) associated with the URL.
- Form on a web page
- Message in query string
- Message in JSON POST
- Message in POST body
Web page
Form on a web page
Go to the SMaM URL using a web browser and a form will be displayed that can be used to send the message.
https://richmsg.io/s/b5gSkSJbN6
Customisable SMaM web page forms
SMaM web page forms will shortly be customisable with a logo, title and other text.
Webhook
Message in query string
Append the message as a query string (using ? character) to the SMaM URL. Requires URL encoding.
https://richmsg.io/s/b5gSkSJbN6?Hello 🙂
Message in POST JSON
curl https://richmsg.io/s/b5gSkSJbN6 --request POST \
--data '{"message":"Alert: 🚨 cluster-ws-main-pri-01 DOWN"}' \
--header 'Content-type: application/json'
POST /s/b5gSkSJbN6 HTTP/2
Host: richmsg.io
content-type: application/json
content-length: 53
{"message":"Alert: .... cluster-ws-main-pri-01 DOWN"}
HTTP/2 200
date: Thu, 08 Jun 2023 22:11:13 GMT
content-type: application/json
content-length: 71
{"outcome":true,"transactionid":"88324f51-27fc-45a2-a4d0-638d9799b056"}
Message in POST body
If no JSON is present in the body of the POST, the whole body will be taken as the message.
curl https://richmsg.io/s/b5gSkSJbN6 --request POST --data 'Alert: 🚨 cluster-ws-main-pri-02 DOWN'
POST /s/b5gSkSJbN6 HTTP/2
Host: richmsg.io
user-agent: curl/7.87.0
content-length: 39
Alert: .... cluster-ws-main-pri-02 DOWN
HTTP/2 200
date: Thu, 08 Jun 2023 22:26:42 GMT
content-type: application/json
content-length: 71
{"outcome":true,"transactionid":"219938dc-794a-4577-9d17-0c2e5d10040: ea9df"}
Updated over 1 year ago