Facebook Pixel
ApiLinkedin profiles

Visit a LinkedIn profile

Simulates visiting a LinkedIn profile to trigger the "Who Viewed Your Profile" notification for the target user. This sends the necessary telemetry events that LinkedIn uses to track profile views.

POST/profile/visit
Authentication requiredProfiles

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/profile/visit' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"profileId":"john-doe-123"}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
profileIdstringYesLinkedIn vanity name/profile ID of the user to visit (e.g., "john-doe-123")
accountIdstringNoLinkedIn account ID to use for the visit. If not provided, uses the default account.

Example

{
  "profileId": "john-doe-123"
}

Responses

StatusDescription
200Profile visit registered successfully
400Failed to visit profile - could not extract profile URN or send telemetry
401Unauthorized - Invalid or missing authentication
500Server error - Failed to get LinkedIn credentials or internal error

200 Response Parameters

NameTypeDescription
successbooleanWhether the profile visit was successful
profileIdstringThe profile ID that was visited
profileUrnstringThe extracted profile URN (ACoAA format)
numericMemberIdnumberThe numeric member ID extracted from the profile URN
messagestringSuccess or status message
accountIdstringLinkedIn account ID that performed the visit

200 Example

{
  "success": true,
  "profileId": "john-doe-123",
  "profileUrn": "ACoAAF7lRPsBwzO9AMvoBVVioq4MmyJUyfiXEqY",
  "numericMemberId": 1592083707,
  "message": "Profile visit registered successfully",
  "accountId": "696ce9e780e0483585e4e553"
}

400 Response Parameters

NameTypeDescription
successboolean
errorstring
profileUrnstring
accountIdstring

400 Example

{
  "success": false,
  "error": "Failed to fetch profile URN",
  "accountId": "696ce9e780e0483585e4e553"
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "Unauthorized"
}

500 Response Parameters

NameTypeDescription
errorstring

500 Example

{
  "error": "Failed to get LinkedIn credentials",
  "success": false
}