---
title: "Post the MIME encoded email text in the body to this API. If you have EML files then you need to post the contents of the EML file."
method: POST
path: "/api/Mime/ParseString"
tags: ["Mime"]
---

# Post the MIME encoded email text in the body to this API. If you have EML files then you need to post the contents of the EML file.

`POST /api/Mime/ParseString`

## Response `200`

Success

- SigParserEmailParsingModelsCleanedBodyOutput
  - `CleanedBodyPlain` string, nullable — The email with the signature and reply chains removed. If the email was originally HTML then this is the HTML converted to text.
  - `CleanedBodyHtml` string, nullable — The body of the email.
  - `IsSpammyLookingEmailMessage` boolean — Is this email a spammy looking message or a non-human type sender. You likely don't want to use the CleeanedBody fields when rendering this message but you could if you wanted to.
  - `IsSpammyLookingSender` boolean — Does the sender of this message look like they're a spammer.
  - `EmailTypes` SigParserEmailParsingEmailType[], nullable — The known type of email that this is. Useful for determining how you want to display this in a user interface.
  - `Emails` SigParserEmailParsingModelsEmail[], nullable — Collection of all the emails extracted from the body. The first email is the most recent and the last one is the oldest. The parse quality drops off the deeper you go though since there is a bigger chance for corrupted headers.
    - `CleanedBodyPlain` string, nullable
    - `CleanedBodyHtml` string, nullable
    - `Subject` string, nullable
    - `Date` string, date-time, nullable — Date is only available if it was parsed out from the email or if it was passed in for the root email.
    - `FromEmailAddress` string, nullable
    - `FromName` string, nullable
    - `To` SigParserEmailParsingModelsEmailRecipient[], nullable
      - `Name` string, nullable
      - `EmailAddress` string, nullable
    - `Cc` SigParserEmailParsingModelsEmailRecipient[], nullable
      - `Name` string, nullable
      - `EmailAddress` string, nullable
  - `Subject` string, nullable — Subject of the email as it was passed into the function or extracted from the header of the email.
  - `Date` string, date-time, nullable
  - `Headers` object, nullable
  - `FullPlainTextBody` string, nullable
  - `FullHtmlBody` string, nullable
  - `MsgType` string, nullable — Type of the .msg file.

---

[API](https://skmtc.dev/sigparser/apis/sigparser-stateless-email-parsing-apis.md) · [All operations](https://skmtc.dev/sigparser/apis/sigparser-stateless-email-parsing-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sigparser/sigparser-stateless-email-parsing-apis/revisions/a41b40faffd5/schema)
