Linkedin Webhook

Hi

Have anyone tried linkedin webhook functionality? Webhooks - LinkedIn | Microsoft Learn

We added the webhook in the LinkedIn section. However we need to acknowledge the response in 3 seconds :slight_smile:

Post adding the webhook, we receive challenge code. Using challenge code and client secret key (With HEX encoding), we need to arrive challenge response code.

Any thoughts on this?

Have figured it out using the crypto hash and respond to webhook

1 Like

@Yuvaraj_Selvaraj - do you mind copying the code - will help people for the future facing the same issue as LI is pretty popular.

Thanks

1 Like

{
“meta”: {
“instanceId”: “9fad1267f71098ef27f3e66154e356b71cf382d43c6e0a80cbcf99c6b9d8afdb”
},
“nodes”: [
{
“parameters”: {
“path”: “linkedin”,
“responseMode”: “responseNode”,
“options”: {
“rawBody”: false
}
},
“id”: “d61bc55d-7ce0-4839-8c79-cba27bccb39a”,
“name”: “Webhook”,
“type”: “n8n-nodes-base.webhook”,
“typeVersion”: 1,
“position”: [
700,
380
],
“webhookId”: “90ed42d6-d67e-4190-93df-4a86102f7fd7”
},
{
“parameters”: {
“action”: “hmac”,
“type”: “SHA256”,
“value”: “={{ $json["query"]["challengeCode"] }}”,
“secret”: “=YourSecret”
},
“name”: “Crypto”,
“type”: “n8n-nodes-base.crypto”,
“typeVersion”: 1,
“position”: [
900,
380
],
“id”: “97798f3e-f0e3-4cb3-be0c-29bd22cce041”
},
{
“parameters”: {
“respondWith”: “json”,
“responseBody”: “={\n "challengeCode" : "{{$json["query"]["challengeCode"]}}",\n "challengeResponse" : "{{$json["data"]}}"\n}”,
“options”: {
“responseCode”: 200
}
},
“id”: “94e19a65-579c-40e3-b608-28d6a9d79c95”,
“name”: “Respond to Webhook”,
“type”: “n8n-nodes-base.respondToWebhook”,
“typeVersion”: 1,
“position”: [
1120,
380
]
}
],
“connections”: {
“Webhook”: {
“main”: [
[
{
“node”: “Crypto”,
“type”: “main”,
“index”: 0
}
]
]
},
“Crypto”: {
“main”: [
[
{
“node”: “Respond to Webhook”,
“type”: “main”,
“index”: 0
}
]
]
}
}
}

Please let me know if it helps

1 Like

I tried to post it as a workflow but it didnt work - the code isnt complete

Please check this.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.