ApiLinkedin messaging
React to a message with an emoji
Adds (react=true) or removes (react=false) an emoji reaction on a message via LinkedIn (reactWithEmoji / unreactWithEmoji). No local DB write — the change is broadcast over WebSocket and reconciled by the next LinkedIn sync.
POST
/conversations/{conversationUrn}/messages/{messageUrn}/reactAuthentication requiredConversations
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/conversations/<conversationUrn>/messages/<messageUrn>/react' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"emoji":"example_value","react":false}'Adds (react=true) or removes (react=false) an emoji reaction on a message via LinkedIn (reactWithEmoji / unreactWithEmoji). No local DB write — the change is broadcast over WebSocket and reconciled by the next LinkedIn sync.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
conversationUrn | path | Yes | string | URL-encoded conversation URN the message belongs to. |
messageUrn | path | Yes | string | URL-encoded message URN to react to (e.g., "urn:li:msg_message:(...)"). |
accountId | query | No | string | LinkedIn account ID (defaults to the most recently used account). |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
emoji | string | Yes | The emoji to react with (e.g., "👍"). |
react | boolean | Yes | true to add the reaction, false to remove it. |
Example
{
"emoji": "example_value",
"react": false
}Responses
| Status | Description |
|---|---|
| 200 | Reaction applied |
| 400 | Reaction could not be applied |
| 401 | Unauthorized |
| 404 | Account not found |
| 500 | Server error |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
messageUrn | string | |
emoji | string | |
react | boolean |
200 Example
{
"success": true,
"messageUrn": "Hello! I would like to connect with you.",
"emoji": "example_value",
"react": true
}400 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
400 Example
{
"error": "example_value"
}401 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
401 Example
{
"error": "example_value"
}404 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
404 Example
{
"error": "example_value"
}500 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
500 Example
{
"error": "example_value"
}