# Post a message on a thread

Posts a message to a thread. Anyone @-named in `mentions` or in the body who is not already on the thread is SEATED on it, because naming somebody in a conversation they cannot see is a mention that does nothing; the named get a mention notification and the rest of the roster a message one. A post to a RESOLVED thread reopens it — somebody having more to say is the definition of not settled. A blank body is refused.

Access class: `def:read`.

## Endpoint

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

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| threadId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "body": "string",
    "mentions": [
      "string"
    ]
  },
  "params": {
    ":key": "string",
    ":threadId": ""
  },
  "query": {}
}
```

## Responses

### 201

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