Managing LinkedIn Integration
Create a New Identity First
As a reminder, to automate LinkedIn actions, you must first create an identity in Edges using the Create an Identity endpoint. Example request:A name that allows you to identify the Identity: it can be the full name of the Identity or an internal reference (or both!) at your convenience.
The Identity’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
- Log out of your VPN before accessing social media, or
- Ensure the “timezone” you send matches the country of the VPN IP address.
Edges supports the canonical IANA time zones, as defined by the tz database. Only canonical names are accepted. Deprecated or alias entries are currently not supported.Example: “Europe/Kiev” is deprecated and has been replaced by “Europe/Kyiv”, which is the valid canonical identifier. Deprecated names are maintained in the IANA backward zone file for legacy compatibility but should not be used.
Connect LinkedIn to Identities
After adding an Identity, you will Connect an Identity’s Integration in order to link the LinkedIn account to the identity. 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 Edges 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
Monitor LinkedIn Integration Status with Webhooks
LinkedIn integrations have a lifecycle that you can monitor in real-time using webhooks. Whether the integration was created through user interaction, frontend operations, or API calls, webhooks provide instant notifications about status changes. Webhooks send HTTP requests to your platform when integration events occur, allowing you to:- React immediately to authentication issues
- Notify users about account status changes
- Trigger automated responses (e.g., resync flows)
- Monitor integration health proactively
Setup Process
1
Configure Your Webhook URL
Configure a webhook URL in the developer section of your Edges workspace.
Webhook URL Requirements:
- Must be HTTPS (e.g.,
https://your-domain.com/webhooks
) - Supports extended URLs with basic auth, ports, and query parameters (up to 1024 characters)
- Example:
https://user:pass@your-website.com:8080/webhooks/edges/linkedin-integration?foo=bar
2
Implement Your Webhook Handler
Each LinkedIn integration event triggers a POST request to your configured URL with this JSON payload:
Field Explanations
Field | Description |
---|---|
event_type , event | The type and nature of the integration event |
data | Standard integration information (see API reference) |
reason | Cause of the event (especially relevant for AUTH_EXPIRED ) |
action_to_be_taken | Recommended next step for handling the event |
Event Types
Event | Description | Typical Action |
---|---|---|
AUTH_SUCCESS | Integration successfully authenticated | Continue normal operations |
AUTH_PENDING | Authentication in progress | Wait for completion |
AUTH_FAILED | Authentication failed | Retry or notify user |
AUTH_EXPIRED | Authentication expired | Trigger resync flow |
Use Cases
1. Handle Expired Sessions
When you receive anAUTH_EXPIRED
event with action_to_be_taken: "RETRY_LOGIN"
, you can:
- Trigger immediate resync via API call
- Notify users to re-authenticate
- Pause dependent workflows until resolved
2. Monitor Native Login Workflow
When using the native login workflow, users complete authentication asynchronously. TheAUTH_SUCCESS
event confirms when setup is complete.
Best Practices:
- Ensure your webhook endpoint handles POST requests and JSON payloads
- Implement proper error handling and logging
- Consider verifying webhook authenticity (e.g., via headers)
- Respond quickly to webhook requests (within 5 seconds)
Best Practices for LinkedIn Automation
VPN and Timezone/Country Settings- Ensure the
timezone
in Edges matches your login location on LinkedIn. - Match your VPN’s country with Edges, or disconnect the VPN while logging in.
- Use Edges’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 Edges 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
How to refresh cookies via API
To refresh accounts via API, use the Connect an Identity’s Integration endpoint by passing the updatedli_at
and/or li_a
cookie values:
If you build your own Chrome Extension, you should refresh cookies every 2
hours or so.
alarms
:
Complete source code is available on
GitHub.
Smart Limits to Prevent Restrictions
Edges developed a unique Smart Limits feature to protect your
users’ LinkedIn accounts. Learn more in this article LinkedIn Rate
Limits.
LinkedIn Licenses Compatibility
Edges supports various LinkedIn licenses, each with unique features and limitations. Below is a breakdown of how each license integrates with Edges:License | Edges Level | Edges 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 |
level
in the LinkedIn integration.
By following this guide, you can safely automate LinkedIn activities with Edges, ensuring stable sessions and avoiding platform restrictions.
For further assistance, feel free to reach out to our support team at support@edges.run 🙌
Troubleshooting LinkedIn Login Errors
When connecting a LinkedIn account natively (using username and password), you may encounter various errors. Below is a comprehensive guide to the most common error cases, their meanings, and how to resolve them.Common Error Cases
When using our native LinkedIn connection module (username and password), you may encounter various errors. Below is a comprehensive guide to the most common error cases, their meanings, and how to resolve them.
Scenario | Message | Status | Error |
---|---|---|---|
Invalid credentials | Username or password invalid. | 400 | INVALID_CREDENTIALS Double-check your LinkedIn username and password. See authentication endpoint |
Password reset needed | The account is locked, you need to request a password reset. | 424 | REQUEST_PASSWORD_RESET Request a password reset on LinkedIn. |
Google login not supported | Username or password invalid. | 400 | INVALID_CREDENTIALS Google login is not supported. Use “Forgot password” on LinkedIn to set a password and use that for login. |
Checkpoint code invalid | Code invalid. | 400 | INVALID_CODE The checkpoint (2FA/SMS/email) code is incorrect. Try again. See checkpoint endpoint |
In-app challenge pending | Waiting for user to validate in_app_challenge | 500 | IN_APP_CHALLENGE_PENDING Complete the challenge in your LinkedIn app. |
In-app challenge expired | In_app_challenge expired. Please retry the whole process by sending credentials again on /authenticate | 500 | IN_APP_CHALLENGE_EXPIRED Start the login process again. |
2FA expired | 2FA expired. Please retry the whole process by sending credentials again on /authenticate | 500 | 2FA_VALIDATION_EXPIRED Start the login process again. |
Failed IP attribution | Could not login the account. | 500 | LOGIN_ACCOUNT_500_ERROR Retry logging in. This is a LinkedIn-side issue. |
IP allocation error | IP allocation error. Please retry again in 5 minutes or contact support. | 400 | IP_ATTRIBUTION_ERROR_400 Wait 5 minutes and try again, or contact support. |
IP allocation conflict | IP allocation error. Please retry again in 5 minutes or contact support. | 409 | IP_ATTRIBUTION_CONFLICT_409 Wait 5 minutes and try again, or contact support. |
IP rate limit exceeded | Rate limit exceeded IP attribution, please try again in five (5) minutes or contact the support. | 429 | IP_ATTRIBUTION_RATE_LIMIT_429 Wait 5 minutes and try again, or contact support. |
No IP available in timezone | No IP available in this timezone. Update your timezone to a neighbouring one or contact support. | 400 | IP_TIMEZONE_NOT_SUPPORTED_400 Change your timezone in Edges or contact support. |
Captcha challenge | Error while resolving the challenge, the Captcha challenge seem to be pending. Re-send username and password to overcome this. | 500 | CAPTCHA_CHALLENGE_ERROR Retry the authentication with your credentials. |
Unsupported challenge | Unsupported challenge identified, please contact the support and provide it with the identity_uid so we can address it. | 500 | UNSUPPORTED_CHALLENGE Contact support with your identity_uid. |
Simple challenge failed | Error while solving challenge, retry in 5 minutes, if it persists contact support. | 500 | LOGIN_SIMPLE_CHALLENGE Wait and retry, or contact support. |
Checkpoint missing data | Error while solving the challenge, retry the whole process by sending credentials to /authenticate again | 500 | CHECKPOINT_MISSING_DATA Start the login process again. |
User management not permitted | User management via the API is not permitted for the current workspace, activate the option on settings | 403 | CREATE-ONE-ACCOUNT_403_FORBIDDEN Enable user management in your workspace settings. |
Identity already exists | An identity with the same Linkedin ID already exists. | 409 | CREATE_OR_UPDATE_ACCOUNT_409_CONFLICT Use a different LinkedIn account or identity. |
Account already exists on identity | An account already exist on this identity | 409 | CREATE_OR_UPDATE_ACCOUNT_409_CONFLICT This will be merged in the future. |
Account link change | Please note that your LinkedIn integration is different from the one that has already been synchronized on this identity. | 409 | CREATE_OR_UPDATE_ACCOUNT_409_CONFLICT Use the same LinkedIn account as previously connected. |
Other errors | Error while synchronizing your account, please retry again or contact the support. | 500 | - Retry or contact support. |
Notes & Recommendations
- Google Login: If your LinkedIn account uses Google login, you must set a password on LinkedIn (via “Forgot password”) to use native login.
- IP/Location Issues: Many errors are related to IP allocation or location mismatches. Make sure your timezone and country settings in Edges match your actual login location.
- Challenge/2FA: If you receive a challenge (SMS, email, in-app), complete it promptly. If it expires, restart the login process.
- Contact Support: For persistent or unclear errors, contact support and provide your
identity_uid
for faster resolution.