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

# Compile an email designed in blocks

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

An email ({"blocks": {"version": 1, "blocks": \[...\]}}) compiled to its HTML and plain-text templates with every Liquid tag intact, as it is stored for sending, and its content hash. "marks": true (for an editor) wraps the HTML of each block in ... comments, which change no layout. A mistake is a 422 with a JSON `pointer` into the blocks. Any member; saves nothing.

## Path Parameters

`orgId`

numberrequired

## Response

200

**cURL**

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

**JavaScript**

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

fetch('https://api.workover.io/workspace/{orgId}/email/render', 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/render"

response = requests.post(url)

print(response.text)
```
