# msg2json: MSG to JSON – Read Outlook Emails

> msg2json (MSG to JSON – Read Outlook Emails) is a 1001fx API function in the group Data & JSON: POST https://api.1001fx.com/data/msg2json, 2 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

Reads an Outlook email file (.msg): subject, sender, recipients (to, cc, bcc), date, text and HTML body, and the attachments as download links.

- Group: Data & JSON
- Endpoint: `POST https://api.1001fx.com/data/msg2json`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 2 credits per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/msg2json

## Parameters

- `file` (file, optional) – File: The Outlook message (.msg). Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the Outlook message (.msg). Either file or fileUrl.
- `attachments` (boolean, optional, default `true`) – Attachments as links: Upload attachments and return download links (48 h). Default true.

## Example: MSG to JSON – Read Outlook Emails

```bash
curl -X POST 'https://api.1001fx.com/data/msg2json' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```
