LinkedIn has no official API for DMs. Nous uses Unipile as a middleware — you connect your LinkedIn account to Unipile, and Unipile forwards events to Nous via webhook.
Server Setup
Create a Unipile account
Sign up at unipile.com. You need a paid plan to use the LinkedIn messaging API.

Get your API Key and DSN
In the Unipile dashboard go to Settings → API. Copy your API Key and DSN (the webhook base URL).

Connect your LinkedIn account in Unipile
In the Unipile dashboard go to Accounts → Add account → LinkedIn and follow the login flow.
Register the Connections webhook
In Unipile go to Webhooks → Add webhook. Set:
- Event: On new relation
- URL:

What gets logged
| Event | Activity logged |
|---|---|
| New connection accepted | linkedin_connection |
| Inbound DM | linkedin_message_received |
| Outbound DM | linkedin_message_sent |
