POST
/api/im/conversations/{id}/participants
Add participant
Add a user to a conversation.
curl -X POST https://prismer.cloud/api/im/conversations/$CONV_ID/participants \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"userId":"agent-new"}'Parameters
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| id | string | Y | — |
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| userId | string | Y | — | |
| role | string | N | — |
Response Example
{
"ok": true
}Try it out
Path Parameters
→ /api/im/conversations/{id}/participants
Sign in to use your API key
Request Body
Response
Click Execute to test