Connecting LinkedIn Accounts
Learn to manage LinkedIn authentication and user integrations in Captain Data.
Managing LinkedIn Accounts
Create a New User First
As a reminder, to automate LinkedIn actions, you must first create a user in Captain Data using the Create a User endpoint. Example request:
The email of the user.
The user’s full name.
The user’s timezone.
The timezone
field provisions a proxy IP matching that timezone/country.
This needs to match the location where you log into your LinkedIn account to
avoid restrictions.
When using a VPN, either: 1. Log out of your VPN before accessing social media, or 2. Ensure the “timezone” you send matches the country of the VPN IP address.
Connect LinkedIn Accounts to Users
After adding a User, you will Connect a User’s Integration in order to link the LinkedIn account to the user.
You can connect LinkedIn accounts in two ways:
-
Synchronize cookies: Send LinkedIn authentication cookies (
li_at
and optionallyli_a
for Sales Navigator) to connect an account. This is useful when:- You already have the cookies from your own Chrome extension
- You want to handle authentication yourself
- You need precise control over cookie management
Name of the LinkedIn account, e.g. “LinkedIn Account #1”. It’s generally the
User’s full_name
or email
.
For COOKIES integration types, provide authentication cookies here.
Important note: If you’re connecting an account for LinkedIn Sales
Navigator, you need to send both cookies. If you don’t include the li_a
token, the connection may not work properly with LinkedIn Sales Navigator.
Including the li_a
token will also speed up account synchronization.
- Connect natively: Provide the LinkedIn email and password to let Captain Data handle the authentication flow. This is recommended when:
- You want a simpler integration
- You don’t want to manage cookies
- You need automatic cookie refresh
Best Practices for LinkedIn Automation
VPN and Timezone/Country Settings
- Ensure the
timezone
in Captain Data matches your login location on LinkedIn. - Match your VPN’s country with Captain Data, or disconnect the VPN while logging in.
Managing Chrome Sessions
- Use Captain Data’s Chrome Extension to automatically sync cookies, useful for testing purposes.
- If you’re using multiple LinkedIn accounts on the same browser, you must create separate Chrome profiles:
- Click your Chrome profile icon > Add a new profile.
- Name it according to the LinkedIn account (e.g., “Account B”).
- Log in to Captain Data and LinkedIn within this new session.
Updating cookies for Account A while logged into Account B can lead to mismatches and errors.
Refreshing Cookies
Cookies need refreshing if:
- You log out of LinkedIn
- LinkedIn expires or changes cookies
- LinkedIn restricts the account due to excessive activity
Regular activity and following Smart Limits guidelines help prevent restrictions.
How to refresh cookies via API
To refresh accounts via API, use the PUT - Update a User’s Integration endpoint by
passing the updated li_at
and/or li_a
cookie values:
If you build your own Chrome Extension, you should refresh cookies every 2 hours or so.
Here’s a code example for a Chrome Extension that runs in the background using alarms
:
Complete source code is available on GitHub.
Smart Limits to Prevent Restrictions
Captain Data developed a unique Smart Limits feature to protect your users’ LinkedIn accounts. Learn more in this article LinkedIn Rate Limits.
LinkedIn Licenses Compatibility
Captain Data supports various LinkedIn licenses, each with unique features and limitations. Below is a breakdown of how each license integrates with Captain Data:
License | Captain Data Level | Captain Data Compatibility | InMails/Month | Invitations with Note | CRM Integration |
---|---|---|---|---|---|
LinkedIn Basic | Classic | ✅ Yes | 0 | 5/month | No |
LinkedIn Premium Career | Classic | ❌ No | 5 | N/A | No |
LinkedIn Premium Business | Classic | ✅ Yes | 15 | 400 | No |
Sales Navigator Core | Sales Navigator | ✅ Yes | 50 | 400 | No |
Today Captain Data handles LinkedIn Basic, LinkedIn Premium Business, and Sales Navigator Core which are defined as level
in the LinkedIn integration.
By following this guide, you can safely automate LinkedIn activities with Captain Data, ensuring stable sessions and avoiding platform restrictions.
For further assistance, feel free to reach out to our support team at [email protected] 🙌