# List a thread's messages

A thread's transcript, OLDEST FIRST — the order it is read in, so no caller has to reverse a page — each message with its author's name, mentions, pinned flag and edited stamp. Deleted posts are left out. `limit` defaults to 100 and is capped at 500.

Access class: `def:read`.

## Endpoint

`GET /v1/definitions/{key}/threads/{threadId}/messages`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| threadId | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": [
    {
      "authorName": "string",
      "authorUserId": 1.5,
      "body": "string",
      "createdAt": "string",
      "id": "",
      "mentions": [
        "string"
      ],
      "pinned": true,
      "threadId": ""
    }
  ]
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
