> ## Documentation Index
> Fetch the complete documentation index at: https://docs.walead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Message

> Sends a message in a conversation

## Overview

Sends a message in an existing conversation. Use this to reply to leads directly from your application or automation.

## Requirements

* The conversation must exist in your workspace
* Message text is required and cannot be empty
* The LinkedIn account must be connected and active

## Message Formatting

* Plain text messages are supported
* Leading and trailing whitespace is automatically trimmed
* Empty messages will return a 400 error

## Use Cases

* Build custom chat interfaces
* Automate responses based on lead behavior
* Reply to leads from your CRM
* Implement chatbot functionality

## Important Notes

* Messages are sent immediately
* Sent messages appear in both your WaLead inbox and LinkedIn
* Rate limits apply based on LinkedIn's restrictions


## OpenAPI

````yaml POST /v1/conversations/{conversationUrn}/messages
openapi: 3.1.0
info:
  title: WaLead API
  description: >-
    WaLead Public API for managing LinkedIn outreach campaigns, leads, and
    analytics
  version: 1.0.0
  contact:
    name: WaLead Support
    url: https://walead.ai
servers:
  - url: https://app-api.walead.ai/api
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /v1/conversations/{conversationUrn}/messages:
    post:
      summary: Send Message
      description: Sends a message in a conversation
      parameters:
        - name: conversationUrn
          in: path
          description: Conversation URN identifier
          required: true
          schema:
            type: string
      requestBody:
        description: Message content
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - message
              properties:
                message:
                  type: string
                  description: Message text to send
      responses:
        '200':
          description: Message sent successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
        '400':
          description: Bad request - message is required or conversation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid API Key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
          description: HTTP status code
        message:
          type: string
          description: Error message
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Generate from your WaLead dashboard.

````