# Create conversation participant

```http
POST /conversations/{conversation_id}/participants
```

Add a user to a conversation as member or viewer to share a thread; the operation needs the admin relation.

## Parameters

| Name              | In   | Required | Description |
| ----------------- | ---- | -------- | ----------- |
| `conversation_id` | path | Yes      |             |

## Request body

| Field     | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| `user_id` | string | Yes      |             |
| `role`    | string |          |             |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 201    | Added participant                                                                                           |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 409    | Conflict                                                                                                    |
| 413    | Payload too large                                                                                           |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
