Messaging

Send and manage LinkedIn messages. A COMPANY_ chat id (from curviate core inboxes chats) sends as that company page instead of yourself; see curviate core message send --help.

Usage

curviate core message [chatId] [text] [flags]

Examples

curviate core message 2-YTQ3ODU3Njgt "Thanks, that makes sense."
curviate core message 2-YTQ3ODU3Njgt "See the attached brief." --attach brief.pdf

Arguments

ArgumentRequiredDescription
chatIdnoChat ID to send a message to. A COMPANY_ chat id sends as the company page.
textnoMessage text. Pass - to read from stdin.

Flags

FlagTypeRequiredDescription
--attachstringnoFile to attach (repeatable). Not with --share-post or --share-job. One audio file (MP3, WAV, M4A, WebM, Ogg) alone, with no text, to one person, arrives as a voice note: no duration limit is stated here, and a size the platform refuses is PAYLOAD_TOO_LARGE. Audio to a group, in InMail or to a company page stays a file. --as-file keeps audio a file.
--as-filebooleannoSend every --attach as a file download, audio included (send_mode file). Then the audio may carry text, and several files may go together.
--share-poststringnoShow a post natively in the message, beside the text (text required, no --attach). The post id from curviate core post get or a list; an activity id, URN or share URL also works. Not with --share-job. Whether a post id renders in the message is unproven until a live send.
--share-jobstringnoShow a job posting natively in the message, beside the text (text required, no --attach). The numeric job id or a LinkedIn job URL. Not with --share-post.

Also accepts these global flags: --api-key, --profile, --account, --team, --base-url, --timeout, --json, --preview, --verbose, --beta.

Before you start: an API key and a connected LinkedIn account, see the Quickstart.

Commands

CommandDescription
curviate core message newStart a new chat with one or more members.
curviate core message sendSend a message to an existing chat. Pass a COMPANY_ chat id (from curviate core inboxes chats) to send as that company page instead of yourself, no separate flag needed. The output shows the acting identity: a company-page send prints "Sent as <name> (company page)", a personal send prints nothing new. See also: curviate core inboxes chats (discover a COMPANY_ chat id) and the Reply as a company page guide.
curviate core message getGet a message by ID.
curviate core message editEdit a message (within the allowed window).
curviate core message deleteDelete a message.
curviate core message reactAdd an emoji reaction to a message.
curviate core message attachmentDownload a message attachment.
curviate core message inmailSend an InMail to a member.
curviate core message inmail-balanceGet InMail credit balance.

Exit codes: the exit code table.