Follow User

Follow or unfollow a LinkedIn user

POST/linkedin/follow

Follow User

Follow or unfollow a LinkedIn user

Authentication requiredLinkedIn Actions

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/follow' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"accountId":"507f1f77bcf86cd799439011","profileId":"john-doe-123","profileUrn":"example","action":"follow"}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
profileIdstringNoLinkedIn profile ID
profileUrnstringNoLinkedIn profile URN (alternative to profileId)
actionstringNoAction to perform: 'follow' or 'unfollow' (default: 'follow')

Example

{
  "accountId": "507f1f77bcf86cd799439011",
  "profileId": "john-doe-123",
  "profileUrn": "example",
  "action": "follow"
}

Responses

StatusDescription
200Successful response

200 Example

{
  "success": true,
  "action": "follow",
  "profileUrn": "urn:li:fsd_profile:...",
  "message": "Successfully followed user"
}