Get direct messages





URL parameters

Name Type Description
spaceKey String Space key
accountName String Account name

Query parameters

Name Type Description
count (Optional) Number default value: 20, maximum: 200
from (Optional) Number references Post ID
direction (Optional) String “backward” or “forward”

Response Example

  "topic": null,
  "directMessage": {
    "account": {
      "id": 101,
      "name": "ahorowitz",
      "fullName": "AHorowitz",
      "suggestion": "AHorowitz",
      "imageUrl": "",
      "isBot": false,
      "createdAt": "2014-06-25T02:32:29Z",
      "updatedAt": "2014-06-25T02:32:29Z"
    "status": {
      "presence": "away",
      "web": null,
      "mobile": null
  "bookmark": null,
  "posts": null,
  "hasNext": null

All responses are formatted in JSON and include an ETag. If you call an API with an If-None-Match header, the server will return a 304 status code if the data is unchanged. The date and time format is ISO 8601, and the timezone is UTC (eg. 2014-01-09T06:20:08Z).