# Add somebody to a conversation

Puts a colleague (user_id) or an outside contact (external_contact_name with an email or a phone) on a thread's roster, with an optional role.

Access class: `workspace`.

## Endpoint

`POST /v1/comms/conversations/{id}/participants`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "external_contact_email": "string",
    "external_contact_name": "string",
    "external_contact_phone": "string",
    "role": "string",
    "user_id": 1
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "external_contact_email": "string",
  "external_contact_name": "string",
  "external_contact_phone": "string",
  "id": 1,
  "is_muted": true,
  "joined_at": "string",
  "left_at": "string",
  "participant_type": "string",
  "role": "string",
  "user_id": 1
}
```

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