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

# Send Message

> Send a message to a prospect in an existing conversation.

## Headers

<ParamField header="token" type="string" required>
  Your LinkedCamp API token.
</ParamField>

## Body Parameters

<ParamField body="conversationId" type="string" required>
  The conversation ID. You can obtain this from the lead data via the [List Leads](/api-reference/leads/list-leads) or [Get Lead](/api-reference/leads/get-lead) endpoints.
</ParamField>

<ParamField body="content" type="string" required>
  The message content to send. Control characters are automatically sanitized.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the request was successful.
</ResponseField>

<ResponseField name="message" type="string">
  A human-readable result message.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.linkedcamp.com/conversations/send-message \
    -H "token: YOUR_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "conversationId": "60f7a1b2c3d4e5f6a7b8c9d1",
      "content": "Hi John, thanks for connecting! I wanted to reach out about..."
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.linkedcamp.com/conversations/send-message",
      headers={"token": "YOUR_API_TOKEN"},
      json={
          "conversationId": "60f7a1b2c3d4e5f6a7b8c9d1",
          "content": "Hi John, thanks for connecting! I wanted to reach out about...",
      },
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    "https://api.linkedcamp.com/conversations/send-message",
    {
      method: "POST",
      headers: {
        "token": "YOUR_API_TOKEN",
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        conversationId: "60f7a1b2c3d4e5f6a7b8c9d1",
        content: "Hi John, thanks for connecting! I wanted to reach out about...",
      }),
    }
  );
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "Message sent successfully!"
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "message": "Conversation Id is required!"
  }
  ```
</ResponseExample>
