# Send a LinkedIn message

Send a LinkedIn message to a contact through a sender profile. The message will be queued and sent via the linked LinkedIn account.

Endpoint: POST /flows/api/linkedin-messages
Version: 2.0.0
Security: bearerAuth

## Request fields (application/json):

  - `sender_profile_uuid` (string, required)

  - `lead_uuid` (string, required)

  - `text` (string, required)
    Example: "Hi John, thanks for connecting!"

  - `template_uuid` (string)
    Optional AI template UUID.

  - `attachments` (array)
    Files to attach to the message. Upload files first via POST /flows/api/attachments, then pass an array of { "uuid": "..." } references here.

  - `attachments.uuid` (string, required)
    UUID returned from POST /flows/api/attachments.
    Example: "e94a3b39-1242-4d70-8703-8b600d8960d6"

## Response 201 fields (application/json):

  - `uuid` (string)

  - `team_id` (integer)

  - `sender_profile_uuid` (string)

  - `linkedin_account_uuid` (string)

  - `linkedin_conversation_uuid` (string)

  - `lead_uuid` (string)

  - `task_pipeline_uuid` (string,null)

  - `template_uuid` (string,null)

  - `message_hash` (string,null)

  - `subject` (string,null)

  - `text` (string)
    Example: "Hi John, thanks for connecting!"

  - `custom_content` (array,null)

  - `attachments` (array,null)

  - `type` (string)
    Message direction.
    Enum: "inbox", "outbox"

  - `automation` (string)
    Message origin: auto (sent by automation), manual (sent by user), synced (incoming message synced from LinkedIn).
    Enum: "auto", "manual", "synced"

  - `linkedin_type` (string)
    LinkedIn message type.
    Enum: "connection_note", "message", "InMail"

  - `status` (string)
    Enum: "new", "in_progress", "done", "failed"

  - `fail_reason` (string,null)

  - `read_at` (string,null)

  - `sent_at` (string,null)

  - `user_id` (integer)

  - `created_at` (string)

  - `updated_at` (string)


