Facebook Pixel
APILinkedIn Actions

Check relationship status with specific account

Check the relationship between a specific LinkedIn account and a target profile. Useful for multi-account setups to check relationships from different accounts. Returns connection degree, follow status, and connection status.

GET/relationship/{accountId}/{profileId}
Authentication requiredRelationships

Code Examples

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

Check the relationship between a specific LinkedIn account and a target profile. Useful for multi-account setups to check relationships from different accounts. Returns connection degree, follow status, and connection status.

Parameters

NameInRequiredTypeDescription
accountIdpathYesstringUnique identifier for the LinkedIn account to check from
profileIdpathYesstringTarget LinkedIn profile vanity URL slug (the part after linkedin.com/in/, e.g., "john-doe-123")

Request Body

No request body.

Responses

StatusDescription
200Relationship status retrieved successfully
404Profile not found

200 Response Parameters

NameTypeDescription
connectedbooleanWhether you are 1st-degree connected
invitationSentbooleanWhether you have sent a connection invitation
invitationReceivedbooleanWhether you have received a connection invitation
statusstringConnection status
profileUrnstringLinkedIn profile URN of the target user
accountIdstringLinkedIn account ID used for the check

200 Example

{
  "connected": false,
  "invitationSent": false,
  "invitationReceived": false,
  "status": "NOT_CONNECTED",
  "profileUrn": "urn:li:fsd_profile:ACoAAA24A-MBVEvT49xpVF2gnWrhvmUIPDJshSM",
  "accountId": "acc_12345"
}

404 Response Parameters

NameTypeDescription
errorstring
successboolean

404 Example

{
  "error": "LinkedIn profile not found: invalid-profile-id",
  "success": false
}