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

# Instantly Lead Operations: Inputs, Cost & CLI Example

> Updating subsequence assignment for an Instantly lead. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=instantly_update_lead_subsequence:{"subsequence_id":"{{subsequence_id}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                     | Type     | Required | Default | Description |
| ------------------------ | -------- | -------- | ------- | ----------- |
| `payload.id`             | `string` | No       |         |             |
| `payload.lead_id`        | `string` | No       |         |             |
| `payload.subsequence_id` | `string` | Yes      |         |             |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Update subsequence assignment for an Instantly lead.",
    "properties": {
      "id": {
        "type": "string",
        "minLength": 1
      },
      "lead_id": {
        "type": "string",
        "minLength": 1
      },
      "subsequence_id": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "subsequence_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

Output schema is not available yet.

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "description": "Raw Instantly update lead subsequence response."
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute instantly_update_lead_subsequence --payload '{
  "subsequence_id": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Provider API Context

<details>
  <summary>Show provider reference (optional)</summary>

  ```md theme={null}
  > A lead entity representing an individual lead

  Manage individual leads within your campaigns and lists. These endpoints allow you to create, list, retrieve, update, and delete leads, as well as merge leads, update interest statuses, manage subsequence assignments, bulk assign leads to users, and move or add leads to campaigns or lists.

  ## Related schemas

  * [Lead](/api-reference/schemas/lead) — full field reference for lead objects

  ## Endpoints

  | Method | Endpoint                               | Description                             |
  | ------ | -------------------------------------- | --------------------------------------- |
  | POST   | `/api/v2/leads`                        | Create lead                             |
  | DELETE | `/api/v2/leads`                        | Delete leads in bulk                    |
  | POST   | `/api/v2/leads/list`                   | List leads                              |
  | GET    | `/api/v2/leads/{id}`                   | Get lead                                |
  | PATCH  | `/api/v2/leads/{id}`                   | Patch lead                              |
  | DELETE | `/api/v2/leads/{id}`                   | Delete lead                             |
  | POST   | `/api/v2/leads/merge`                  | Merge two leads                         |
  | POST   | `/api/v2/leads/update-interest-status` | Update the interest status of a lead    |
  | POST   | `/api/v2/leads/subsequence/remove`     | Remove a lead from a subsequence        |
  | POST   | `/api/v2/leads/bulk-assign`            | Bulk assign leads to organization users |
  | POST   | `/api/v2/leads/move`                   | Move leads to a campaign or list        |
  | POST   | `/api/v2/leads/subsequence/move`       | Move a lead to a subsequence            |
  | POST   | `/api/v2/leads/add`                    | Add leads in bulk to a campaign or list |

  ## 108. OAuth

  Source: https://developer.instantly.ai/api-reference/groups/oauth.md
  ```
</details>

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
