> ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Get historical message data > Make sure the "datastore_rmo" feature switch is on. In case of trouble contact Support.

Fetch a specific (group) message as it was sent to a defined contact, including resolved personalizations. ## OpenAPI ````json GET /message/getHistorical { "openapi": "3.0.4", "info": { "title": "Engage public API", "version": "1" }, "servers": [ { "url": "https://your-engage-domain.com/api/rest" } ], "tags": [ { "name": "Address Attributes" }, { "name": "Async" }, { "name": "Audit Log" }, { "name": "Automation" }, { "name": "Blacklist" }, { "name": "CMS (legacy)" }, { "name": "CMS Blocks" }, { "name": "CMS Frameworks" }, { "name": "CMS Messages" }, { "name": "CMS Templates" }, { "name": "Contact" }, { "name": "Content" }, { "name": "Coupon" }, { "name": "Draft Message" }, { "name": "Ecommerce" }, { "name": "Group" }, { "name": "Group Attributes" }, { "name": "Landing Page" }, { "name": "Member Attributes" }, { "name": "Membership" }, { "name": "Message" }, { "name": "Meta" }, { "name": "Mobile Push" }, { "name": "Prepared Message" }, { "name": "Process" }, { "name": "Profile Attributes" }, { "name": "Related Data" }, { "name": "Segmentation" }, { "name": "System" }, { "name": "System User" }, { "name": "Usage Statistics" }, { "name": "User" }, { "name": "Whiteboard" } ], "paths": { "/message/getHistorical": { "get": { "tags": [ "Message" ], "summary": "Get historical message data", "description": "Make sure the \"datastore_rmo\" feature switch is on. In case of trouble contact Support.

Fetch a specific (group) message as it was sent to a defined contact, including resolved personalizations.", "operationId": "getHistorical", "parameters": [ { "name": "messageId", "in": "query", "description": "ID of the (sent) message to fetch.", "required": true, "schema": { "type": "integer", "format": "int64" } }, { "name": "contactId", "in": "query", "description": "ID of the contact for whom the message shall be personalized.", "required": true, "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HistoricalMessage" } } } }, "400": { "description": "Missing parameter (messageId/contactId) or parameter value, for example:

{
\"errorActor\": \"CLIENT\",
\"errorCode\": \"MISSING_PARAMETER\",
\"message\": \"Parameter 'messageId' is mandatory but no value was specified.\",
\"parameterName\": \"messageId\",
\"propertyName\": null,
\"value\": \"null\"
}


Message ID / ContactId does not exist, for example:

{
\"errorActor\": \"CLIENT\",
\"errorCode\": \"NO_SUCH_OBJECT\",
\"message\": \"Message with id=24011454555 does not exist.\",
\"objectType\": \"Message\",
\"propertyName\": \"id\",
\"propertyValue\": \"24011454555\"
}
", "content": { "application/json": {} } } } } } }, "components": { "schemas": { "HistoricalMessage": { "type": "object", "properties": { "contactId": { "type": "integer", "format": "int64" }, "messageId": { "type": "integer", "format": "int64" }, "name": { "type": "string" }, "externalId": { "type": "string" }, "description": { "type": "string" }, "messageCategoryId": { "type": "integer", "format": "int64" }, "processingDate": { "type": "string" }, "type": { "$ref": "#/components/schemas/MessageBase" }, "currentDataPopulatedToHistorical": { "type": "boolean", "default": false } } }, "MessageBase": { "type": "object", "properties": { "subject": { "type": "string" }, "emailBodyText": { "type": "string" }, "emailBodyHtml": { "type": "string" }, "smsText": { "type": "string" }, "faxText": { "type": "string" }, "emailHeaders": { "type": "array", "items": { "$ref": "#/components/schemas/Attribute" } }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/Attachment" } }, "attachmentReferences": { "type": "array", "items": { "$ref": "#/components/schemas/AttachmentReference" } }, "encoding": { "type": "string" }, "encodingSMS": { "type": "string" }, "imageHandlingMode": { "type": "string" } } }, "Attribute": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" } } }, "Attachment": { "type": "object", "properties": { "name": { "type": "string" }, "contentType": { "type": "string" }, "content": { "type": "string" } } }, "AttachmentReference": { "type": "object", "properties": { "contentId": { "type": "string" }, "reference": { "type": "string" } } } } } } ````