Check relationship status with profile
Check the relationship between your default LinkedIn account and a target profile. Returns connection status (1st, 2nd, 3rd degree), whether you follow them, and if you are connected. Useful for determining which actions are available (message, connect, etc.).
/relationship/{profileId}Check relationship status with profile
Check the relationship between your default LinkedIn account and a target profile. Returns connection status (1st, 2nd, 3rd degree), whether you follow them, and if you are connected. Useful for determining which actions are available (message, connect, etc.).
Code Examples
curl -X GET 'https://api.connectsafely.ai/linkedin/relationship/<profileId>' \ -H 'Authorization: Bearer <your_api_key>' \Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
profileId | path | Yes | string | LinkedIn profile public ID (e.g., "john-doe-123") |
Request Body
No request body.
Responses
| Status | Description |
|---|---|
| 200 | Relationship status retrieved successfully |
Send a connection request
Send a connection request to a LinkedIn member to become 1st-degree connections. Optionally include a personalized message (300 character limit). Connection requests with custom messages have higher acceptance rates. Provide either profileId or profileUrn.
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.
