Send SMS to Thing

This guide will provide a small guidance on how to send SMS message from portal to your Thing.

Before using this API, please make sure that your SIM card profiles and your Monogoto account supports MT SMS functionality

Send an SMS to a single Thing

GET https://console.monogoto.io/thing/ThingId_ICCID_{ICCID}/sms

Path Parameters

NameTypeDescription

ICCID*

String

The ICCID of your SIM

Headers

NameTypeDescription

TOKEN_HERE*

String

Your authentication token

Request Body

NameTypeDescription

SMS_CONTENT*

String

SMS message content

SENDER_NAME

String

Sender name you wish recipient to see

{
    // Response
}

Please note that in order for SMS message to reach a Thing, it must be connected to the network.

Example using cURL:

curl -X POST \
    --url "https://console.monogoto.io/thing/ThingId_ICCID_{ICCID}/sms" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer {TOKEN_HERE}" \
    -d "{ \"Message\": \"{SMS_CONTENT}\", \"From\": \"{SENDER_NAME}\"}"

Add your Token, Thing ICCID in the POST request, as well as the SMS Content and the Sender Name.

Example of request:

curl -X POST \
    --url "https://console.monogoto.io/thing/ThingId_ICCID_8912372646888991/sms" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" \
    -d "{ \"Message\": \"Hello\", \"From\": \"console\"}"

Expected result showing ID of the SMS message:

ThingId_ICCID_8912372646888991_1606995009188_0.4954212857733442

Last updated