# Create workspace rep thread messages

Send a message to the workspace's representative, opening the thread if this is the first one. 404 when no rep is assigned. ANY SEAT, deliberately: the person with the question is the one who should be able to ask it, and routing it through an admin loses them on the way.

Access class: `workspace`.

## Endpoint

`POST /v1/workspace/rep/thread/messages`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "body": "string"
  },
  "params": {},
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "content": "string",
    "conversation_id": 1.5,
    "direction": "string",
    "id": 1.5,
    "is_deleted": true,
    "medium": "string",
    "occurred_at": "string",
    "recorded_at": "string",
    "sender_id": 1.5,
    "sender_name": "string",
    "sender_type": "string",
    "status": "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"
}
```
