How to send SMS request using SMS REST API

Ramv_OT
Ramv_OT E Community Moderator
edited February 18, 2022 in Articles #1

How to submit a request to send SMS notification using SMS REST API?

Here is an example of curl command to submit a request to send SMS Notification.

curl -H "Content-Type: application/json" \
     -u <userid:password> \ 
     --data-binary "{
    \"destinations\": [
        {
            \"sms\": \"recipient sms address\"
        }
    ],
\"sms_text\": \"Hi There, This is a Test SMS from OpenText\"
}"  \
https://t2api.us.cloudmessaging.opentext.com/mra/v1/outbound/sms

Successful submission of requests will result in HTTP 200 response code along with a job id.