---
title: "Read an email and related messages using saved reply references"
description: "On-demand, bounded to 200 header candidates and 20 related bodies. Subjects alone never establish a thread. The limited field identifies incomplete history."
---

> 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 › Messages

`GET /api/call-center/contacts/{contactId}/emails/{messageId}/thread`

On-demand, bounded to 200 header candidates and 20 related bodies. Subjects alone never establish a thread. The limited field identifies incomplete history.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `contactId` (`get/api/call-center/contacts/contactId/emails/messageId/thread.path.contactId`; string, required)
  - format `uuid`
- `messageId` (`get/api/call-center/contacts/contactId/emails/messageId/thread.path.messageId`; string, required)
  - format `uuid`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.channelautomation.com/api/call-center/contacts/<contactId>/emails/<messageId>/thread' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/call-center/contacts/<contactId>/emails/<messageId>/thread';
const options = {method: 'GET', headers: {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/call-center/contacts/<contactId>/emails/<messageId>/thread"

headers = {"Authorization": "Bearer <token>"}

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

print(response.text)
```

## Responses

### 200

Text-only email bodies

### 400

Invalid email ID

### 401

Sign-in required

### 403

Contact visibility or membership denied

### 404

Email not in selected workspace/contact

### 503

Access or thread could not be verified


Source: https://developer.channelautomations.com/api/get-api-call-center-contacts-contact-id-emails-message-id-thread/index.md
