# Record a text that arrived

The desktop rail posts an incoming text here and it lands in the thread with that address, opening one if this workspace has never heard from the number. An address the workspace does not track is accepted and ignored rather than stored. Not a route a person or a model calls.

Access class: `workspace`.

## Endpoint

`POST /v1/comms/inbound`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "account_identifier": "string",
    "contact_identifier": "string",
    "contact_name": "string",
    "content": "string",
    "external_id": "",
    "media_count": 1,
    "medium": "string",
    "occurred_at": "string",
    "provider": "string"
  },
  "params": {},
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{}
```

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