Sends an SMS message to one device. Messages are queued on the M2M MC Platform and sent as soon as possible, but they may be delayed due to traffic and routing considerations.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
application/json
SMS message to an indiividual device.
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST "https://example.com/m2m/v1/sms" \ -H "Content-Type: application/json" \ -d '{ "accountName": "0000123456-00001", "customFields": [ { "key": "CustomField1", "value": "value of the field" } ], "dataEncoding": "optional 7 or 8-bit encoding", "deviceIds": [ { "id": "20-digit ICCID", "kind": "iccid" } ], "smsMessage": "the body or text of the message itself", "timeToLive": "000000010000000R" }'{ "requestId": "d1f08526-5443-4054-9a29-4456490ea9f8"}{ "errorCode": 400, "errorMessage": "a brief description of the error"}items <= 5A period of time the message remains valid or an end date for the message. This value would be less than the 5 day default.
items <= 100