Skip to main content

Proxy Configuration

Every LinkedIn account connected through We-Link requires a proxy. The proxy is used during login and for all subsequent requests to LinkedIn, ensuring each account operates from a consistent IP address.

warning

Exactly one proxy method must be provided when calling the login endpoint. If no valid proxy configuration is supplied, the request will be rejected.

Proxy Methods

We-Link supports two proxy options:

MethodDescriptionManaged by
Internal Proxy (recommended)We-Link assigns a geo-matched, high-quality residential proxyWe-Link
Customer ProxyYou provide your own proxy credentialsYou

We-Link automatically assigns a dedicated, localized IP address based on the country code you specify. This is the simplest option — no infrastructure to manage on your side.

Required Field

FieldTypeDescription
locationstringSupported country code (e.g., "US", "IN", "GB")

Supported Locations

View all 69 supported country codes
CodeCountryCodeCountryCodeCountryCodeCountry
AEUnited Arab EmiratesCRCosta RicaIDIndonesiaNLNetherlands
ALAlbaniaCYCyprusILIsraelNZNew Zealand
AMArmeniaDEGermanyIMIsle of ManOMOman
ARArgentinaEEEstoniaINIndiaPHPhilippines
ATAustriaEGEgyptISIcelandPKPakistan
AUAustraliaESSpainITItalyPLPoland
AZAzerbaijanFIFinlandJPJapanPTPortugal
BDBangladeshFRFranceJOJordanRSSerbia
BEBelgiumGBUnited KingdomKEKenyaSASaudi Arabia
BGBulgariaGEGeorgiaKZKazakhstanSESweden
BOBoliviaGRGreeceLKSri LankaSGSingapore
BRBrazilHKHong KongLTLithuaniaSKSlovakia
BYBelarusHRCroatiaLVLatviaSLSierra Leone
CACanadaHUHungaryMDMoldovaTNTunisia
CHSwitzerlandMKNorth MacedoniaTRTurkey
CLChileMXMexicoUAUkraine
CNChinaMYMalaysiaUSUnited States
NGNigeriaUZUzbekistan
ZASouth Africa

Example

{
"email": "user@example.com",
"password": "securePassword123",
"twoFASecret": "JBSWY3DPEHPK3PXP",
"proxy": {
"location": "US"
}
}

How It Works

  1. We-Link searches for an available proxy in the requested location.
  2. If available, the proxy is assigned to the account automatically.
  3. If no proxy is available for that location, the request fails with a 400 error:
{
"message": "No proxy available for location: {US}",
"error": "Bad Request",
"statusCode": 400
}

Billing & Location

caution

If you log in using one location and later log in again with a different location, a new proxy will be allocated. Since proxy allocation is location-based, this may result in additional charges.

Always provide the correct location to avoid unnecessary credit consumption.


Customer Proxy

Provide your own proxy credentials if you have dedicated infrastructure or need a specific IP address.

Required Fields

FieldTypeDescription
hoststringProxy host or IP address
portnumberProxy port
usernamestringProxy username
passwordstringProxy password

Example

{
"email": "user@example.com",
"password": "securePassword123",
"twoFASecret": "JBSWY3DPEHPK3PXP",
"proxy": {
"host": "192.168.1.1",
"port": 8080,
"username": "proxy_user",
"password": "proxy_password"
}
}

Behavior

  • The proxy is validated before the login session starts.
  • If validation fails, login is rejected.
  • We-Link does not manage lifecycle or billing for customer-provided proxies — you are responsible for uptime and rotation.

Proxy Validation

All proxies — internal or customer-provided — are validated before initiating a login session:

  1. We-Link performs an initial proxy connectivity check.
  2. If it fails, a secondary validation attempt is made automatically.
  3. If both attempts fail, the request is rejected:
{
"statusCode": 500,
"message": "Second proxy attempt failed, management notified"
}

Proxy Error Types

The following error codes may be returned in webhook notifications or API responses:

Error CodeDescription
PROXY_AUTH_ERRORProxy authentication failed, likely due to incorrect credentials or insufficient permissions.
PROXY_CONNECTION_TIMEOUT_ERRORProxy connection timed out, indicating that the proxy server is not responding within the expected time frame.
PROXY_CONNECTION_ERRORProxy connection error, indicating that there was a problem establishing a connection to the proxy server, which could be due to network issues, incorrect proxy settings, or the proxy server being down.
PROXY_VALIDATION_ERRORAn error occurred during the proxy validation process, which could encompass a range of issues including invalid proxy format, unsupported proxy type, or other validation-related problems.
PROXY_ROUTING_ERRORProxy routing mismatch, indicating that the IP address detected from the proxy does not match the expected IP address, which could suggest a misconfiguration or an issue with the proxy server.
PROXY_UNAVAILABLE_ERRORNo proxy servers are currently available for the requested location, or the internal proxy routing service is temporarily unreachable.
PROXY_ERRORA general error occurred while validating the proxy, which could be due to various reasons such as network issues, invalid proxy URL, or other unforeseen problems.

Monitoring Proxy Health

Once an account is connected, you can check and recover the proxy at any time using the proxy_status endpoint.

Endpoint: POST /api/v1/proxy_status

{
"accountId": "1234ab5678290....",
"reactivate": true
}

Response:

{
"message": "Proxy is active"
}

Setting "reactivate": true attempts to reactivate the proxy if it's in an error state.


Switching Proxies

You can change the proxy for an existing account without disconnecting it:

EndpointDescription
POST /api/v1/switch_to_internal_proxySwitch to a We-Link internal proxy
POST /api/v1/rotate_internal_proxyRotate to a new internal proxy in the same location
POST /api/v1/switch_to_customer_proxySwitch to your own proxy

These endpoints are available in the API Reference.


Best Practices

  • Use internal proxies unless you have a specific reason to bring your own — We-Link handles rotation, uptime, and geo-matching automatically.
  • Match the proxy location to the LinkedIn account's usual login region to minimize LinkedIn security flags.
  • Don't change proxy locations frequently — each location change allocates a new proxy and may incur additional charges.
  • Monitor proxy health using the proxy_status endpoint, especially if you see PROXY_ERROR failures in webhooks.
  • For customer proxies, use high-quality residential or ISP proxies — datacenter proxies are more likely to be flagged by LinkedIn.