> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Import an email from Customer.io

POST`/workspace/{orgId}/email/import`

A Customer.io email as a NEW draft, never over one that exists: a Design Studio email as {"source": "...", "globalStyles"?: {...}, "node"?: {...} or "envelope"?, "settings"?}, or a rich-text one as {"body", "layout"?}; plus "name"?, "customerio"?: {"templateId", "nodeId"} and "dryRun"?. Answers the blocks, the subject and preheader, the brand kit from the global styles, and an import report: anything that did not map one to one, by JSON pointer and source line. Nothing is dropped: content that does not map is kept as a raw HTML block. Owners and admins; a dry run, any member.

## Path Parameters

`orgId`

numberrequired

## Response

200

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/workspace/{orgId}/email/import'
```

**JavaScript**

```javascript
const options = {
  method: 'POST'
};

fetch('https://api.workover.io/workspace/{orgId}/email/import', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/workspace/{orgId}/email/import"

response = requests.post(url)

print(response.text)
```
