> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-unity-sdk-initialization-split.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# File Contents

> Explore the structure and format of MoEngage archived message files, including examples of single message objects exported via SFTP and S3 methods.

The following are the contents of the files for the messages archived.

<Tabs>
  <Tab title="One-Time Campaign">
    | Channel and Platform                                                                                                               | File Contents (S3)                                                                                                                                                                                                  | File Contents (SFTP)                                                                                                                                                                                                                                                                                                              |
    | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Email                                                                                                                              | <ul><li>Main content (HTML)</li><li>From email address</li><li>Sender name</li><li>Subject</li><li>Reply-to email address</li><li>Date and time of email delivery</li><li>User details (To email address)</li></ul> | <ul><li>Main content (HTML)</li><li>From email address</li><li>Sender name</li><li>Subject</li><li>Reply-to email address</li><li>Date and time of email delivery</li><li>User details (User ID and To email address)</li><li>Campaign Info (ID, name, type, app key)</li><li>Workspace Name</li><li>Delivery Type</li></ul>      |
    | SMS                                                                                                                                | <ul><li>Main content</li><li>User details (mobile number)</li><li>Channel</li><li>Connector info</li><li>Short code or service ID</li><li>Template type</li><li>Delivery time</li><li>Tracked URLs</li></ul>        | <ul><li>Main content</li><li>User details (User ID and mobile number)</li><li>Channel</li><li>Connector info</li><li>Short code or service ID</li><li>Template type</li><li>Delivery time</li><li>Tracked URLs</li><li>Campaign Info (ID, name, type, app key)</li><li>Workspace Name</li></ul>                                   |
    | Push - Android  (This is not a preview, but only the content. This is because the message may render differently for each device.) | <ul><li>Main content</li><li>Backup content (wherever backup is supported, except for basic templates)</li><li>Campaign details</li><li>User details (Push token)</li><li>Channel</li><li>Platform</li></ul>        | <ul><li>Main content (summary, title, message, URLs)</li><li>Backup content (wherever backup is supported, except for basic templates)</li><li>Campaign details (ID, name, type, app key, Workspace name)</li><li>User details (User ID and Push token)</li><li>Channel</li><li>Platform</li><li>Delivery type and time</li></ul> |
    | Push - iOS  (This is not a preview, but only the content. This is because the message may render differently for each device.)     | <ul><li>Main content</li><li>Backup content (wherever backup is supported, except for basic templates)</li><li>Campaign details</li><li>User details (Push token)</li><li>Channel</li><li>Platform</li></ul>        | <ul><li>Main content (summary, title, message, URLs)</li><li>Backup content (wherever backup is supported, except for basic templates)</li><li>Campaign details (ID, name, type, app key, Workspace name)</li><li>User details (User ID and Push token)</li><li>Channel</li><li>Platform</li><li>Delivery type and time</li></ul> |
    | Push - Web  (This is not a preview, but only the content. This is because the message may render differently for each device.)     | <ul><li>Main content</li><li>Backup content (wherever backup is supported, except for basic templates)</li><li>Campaign details</li><li>User details (Push token)</li><li>Channel</li><li>Platform</li></ul>        | <ul><li>Main content (summary, title, message, URLs)</li><li>Backup content (wherever backup is supported, except for basic templates)</li><li>Campaign details (ID, name, type, app key, Workspace name)</li><li>User details (User ID and Push token)</li><li>Channel</li><li>Platform</li><li>Delivery type and time</li></ul> |
  </Tab>

  <Tab title="Periodic Campaign">
    | Channel and Platform                                                                                                               | File Contents (S3)                                                                                                                                                                | File Contents (SFTP)                                                                                                                                                                                                                                                                             |
    | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
    | Email                                                                                                                              | - Main content (HTML) - From email address - Sender name - Subject - Reply-to email address - Date and time of email delivery - User details (To email address)                   | - Main content (HTML) - From email address - Sender name - Subject - Reply-to email address - Date and time of email delivery - User details (User ID and To email address) - Campaign Info (ID, name, type, app key) - Workspace Name - Delivery Type                                           |
    | SMS                                                                                                                                | - Main content - User details (mobile number) - Channel - Connector info - Short code or service ID - Template type - Delivery time - Tracked URLs                                | - Main content - User details (User ID and mobile number) - Channel - Connector info - Short code or service ID - Template type - Delivery time - Tracked URLs - Campaign Info (ID, name, type, app key) - Workspace Name                                                                        |
    | Push - Android  (This is not a preview, but only the content. This is because the message may render differently for each device.) | - Main content - Backup content (wherever backup is supported, except for basic templates) - Campaign and child campaign details - User details (Push token) - Channel - Platform | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Campaign and child campaign details (ID, name, type, app key, Workspace name) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
    | Push - iOS  (This is not a preview, but only the content. This is because the message may render differently for each device.)     | - Main content - Backup content (wherever backup is supported, except for basic templates) - Campaign and child campaign details - User details (Push token) - Channel - Platform | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Campaign and child campaign details (ID, name, type, app key, Workspace name) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
    | Push - Web  (This is not a preview, but only the content. This is because the message may render differently for each device.)     | - Main content - Backup content (wherever backup is supported, except for basic templates) - Campaign and child campaign details - User details (Push token) - Channel - Platform | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Campaign and child campaign details (ID, name, type, app key, Workspace name) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
  </Tab>

  <Tab title="Event-Triggered and Business Event Triggered Campaign">
    | Channel and Platform                                                                                                               | File Contents (S3)                                                                                                                                                                           | File Contents (SFTP)                                                                                                                                                                                                                                                                                        |
    | ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Email                                                                                                                              | - Main content (HTML) - From email address - Sender name - Subject - Reply-to email address - Date and time of email delivery - User details (To email address)                              | - Main content (HTML) - From email address - Sender name - Subject - Reply-to email address - Date and time of email delivery - User details (User ID and To email address) - Campaign Info (ID, name, type, app key) - Workspace Name - Delivery Type                                                      |
    | SMS                                                                                                                                | - Main content - User details (mobile number) - Channel - Connector info - Short code or service ID - Template type - Delivery time - Tracked URLs                                           | - Main content - User details (User ID and mobile number) - Channel - Connector info - Short code or service ID - Template type - Delivery time - Tracked URLs - Campaign Info (ID, name, type, app key) - Workspace Name                                                                                   |
    | Push - Android  (This is not a preview, but only the content. This is because the message may render differently for each device.) | - Main content - Backup content (wherever backup is supported, except for basic templates) - Campaign details - Event details (Moe\_events) - User details (Push token) - Channel - Platform | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Campaign details (ID, name, type, app key, Workspace name) - Event details (Moe\_events) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
    | Push - iOS  (This is not a preview, but only the content. This is because the message may render differently for each device.)     | - Main content - Backup content (wherever backup is supported, except for basic templates) - Campaign details - Event details (Moe\_events) - User details (Push token) - Channel - Platform | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Campaign details (ID, name, type, app key, Workspace name) - Event details (Moe\_events) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
    | Push - Web  (This is not a preview, but only the content. This is because the message may render differently for each device.)     | - Main content - Backup content (wherever backup is supported, except for basic templates) - Campaign details - Event details (Moe\_events) - User details (Push token) - Channel - Platform | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Campaign details (ID, name, type, app key, Workspace name) - Event details (Moe\_events) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
  </Tab>

  <Tab title="Inform Alert">
    | Channel and Platform                                                                                                               | File Contents (S3)                                                                                                                                                                               | File Contents (SFTP)                                                                                                                                                                                                                                                                                        |
    | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Email                                                                                                                              | - Main content (HTML) - From email address - Sender name - Subject - Reply-to email address - Date and time of email delivery - Transaction details (alert ID) - User details (To email address) | - Main content (HTML) - From email address - Sender name - Subject - Reply-to email address - Date and time of email delivery - Transaction details (alert ID) - User details (User ID and To email address) - Campaign Info (app key, Workspace name, type)                                                |
    | SMS                                                                                                                                | - Main content - User details (mobile number) - Channel - Connector info - Short code or service ID - Template type - Delivery time - Tracked URLs                                               | - Main content - User details (User ID and mobile number) - Channel - Connector info - Short code or service ID - Template type - Delivery time - Tracked URLs - Campaign Info (app key, Workspace name, type)                                                                                              |
    | Push - Android  (This is not a preview, but only the content. This is because the message may render differently for each device.) | - Main content - Backup content (wherever backup is supported, except for basic templates) - Alert details - Transaction details (alert ID) - User details (Push token) - Channel - Platform     | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Alert details (ID, name, type, app key, Workspace name) - Transaction details (alert ID) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
    | Push - iOS  (This is not a preview, but only the content. This is because the message may render differently for each device.)     | - Main content - Backup content (wherever backup is supported, except for basic templates) - Alert details - Transaction details (alert ID) - User details (Push token) - Channel - Platform     | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Alert details (ID, name, type, app key, Workspace name) - Transaction details (alert ID) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
    | Push - Web  (This is not a preview, but only the content. This is because the message may render differently for each device.)     | - Main content - Backup content (wherever backup is supported, except for basic templates) - Alert details - Transaction details (alert ID) - User details (Push token) - Channel - Platform     | - Main content (summary, title, message, URLs) - Backup content (wherever backup is supported, except for basic templates) - Alert details (ID, name, type, app key, Workspace name) - Transaction details (alert ID) - User details (User ID and Push token) - Channel - Platform - Delivery type and time |
  </Tab>
</Tabs>

### Example of Message Content

#### Structure of a Single Message Object

The following are examples of the file content for a single message archived via SFTP and S3:

<CodeGroup>
  ```json S3 wrap theme={null}
  {
   "message_content": {
   "summary": "{message_summary}", 
   "related_urls": ["{image_or_deep_link_url}"],
   "title": "🎉 MarketingCampaigner Implemented!!",
   "message": "Sample push notification message"
        }, 
   "backup_content": {
   "summary": "{message_summary}",
   "related_urls": ["{image_or_deep_link_url}"],
   "message": "{message_body_content}",
   "title": "{message_title}",
   "message_details": {
   "sent_time": "Tue, 21 Jan 2025 09:54:59 EST",
    "template_info": {
        "id": "basic", 
        "type": "Native"
        },
   "delivery_type": "API_TRIGGERED", 
    "service": {
         "type": "APNs"
        },
   "channel": "push", 
   "message_type": "campaign", 
   "message_id": "{{message_id}}",
   "message_to": "", 
   "platform": "ios"
        }
        }
  ```

  ```json SFTP wrap theme={null}
  {
  "message_content": {
  "summary": "{message_summary}",
  "related_urls": ["{image_or_deep_link_url}"],
  "title": "{message_title}",
  "message": "{message_body_content}"
  },
  "identifier": {
  "transaction_id": null,
  "event_id": null,
  "cid": "{campaign_id}"
  },
  "backup_content": {
  "summary": "{backup_summary}",
  "related_urls": [],
  "title": "{backup_title}",
  "message": "{backup_message}"
  },
  "campaign_info": {
  "app_key": "{your_app_key}",
  "moe_event_id": null,
  "db_name": "{workspace_name}",
  "campaign_type": "campaign",
  "campaign_id": "{campaign_id}",
  "platform": "{platform}"
  },
  "db_name": "{workspace_name}",
  "hour": "{hour_of_day}",
  "meta": {
  "ref_only": false,
  "epochtime": "{unix_timestamp}",
  "date": "{YYYY-MM-DD}",
  "delivery_type": "{delivery_type}",
  "channel": "{channel_name}"
  },
  "message_details": {
  "sent_time": "{unix_timestamp}",
  "moe_event_id": null,
  "template_info": {
  "id": "{template_id}",
  "type": "Native",
  "version": null
  },
  "delivery_type": "{delivery_type}",
  "service": {
  "type": "{delivery_service}"
  },
  "channel": "{channel_name}",
  "message_type": "campaign",
  "message_id": "{campaign_id}",
  "message_to": {
  "user_ids": ["{user_id}"],
  "registration_ids": ["{device_token}"]
  },
  "platform": "{platform}"
  },
  "channel": "{channel_name}",
  "day": "{YYYY-MM-DD}"
  }
  ```
</CodeGroup>

The following images are some examples of file contents archived via the S3 archival method:

<Info>
  * The *View Sent Message* feature is not available for the SFTP method in the UI.
  * In case of non personalized message, SFTP message archival will have only one copy in the message content and MoEngage appends "user\_ids" of all the user receiving the message.
</Info>

<Tabs>
  <Tab title="Email">
    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/x_1J63SbC40L-eCI/images/moengage_500897.png?fit=max&auto=format&n=x_1J63SbC40L-eCI&q=85&s=834cf53cb18e4ea82e90310bc8f88456" alt="16.png" width="1614" height="1076" data-path="images/moengage_500897.png" />
  </Tab>

  <Tab title="SMS">
    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/WCD9PHM9QZsnxcgC/images/moengage_e8a87a.png?fit=max&auto=format&n=WCD9PHM9QZsnxcgC&q=85&s=ac649d632da8eb0ad5e8dc863770e0e7" alt="18.png" width="1616" height="1204" data-path="images/moengage_e8a87a.png" />
  </Tab>

  <Tab title="Push">
    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/q4471uD7Q8MmKctf/images/moengage_3d1977.png?fit=max&auto=format&n=q4471uD7Q8MmKctf&q=85&s=c3140e5dd7477410259461b0423b9807" alt="17.png" width="1240" height="796" data-path="images/moengage_3d1977.png" />
  </Tab>
</Tabs>
