Skip to main content
Skip table of contents

Send mail to a device – DTH

Request

To send mail to a specific device, send a POST request to:

http://<host>:<port>/cag/v1/{casInstanceName}/devices/{deviceId}/mail

Mandatory fields

  • casInstanceName
  • deviceId

Example

The following request sends mail with the contents "Hello" to the specified device:

CODE
{
  "messageBody": "Hello",
  "textMode": "Raw"
}

Response

A successful request returns an HTTP 200 status.

An unsuccessful request returns an HTTP 400 status if there was a problem with the request.

Example

CODE
{
  "status":"Success",
  "commandCount":1,
  "commandResults":[
    {
      "commandName": "sendMail",
      "_id": "000100978",
      "responseCode": "1028",
      "responseText":"OK"
    }
    ]
}

See also

For full details of this API, see CAS Gateway (CAG) API Documentation.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.