---
title: "View Email"
method: GET
path: "/emails/{msgid}/view"
tags: ["Emails"]
---

# View Email

`GET /emails/{msgid}/view`

Returns email details for viewing or rendering. Required Access Level: None

## Path parameters

- `msgid` string, string, required — string

## Response `200`

OK

- EmailData
  - `Preview` EmailView — Email details formatted in json
    - `Body` string, string — Body (HTML, otherwise plain text) of email
    - `Subject` string, string — Default subject of email.
    - `From` string, string — From email address
  - `Attachments` FileInfo[] — Attachments sent with the email
    - `FileName` string, string — Name of your file including extension.
    - `Size` integer, nullable — Size of your attachment (in bytes).
    - `DateAdded` string, date-time — Date of creation in YYYY-MM-DDThh:ii:ss format
    - `ExpirationDate` string, date-time, nullable — Date when the file will be deleted from your Account.
    - `ContentType` string, string — Content type of the file.
  - `Status` EmailStatus — Status information of the specified email
    - `From` string, string — Email address this email was sent from.
    - `To` string, string — Email address this email was sent to.
    - `Date` string, date-time — Date the email was submitted.
    - `Status` 'All' | 'ReadyToSend' | 'WaitingToRetry' | 'Sending' | 'Error' | 'Sent' | 'Opened' | 'Clicked' | 'Unsubscribed' | 'AbuseReport'
    - `StatusName` string, string — Name of email's status
    - `StatusChangeDate` string, date-time — Date of last status change.
    - `DateSent` string, date-time — Date when the email was sent
    - `DateOpened` string, date-time, nullable — Date when the email changed the status to 'opened'
    - `DateClicked` string, date-time, nullable — Date when the email changed the status to 'clicked'
    - `ErrorMessage` string, string — Detailed error or bounced message.
    - `TransactionID` string, guid — ID number of transaction
    - `EnvelopeFrom` string, string — Envelope from address
    - `ErrorCategory` 'Unknown' | 'Ignore' | 'Spam' | 'BlackListed' | 'NoMailbox' | 'GreyListed' | 'Throttled' | 'Timeout' | 'ConnectionProblem' | 'SPFProblem' | 'AccountProblem' | 'DNSProblem' | 'NotDeliveredCancelled' | 'CodeError' | 'ManualCancel' | 'ConnectionTerminated' | 'NotDelivered'

---

[API](https://skmtc.net/elasticemail/apis/megamail-api.md) · [All operations](https://skmtc.net/elasticemail/apis/megamail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elasticemail/megamail-api/versions/1a0ebb83f676/schema)
