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

# Allegrow Validate: Inputs, Cost & CLI Example

> Catch-all domain resolution and B2B email risk scoring. 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=allegrow_validate:{"email":"{{email}}"}' --json
```

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

## Input Schema

| Name               | Type     | Required | Default | Description                                                               |
| ------------------ | -------- | -------- | ------- | ------------------------------------------------------------------------- |
| `payload.email`    | `string` | Yes      |         | Email address to validate.                                                |
| `payload.metadata` | `object` | No       |         | Optional caller metadata. Allegrow echoes this in async webhook payloads. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Validate one email address with Allegrow B2B catch-all resolution. Returns safe/dead_email/do_not_mail_abuse/some_risk/block_bounce_risk/spamtrap/missing_email plus subStatus=primary when this is the contact's main address.",
    "properties": {
      "email": {
        "type": "string",
        "description": "Email address to validate."
      },
      "metadata": {
        "type": "object",
        "description": "Optional caller metadata. Allegrow echoes this in async webhook payloads.",
        "additionalProperties": true
      }
    },
    "required": [
      "email"
    ],
    "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": {
          "requestId": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "allegrowStatus": {
            "type": [
              "string",
              "null"
            ],
            "description": "Deprecated mirror of result.status. Read result.status instead."
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "status": {
                "type": "string",
                "description": "safe = send. do_not_mail_abuse = valid but high spam-report risk, skip email. some_risk = inconclusive, hold. block_bounce_risk = invalid, remove. dead_email = catch-all host, use other channels.",
                "enum": [
                  "safe",
                  "do_not_mail_abuse",
                  "some_risk",
                  "block_bounce_risk",
                  "dead_email",
                  "spamtrap",
                  "more_time_required",
                  "missing_email"
                ]
              },
              "subStatus": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "primary = main email for this contact. null = no extra context.",
                "enum": [
                  "primary",
                  null
                ]
              }
            },
            "additionalProperties": false
          },
          "pollUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Poll URL when validation is still in progress (HTTP 202 response)."
          },
          "retryAfter": {
            "type": [
              "number",
              "null"
            ],
            "description": "Seconds to wait before polling (HTTP 202 response)."
          }
        },
        "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 allegrow_validate --payload '{
  "email": "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: `per_result` (per result).
* Estimated Deepline credits: `0.12` per pricing unit.
* Billing mode: `post_deduct`.
