Follow User
Follow or unfollow a LinkedIn user
POST
/linkedin/followFollow 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
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
profileId | string | No | LinkedIn profile ID |
profileUrn | string | No | LinkedIn profile URN (alternative to profileId) |
action | string | No | Action to perform: 'follow' or 'unfollow' (default: 'follow') |
Example
{
"accountId": "507f1f77bcf86cd799439011",
"profileId": "john-doe-123",
"profileUrn": "example",
"action": "follow"
}Responses
| Status | Description |
|---|---|
| 200 | Successful response |
200 Example
{
"success": true,
"action": "follow",
"profileUrn": "urn:li:fsd_profile:...",
"message": "Successfully followed user"
}