APILinkedIn Messaging
Mark all messages as read
Mark all LinkedIn messages as read for the authenticated account. Clears all unread indicators in the inbox. Useful for bulk inbox management.
POST
/messaging/mark-all-readAuthentication requiredMessaging
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/messaging/mark-all-read' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"accountId":"acc_12345"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
Example
{
"accountId": "acc_12345"
}Responses
| Status | Description |
|---|---|
| 200 | All messages marked as read successfully |
| 401 | Unauthorized - Invalid or missing API key |
| 500 | Server error |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
accountId | string | |
message | string |
200 Example
{
"success": true,
"accountId": "696ce9e780e0483585e4e553",
"message": "All messages marked as read successfully"
}401 Example
{
"error": "Unauthorized - Invalid credentials"
}500 Example
{
"error": "Failed to get LinkedIn authentication credentials",
"success": false
}Mark conversation as seen
Mark a LinkedIn conversation as seen/read. This updates the read status for the sender and removes the unread indicator. Useful for managing inbox state programmatically.
Check if profile supports email messaging
Check whether a LinkedIn profile has email messaging enabled (open profile). Some LinkedIn members allow direct email contact through their profile. Use this to verify before attempting email outreach.
