GET {who}/Messages/{messageId}?language={language}&markAsRead={markAsRead}

Gets a specific message by its messageId.

Request Information

Parameters

NameDescriptionAdditional information
who Who to retrieve messages for. Valid values are "my", or an organization number of an organization the user can represent, or <Reportee.ReporteeId>, where the identified reportee may be a person or organization.

Define this parameter in the request URI.

messageId ID of the message to be retrieved

Define this parameter in the request URI.

language Translation of messages retrieved, valid values are: 1033 (English), 1044 (Bokmal) and 2068 (Nynorsk) This is an optional parameter, defaults to the user preset language

Define this parameter in the request URI.

markAsRead Whether correspondence should be marked as Read upon retrieval. This is an optional parameter, by default correspondences will have their status set to "Read" by this operation. If this parameter is submitted as "False", correspondences not will have their status set to "Read" by this operation.

Define this parameter in the request URI.

Response Information

Message with the given messageId

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "MessageId": "sample string 53",
  "OriginalId": "sample string 39",
  "Subject": "sample string 22",
  "Status": "sample string 59",
  "MarkedUnread": true,
  "LastChangedDateTime": "2024-06-12T09:46:20.4989764+02:00",
  "CreatedDate": "2024-06-12T09:46:20.4989764+02:00",
  "LastChangedBy": "sample string 68",
  "ServiceOwner": "sample string 49",
  "Type": "sample string 31",
  "MessageSender": "sample string 89",
  "Summary": "sample string 18",
  "Body": "sample string 77",
  "ServiceCode": "sample string 58",
  "ServiceEdition": 16,
  "SignatureSpec": {
    "FormIds": [
      1,
      2,
      3
    ],
    "AttachmentIds": [
      1,
      2,
      3
    ]
  },
  "DueDate": "2024-06-12T09:46:20.4989764+02:00",
  "AvailableAction": 0,
  "ArchiveReference": "sample string 42",
  "ReplyOptions": [
    {
      "Type": "sample string 6",
      "URL": "sample string 58",
      "Text": "sample string 72"
    },
    {
      "Type": "sample string 6",
      "URL": "sample string 58",
      "Text": "sample string 72"
    },
    {
      "Type": "sample string 6",
      "URL": "sample string 58",
      "Text": "sample string 72"
    }
  ],
  "_links": {
    "self": {
      "href": "sample string 79"
    }
  }
}