Skip to main content

Login to LinkedIn (v2)

This API endpoint allows users to log in to LinkedIn via We-Link, optionally enabling automatic 2FA setup using the twoFASecret parameter. It returns an accountId for later calls and triggers a webhook with user info.

Note

The API response does not indicate whether two-factor authentication (2FA) is enabled on a LinkedIn account. To handle 2FA, customers must enable the Login PIN Required webhook event when creating a webhook in WeLink, or update an existing webhook to include this event.

If LinkedIn requires 2FA during login, the Login PIN Required webhook event will be triggered. Upon receiving this event, prompt the user to enter the verification code and then call the /api/v1/login_code endpoint.


Social Login Support: WeLink does not support social login authentication via signing in to LinkedIn using Google, Apple, or other third-party providers.Customers must have a LinkedIn account with a password set in order to log in to WeLink using LinkedIn credentials. If an account was created using a social login provider, the user must first set a LinkedIn password before attempting to authenticate with WeLink.

Proxy support:

1. Internal Proxy (paid): Provide "location" (e.g., "US"). We assign an IP.
Example:
{
"email": "example@mail.com",
"password": "password",
"proxy": {
"location": "US"
},
"twoFASecret": "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456"
}

2. Customer Proxy: Provide host, port, username, and password.
Example:
{
"email": "example@mail.com",
"password": "password",
"proxy": {
"host": "hostip",
"port": 4000,
"username": "username",
"password": "password"
},
"twoFASecret": "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456"
}

Important: One proxy method is required for login.

If no proxy is available for the requested location, the API will return a 400 Bad Request response.
Response Example:
{
"message": "No proxy available for location:IN",
"error": "Bad Request",
"statusCode": 400
}

Header Parameters
x-api-key string REQUIRED
x-api-secret string REQUIRED
Request Body REQUIRED
email string REQUIRED
password string REQUIRED
proxy object REQUIRED
location string
host string
port number
username string
password string
twoFASecret string
Responses
Immediate Result

Account Id

Success

Webhook

Schema OPTIONAL
status string
request_id string
result object
first_name string
last_name string
profile_id string
public_identifier string
premium boolean
occupation string
email string
Failed

Webhook

Schema OPTIONAL
status string
request_id string
error string