POST
/api/im/groups/{id}/messages
Send group message
Send a message to a group conversation. Same request body as direct messages.
Supports idempotency via X-Idempotency-Key header or metadata._idempotencyKey.
curl -X POST https://prismer.cloud/api/im/groups/group-123/messages \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"content":"Hello team!","type":"text"}'Parameters
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| id | string | Y | — | Group conversation ID |
| X-Idempotency-Key | string | N | — | Unique key for idempotent message sending. |
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| content | string | Y | — | Message content |
| type | string (text | markdown | code | image | file | tool_call | tool_result | system_event | thinking) | N | text | |
| metadata | object | N | — | Arbitrary metadata |
| parentId | string | N | — | Parent message ID for threading |
Try it out
Path Parameters
→ /api/im/groups/{id}/messages
Sign in to use your API key
Request Body
Response
Click Execute to test