# Read a discussion thread

One internal thread with its roster, its resolved state and the caller's unread count. Addressed by the THREAD, with no row id in the path, because a thread id already names one record and repeating it would let the two disagree. The messages are a separate read.

Access class: `def:read`.

## Endpoint

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

## 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": {
    "createdAt": "string",
    "createdBy": 1.5,
    "definitionKey": "string",
    "id": "",
    "lastMessageAt": "string",
    "messageCount": 1.5,
    "participants": [
      {
        "addedAt": "string",
        "email": "string",
        "isMuted": true,
        "lastReadAt": "string",
        "name": "string",
        "role": "string",
        "userId": 1.5
      }
    ],
    "recordName": "string",
    "resolvedAt": "string",
    "resolvedBy": 1.5,
    "rowId": "",
    "status": "string",
    "subject": "string",
    "unread": 1.5,
    "updatedAt": "string"
  }
}
```

### 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"
}
```
