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

# Wizleads Get Task: Inputs, Cost & CLI Example

> Read or poll a known WizLeads asynchronous task by task ID after a WizLeads launch. Includes inputs, outputs, costs, and Deepline CLI examples.

## 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=wizleads_get_task:{"task_id":"{{task_id}}"}' --json
```

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

## Input Schema

| Name              | Type     | Required | Default | Description |
| ----------------- | -------- | -------- | ------- | ----------- |
| `payload.task_id` | `string` | Yes      |         |             |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Check status and live progress of a running task, and download the results in CSV format.",
    "properties": {
      "task_id": {
        "type": "string"
      }
    },
    "required": [
      "task_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Task ID."
          },
          "name": {
            "type": "string",
            "description": "Task name."
          },
          "creator": {
            "type": "string",
            "description": "Username (email) of task creator."
          },
          "created": {
            "type": "string",
            "description": "Timestamp of task creation."
          },
          "type": {
            "type": "string",
            "description": "Type of scraping task.",
            "enum": [
              "salesnav-profile",
              "salesnav-company",
              "find-email",
              "verify-email"
            ]
          },
          "inputs": {
            "type": "object",
            "description": "Input parameters for the task. All parameters are not given for all task types. Task List contains less information than Task Detail.",
            "properties": {
              "accounts": {
                "type": [
                  "array",
                  "null"
                ],
                "description": "List of account IDs to use. Set to null for automatic selection. Only available when useAccountless is false.",
                "items": {
                  "type": "string"
                }
              },
              "links": {
                "type": "array",
                "description": "List of Sales Navigator search URLs to scrape.",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "description": "Numeric ID assigned to each link, unique to this task."
                    },
                    "link": {
                      "type": "string",
                      "description": "A Sales Navigator search URL."
                    },
                    "end_page": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "default": null
                    },
                    "count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Number of results present on this link."
                    },
                    "count_scrapeable": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Number of results that can be scraped."
                    },
                    "split_complete": {
                      "type": "boolean",
                      "description": "Has splitting of link (if enabled) completed."
                    },
                    "splits": {
                      "type": "array",
                      "description": "Invocation IDs given to all sub-links for this link. Progress is tracked by invocation ID. There is only one invocation per link if splitting is disabled or count is below threshold.",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "useAccountless": {
                "type": "boolean",
                "description": "Whether to use Account-Less scraping mode."
              },
              "enrichEmails": {
                "type": "boolean",
                "description": "Whether to enrich emails. Only available for task type \"salesnav-profile\"."
              },
              "splitSearches": {
                "type": "boolean",
                "description": "Whether to split links larger than threshold into smaller sub-links."
              },
              "column_mapping": {
                "type": "string",
                "description": "JSON string for mapping required fields to your CSV column names."
              }
            },
            "additionalProperties": false
          },
          "account": {
            "type": "string",
            "description": "Account type used for this task."
          },
          "credit_base": {
            "type": "number",
            "description": "Credits charged per scraped result. Does not include credits charged for enrichment."
          },
          "errmsg": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              null,
              "TIMED_OUT",
              "NO_ACCOUNT",
              "NO_CREDITS",
              "SYSTEM_ERROR",
              "MAX_RETRIES_EXCEEDED"
            ]
          },
          "status": {
            "type": "string",
            "description": "Current task status."
          },
          "link": {
            "type": [
              "string",
              "null"
            ],
            "description": "Download link for CSV results. Final results are available only when task is in a terminal state - Done, Aborted, or Failed."
          },
          "link_size": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Total number of unique results present in CSV."
          },
          "dones": {
            "type": "object",
            "description": "Number of results already scraped for each invocation ID."
          },
          "ongoing": {
            "type": "object",
            "description": "Number of results being scraped for each invocation ID."
          },
          "totals": {
            "type": "object",
            "description": "Number of total results for each invocation ID."
          },
          "enrich_final": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Total number of enriched results present in CSV."
          },
          "enrich_size": {
            "type": "object",
            "description": "Number of emails found for each invocation ID."
          },
          "enrich_msg": {
            "type": "object",
            "description": "Enrichment status for each invocation ID - STARTED, SUCCESS, RESTARTING, SYSTEM_ERROR, INSUFFICIENT_CREDITS, TASK_ABORTED."
          },
          "enriched": {
            "type": "object",
            "description": "Number of rows processed for each invocation ID."
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute wizleads_get_task --payload '{
  "task_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.                      |

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