# LinkedIn Messages

Read and send LinkedIn messages

## List LinkedIn messages

 - [GET /flows/api/linkedin-messages](https://api.getsales.io/bundled/linkedin-messages/listlinkedinmessages.md): Returns paginated LinkedIn messages for the current team. Includes both inbox (received) and outbox (sent) messages. Supports filtering by type (connection note, message, InMail), status (new, in progress, done, failed), automation mode, and other criteria. Default ordering is by sent_at descending (newest first).

## Send a LinkedIn message

 - [POST /flows/api/linkedin-messages](https://api.getsales.io/bundled/linkedin-messages/sendlinkedinmessage.md): Sends a LinkedIn message or connection note on behalf of a sender profile. The lead must be connected or connected requests must be enabled. Can send a custom message, use a template, or send an InMail with a subject line. All outbound messages are tracked and can be marked as done/failed based on delivery status.

## Get LinkedIn message group counts

 - [POST /flows/api/linkedin-messages/group-counts](https://api.getsales.io/bundled/linkedin-messages/getlinkedinmessagegroupcounts.md): Returns aggregated counts of LinkedIn messages grouped by a specified field (status, type, linkedin_type, automation, etc.). Useful for dashboards and reporting on message distribution, failure analysis, and automation mode breakdown. Supports optional filtering before grouping.

