> ## 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.

# Create Campaign

> Create a new LinkedIn outreach campaign.

## Headers

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

## Body Parameters

<ParamField body="title" type="string" required>
  The name of the campaign.
</ParamField>

<ParamField body="url" type="string">
  A LinkedIn search URL to source leads from. For example, a LinkedIn People Search URL with filters applied.
</ParamField>

<ParamField body="sequence" type="string" required>
  The type of outreach sequence to use.

  Available values: `CONNECT`, `MESSAGE`, `INMAIL`, `EMAIL`
</ParamField>

<ParamField body="content" type="object" required>
  The message content for each step of the sequence. Fields vary based on the sequence type.

  <Expandable title="Content Properties">
    <ParamField body="longNote" type="string">
      Connection request note (275 characters max). Used with `CONNECT` sequence.
    </ParamField>

    <ParamField body="shortNote" type="string">
      Short connection note (175 characters max). Used with `CONNECT` sequence.
    </ParamField>

    <ParamField body="message1" type="string">
      First follow-up message.
    </ParamField>

    <ParamField body="message2" type="string">
      Second follow-up message.
    </ParamField>

    <ParamField body="message3" type="string">
      Third follow-up message.
    </ParamField>
  </Expandable>
</ParamField>

## Response

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

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

<ResponseField name="campaignId" type="string">
  The ID of the newly created campaign.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.linkedcamp.com/campaigns \
    -H "token: YOUR_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "title": "Outreach Campaign",
      "url": "https://www.linkedin.com/search/results/people/?network=%5B%22S%22%5D&origin=FACETED_SEARCH&sid=Z6B",
      "sequence": "CONNECT",
      "content": {
        "longNote": "Hi {{firstName}}, I noticed we share similar interests. Would love to connect!",
        "shortNote": "Hi {{firstName}}, let'\''s connect!",
        "message1": "Thanks for connecting! I wanted to reach out about...",
        "message2": "Just following up on my previous message...",
        "message3": "Final follow-up - would love to hear your thoughts."
      }
    }'
  ```

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

  response = requests.post(
      "https://api.linkedcamp.com/campaigns",
      headers={"token": "YOUR_API_TOKEN"},
      json={
          "title": "Outreach Campaign",
          "url": "https://www.linkedin.com/search/results/people/?network=%5B%22S%22%5D&origin=FACETED_SEARCH&sid=Z6B",
          "sequence": "CONNECT",
          "content": {
              "longNote": "Hi {{firstName}}, I noticed we share similar interests. Would love to connect!",
              "shortNote": "Hi {{firstName}}, let's connect!",
              "message1": "Thanks for connecting! I wanted to reach out about...",
              "message2": "Just following up on my previous message...",
              "message3": "Final follow-up - would love to hear your thoughts.",
          },
      },
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.linkedcamp.com/campaigns", {
    method: "POST",
    headers: {
      "token": "YOUR_API_TOKEN",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      title: "Outreach Campaign",
      url: "https://www.linkedin.com/search/results/people/?network=%5B%22S%22%5D&origin=FACETED_SEARCH&sid=Z6B",
      sequence: "CONNECT",
      content: {
        longNote: "Hi {{firstName}}, I noticed we share similar interests. Would love to connect!",
        shortNote: "Hi {{firstName}}, let's connect!",
        message1: "Thanks for connecting! I wanted to reach out about...",
        message2: "Just following up on my previous message...",
        message3: "Final follow-up - would love to hear your thoughts.",
      },
    }),
  });
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "Campaign created successfully!",
    "campaignId": "60f7a1b2c3d4e5f6a7b8c9d0"
  }
  ```

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