---
title: "Get a reusable email content block"
description: "Fetches one workspace-scoped reusable HTML block 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/{blockId}`

Fetches one workspace-scoped reusable HTML block 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`

## Path parameters

- `blockId` (`get/api/email/content-blocks/blockId.path.blockId`; string, required)
  - format `uuid`

## Header parameters

- `X-Workspace-Id` (`get/api/email/content-blocks/blockId.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/<blockId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Workspace-Id: <X-Workspace-Id>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/email/content-blocks/<blockId>';
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/<blockId>"

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

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

print(response.text)
```

## Responses

### 200

Content block returned.

### 404

Content block not found.

### 500

Internal server error

#### Example

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

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


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