Skip to main content

Event Types & Payloads

We-Link sends different event types through webhooks depending on the API action that was performed. Each event carries a consistent payload structure with type-specific result data.

Event Categories

Authentication Events

Event TypeTriggerDescription
LOGIN_SUCCESSAccount loginAccount successfully connected
LOGIN_FAILEDAccount loginLogin attempt failed
LOGIN_PIN_REQUIREDAccount login2FA PIN required from user

LOGIN_SUCCESS Payload:

{
"status": "SUCCESS",
"request_id": "req-12345",
"result": {
"first_name": "Jane",
"last_name": "Doe",
"profile_id": "jane-doe-123",
"public_identifier": "jane-doe-public",
"premium": true,
"occupation": "Software Engineer",
"email": "jane.doe@example.com"
},
"hash": "..."
}

LOGIN_PIN_REQUIRED Payload:

{
"status": "PIN_REQUIRED",
"request_id": "req-12345",
"message": "Please provide the verification code sent to the user",
"hash": "..."
}

Connection Events

Event TypeTriggerDescription
CONNECTION_SENTSend connectionInvitation successfully sent
CONNECTION_FAILEDSend connectionInvitation failed to send

CONNECTION_SENT Payload:

{
"status": "SUCCESS",
"request_id": "req-67890",
"result": {
"connected": true,
"profile_id": "target-user-456"
},
"hash": "..."
}

Messaging Events

Event TypeTriggerDescription
MESSAGE_SENTSend messageMessage delivered successfully
MESSAGE_REPLYMessage syncNew reply detected via reply tracking
MESSAGE_FAILEDSend messageMessage delivery failed

Profile Events

Event TypeTriggerDescription
PROFILE_VIEWEDView profileProfile visit completed
PROFILE_DATAScrape profileProfile data retrieved

Search Events

Event TypeTriggerDescription
SEARCH_COMPLETEDPerform searchSearch results ready

Common Payload Fields

Every webhook payload contains these standard fields:

FieldTypeDescription
statusstringSUCCESS, FAILED, or event-specific status
request_idstringUnique identifier matching the original API request
resultobjectEvent-specific result data (on success)
errorstringError message (on failure)
hashstringHMAC signature for verification

Error Codes in Payloads

Error CodeDescription
WRONG_PASSWORDInvalid LinkedIn credentials
PROXY_ERRORProxy connection failed
ACCOUNT_RESTRICTEDLinkedIn has restricted the account
STATUS_429LinkedIn rate limit exceeded
PROFILE_NOT_FOUNDTarget profile doesn't exist
RECRUITER_ACKNOWLEDGEMENT_REQUIREDLinkedIn Recruiter session acknowledgement needed