# Read messages in a conversation

**`GET https://myagentmail.com/linkedin/conversations/{conversationUrn}/messages`**

Group: LinkedIn — Outreach
Operation ID: `linkedinListConversationMessages`

Read messages in one thread, most-recent first. URL-encode the
`conversationUrn` path parameter.


## Path parameters

- `conversationUrn` (string, required) — URL-encoded urn:li:msg_conversation:(...).

## Query parameters

- `sessionId` (string, required) —

## Responses

### 200 — Thread messages, newest first.

```json
{
  "ok": false,
  "conversationUrn": "string",
  "messages": [
    {
      "messageUrn": "string",
      "conversationUrn": "string",
      "text": "string",
      "deliveredAt": 0,
      "senderUrn": "string",
      "senderName": "string",
      "senderSlug": "string",
      "attachmentCount": 0,
      "reactionCount": 0,
      "isFromViewer": false
    }
  ]
}
```

## Code samples

### TypeScript

```typescript
import { MyAgentMail } from "myagentmail";

const client = new MyAgentMail({ apiKey: process.env.MYAGENTMAIL_API_KEY! });

// GET /linkedin/conversations/{conversationUrn}/messages
const result = await client.request("get", "/linkedin/conversations/{conversationUrn}/messages", { params: { conversationUrn: "string" } });
```

### curl

```bash
curl -X GET 'https://myagentmail.com/linkedin/conversations/string/messages?sessionId=string' \
  -H 'X-API-Key: $MYAGENTMAIL_API_KEY'
```

### Python

```python
import os, requests

r = requests.get(
    "https://myagentmail.com/linkedin/conversations/string/messages?sessionId=string",
    headers={"X-API-Key": os.environ["MYAGENTMAIL_API_KEY"]},
)
r.raise_for_status()
print(r.json())
```
