Examples

GET /api/v2/messages/48
200
{
  "data": {
    "id": "48",
    "type": "messages",
    "links": {
      "self": "http://test.host/api/v2/messages/48"
    },
    "attributes": {
      "content": "Test message.",
      "created-at": "2017-08-29T10:48:27.649+08:00",
      "is-read": true,
      "is-system-message": false
    },
    "relationships": {
      "attachment": {
        "links": {
          "self": "http://test.host/api/v2/messages/48/relationships/attachment",
          "related": "http://test.host/api/v2/messages/48/attachment"
        }
      },
      "message-group": {
        "links": {
          "self": "http://test.host/api/v2/messages/48/relationships/message-group",
          "related": "http://test.host/api/v2/messages/48/message-group"
        }
      },
      "sender": {
        "links": {
          "self": "http://test.host/api/v2/messages/48/relationships/sender",
          "related": "http://test.host/api/v2/messages/48/sender"
        }
      }
    }
  }
}

Params

Param name Description
id
required

Message ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.