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

# Create Subsequence Campaign

> Create a child campaign (subsequence) with conditional logic

<Note>
  Create branching campaign logic by defining subsequences that triggers based on lead behavior. Essential for sophisticated nurture workflows.
</Note>

## Query Parameters

<ParamField query="api_key" type="string" required>
  Your SmartLead API key
</ParamField>

## Request Body

<ParamField body="parent_campaign_id" type="number" required>
  Parent campaign ID
</ParamField>

<ParamField body="subsequence_name" type="string">
  Name for the subsequence campaign
</ParamField>

<ParamField body="condition_events" type="array">
  Events that trigger moving lead to subsequence
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://server.smartlead.ai/api/v1/campaigns/create-subsequence?api_key=YOUR_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "parent_campaign_id": 123,
      "subsequence_name": "Follow-up Sequence",
      "condition_events": []
    }'
  ```

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

  response = requests.post(
      "https://server.smartlead.ai/api/v1/campaigns/create-subsequence",
      params={"api_key": "YOUR_API_KEY"},
      json={
          "parent_campaign_id": 123,
          "subsequence_name": "Follow-up Sequence",
          "condition_events": []
      }
  )
  ```
</RequestExample>

## Response Example

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "subsequence_id": 456
  }
  ```
</ResponseExample>

## Related Endpoints

* [Push to Subsequence](/api-reference/inbox/push-to-subsequence)
* [Update Subsequence Conditions](/api-reference/campaigns/update-subsequence-conditions)
