Facebook Pixel
APILinkedIn Messaging

Check if a conversation exists with a profile

Check whether the authenticated LinkedIn account already has an existing conversation with a target profile. Returns the conversation URN if one exists. Single LinkedIn API call (no message history fetched). Useful as a precheck before sending a connection request or message to avoid duplicate outreach.

GET/conversations/exists/{profileId}
Authentication requiredConversations

Code Examples

curl -X GET 'https://api.connectsafely.ai/linkedin/conversations/exists/<profileId>' \
-H 'Authorization: Bearer <your_api_key>'

Parameters

NameInRequiredTypeDescription
profileIdpathYesstringLinkedIn profile vanity URL slug (the part after linkedin.com/in/, e.g., "john-doe-123")
accountIdqueryNostringLinkedIn account ID to check from. Omit to use the default account for the authenticated user.

Request Body

No request body.

Responses

StatusDescription
200Conversation existence check completed
401Unauthorized
404Account or profile not found
500Server error

200 Response Parameters

NameTypeDescription
successboolean
hasConversationbooleanWhether a conversation already exists with this profile
conversationUrnstringExisting conversation URN if one exists, otherwise null
profileUrnstringResolved LinkedIn profile URN of the target user
accountIdstringLinkedIn account ID used for the check

200 Example

{
  "success": true,
  "hasConversation": true,
  "conversationUrn": "urn:li:example:123456",
  "profileUrn": "urn:li:fsd_profile:ACoAABcdefgh",
  "accountId": "acc_12345"
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "example_value"
}

404 Response Parameters

NameTypeDescription
errorstring

404 Example

{
  "error": "example_value"
}

500 Response Parameters

NameTypeDescription
errorstring

500 Example

{
  "error": "example_value"
}