Messages

message send

Send a message to a LinkedIn connection.

bash
linkedin message send <person-url> <text>
ArgRequiredDescription
person-urlconditionalLinkedIn profile URL of the recipient. Optional when --thread-id is provided
textyesMessage text (up to 1900 characters)
FlagTypeDescription
--thread-idstringReply into an existing conversation thread instead of passing person-url
--managestringManage the conversation right after sending, acting on the same thread. One of archive, unarchive, star, unstar, mute, unmute
bash
linkedin message send https://www.linkedin.com/in/vprudnikoff "Hey, loved your latest post!"
linkedin message send --thread-id 2-abc123... "Sounds good, talk soon!"
linkedin message send https://www.linkedin.com/in/vprudnikoff "Hey, loved your latest post!" --manage archive

message get

Get conversation messages with a LinkedIn person.

bash
linkedin message get <person-url> [flags]
ArgRequiredDescription
person-urlyesLinkedIn profile URL
FlagTypeDescription
--sincestringOnly retrieve messages since this ISO timestamp
bash
linkedin message get https://www.linkedin.com/in/vprudnikoff --json
linkedin message get https://www.linkedin.com/in/vprudnikoff --since 2024-01-15T10:30:00Z

The first call for a conversation triggers a background sync, which may take longer. Subsequent calls use cached data and are faster.

message manage

Archive, star, or mute a conversation thread.

bash
linkedin message manage <thread-id> <operation>
ArgRequiredDescription
thread-idyesConversation thread identifier, as returned by inbox get / message get, or the <id> in linkedin.com/messaging/thread/<id> of an open conversation
operationyesOne of archive, unarchive, star, unstar, mute, unmute
bash
linkedin message manage 2-abc123... archive
linkedin message manage 2-abc123... unmute

inbox sync

Enable whole-inbox monitoring for the account. Run once — afterwards new messages across every conversation become available via inbox get.

bash
linkedin inbox sync         # standard inbox
linkedin inbox sync --nv    # Sales Navigator inbox
FlagTypeDescription
--nvboolEnable monitoring for the Sales Navigator inbox instead of the standard one

Only messages that arrive after this runs are captured.

inbox get

Get messages from the monitored inbox across all conversations.

bash
linkedin inbox get [flags]
FlagTypeDescription
--sincestringOnly retrieve messages after this ISO timestamp
--typestringFilter by inbox type: st or nv (default: both)
--thread-idstringRestrict to a single conversation thread
bash
linkedin inbox get --json
linkedin inbox get --since 2024-01-15T10:30:00Z --type nv

Requires inbox monitoring to be enabled once with inbox sync.