mailbox.alias.list

Mailbox aliases are used to group the mailboxes of multiple things thus simplifying the mailbox.send command. This command lists the aliases currently set in the organization.

TR50 Request

{
  "cmd": {
    "command": "mailbox.alias.list"
  }
} 

TR50 Response

{
  "auth": null,
  "data": {
    "success": true,
    "params": {
      "result": [
        {
          "id": "56c5d8f7681fdc0bbed29f90",
          "name": "Bikes",
          "key": "@BIKES",
          "policy": "random",
          "things": [
            {
              "id": "55c0d177681fdc3ccb0e6ccc"
            }
          ],
          "createdBy": "example@telit.com",
          "createdOn": "2016-02-18T14:45:11.291Z",
          "updatedBy": "example@telit.com",
          "updatedOn": "2016-02-18T14:55:45.235Z"
        },
        {
          "id": "56de0b4c681fdc6e8e82810a",
          "name": "Alias test",
          "key": "@MYALIAS",
          "policy": "random",
          "things": [
            {
              "id": "54934bae74e00c110f000043"
            },
            {
              "id": "55c0d177681fdc3ccb0e6ccc"
            }
          ],
          "createdBy": "example@telit.com",
          "createdOn": "2016-03-07T23:14:20.127Z",
          "updatedBy": "example@telit.com",
          "updatedOn": "2016-03-07T23:14:20.127Z"
        },
        {
          "id": "56c5defd681fdc0ea015e639",
          "name": "Pumps",
          "key": "@PUMPS",
          "policy": "random",
          "things": [
            {
              "id": "56b143e6681fdc0cb4c5d183"
            },
            {
              "id": "563791bf681fdc26a877ce2d"
            },
            {
              "id": "56b1350d681fdc042f002c08"
            }
          ],
          "createdBy": "example@telit.com",
          "createdOn": "2016-02-18T15:10:53.897Z",
          "updatedBy": "example@telit.com",
          "updatedOn": "2016-02-18T15:10:53.897Z"
        }
      ]
    }
  }
}

Response Parameters

Name Type Description
result Array Result set.

Result Array Object

Name Type Description
id String ID of the alias.
name String Name of the alias.
key String Alias key starting with the "@" character.
policy String Not used by the Portal. Currently hard-coded to "random".
things Array Array of thing IDs.
createdBy String User who created the alias.
createdOn String Date the alias was created.
updatedBy String User who last updated the alias.
updatedOn String Date the alias was updated.