Follow or unfollow a LinkedIn profile
Follow or unfollow a LinkedIn member to see their posts in your feed. Following does not require a connection. Provide either profileId (public identifier) or profileUrn (internal URN). Following builds your network visibility without sending connection requests.
/followFollow or unfollow a LinkedIn profile
Follow or unfollow a LinkedIn member to see their posts in your feed. Following does not require a connection. Provide either profileId (public identifier) or profileUrn (internal URN). Following builds your network visibility without sending connection requests.
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/follow' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"accountId":"acc_12345","profileId":"john-doe-123","profileUrn":"urn:li:fsd_profile:ACoAABcdefgh","action":"follow"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
profileId | string | No | LinkedIn profile public ID (e.g., "john-doe-123") |
profileUrn | string | No | LinkedIn profile URN (e.g., "urn:li:fsd_profile:ABC123") |
action | string | No | Action to perform: follow or unfollow the profile |
Example
{
"accountId": "acc_12345",
"profileId": "john-doe-123",
"profileUrn": "urn:li:fsd_profile:ACoAABcdefgh",
"action": "follow"
}Responses
| Status | Description |
|---|---|
| 200 | Follow action completed successfully |
LinkedIn Actions API
Programmatic follow, messaging, and connection workflows for LinkedIn.
Send a LinkedIn message
Send a direct message to a LinkedIn member. Supports regular messages (requires 1st-degree connection) and InMail (for non-connections, requires Premium). Can also send messages in group context. Provide either recipientProfileId or recipientProfileUrn.
