---
title: "List reusable email content blocks"
description: "Lists workspace-scoped reusable HTML blocks for Email Builder V2."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Email

`GET /api/email/content-blocks`

Lists workspace-scoped reusable HTML blocks for Email Builder V2.

## Authentication

Requires one of the following:

- `BearerAuth`, http, header `Authorization`, format `JWT` **and** `WorkspaceAuth`, apiKey, in header, header `X-Workspace-Id`
- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY` **and** `WorkspaceAuth`, apiKey, in header, header `X-Workspace-Id`

## Query parameters

- `search` (`get/api/email/content-blocks.query.search`; string, optional) — Optional name search.
- `status` (`get/api/email/content-blocks.query.status`; string, optional) — Optional status filter.
  - one of `"active"`, `"archived"`
- `block_type` (`get/api/email/content-blocks.query.block_type`; string, optional) — Optional block type filter.
  - one of `"header"`, `"footer"`, `"offer"`, `"promo"`, `"legal"`, `"custom"`

## Header parameters

- `X-Workspace-Id` (`get/api/email/content-blocks.header.X-Workspace-Id`; string, required) — Workspace ID for data isolation

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.channelautomation.com/api/email/content-blocks \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Workspace-Id: <X-Workspace-Id>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/email/content-blocks';
const options = {
  method: 'GET',
  headers: {'X-Workspace-Id': '<X-Workspace-Id>', Authorization: 'Bearer <token>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/email/content-blocks"

headers = {
    "X-Workspace-Id": "<X-Workspace-Id>",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Content blocks returned.

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`get/api/email/content-blocks.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`get/api/email/content-blocks.response.500.details`; string, optional)
- `success` (`get/api/email/content-blocks.response.500.success`; boolean, optional)
  - example `false`


Source: https://developer.channelautomations.com/api/get-api-email-content-blocks/index.md
