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

# Context.dev: Contextdev Submit Batch

> Submit a batch. Context.dev Contextdev Submit Batch reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Submit a batch.

<Info>
  Tool ID: `contextdev_submit_batch`
</Info>

## Run this action

This action has conditional or dynamic input fields that cannot be represented by a reliable static example.

Inspect the live contract before executing it:

```bash theme={null}
deepline tools get contextdev_submit_batch --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "id": "id_123",
    "status": "queued",
    "mode": "scrape",
    "format": "markdown",
    "tags": [
      "example"
    ],
    "crawl": {
      "source": {
        "type": "start_url",
        "url": "https://example.com"
      },
      "max_pages": 123,
      "max_depth": 1,
      "follow_subdomains": true,
      "url_pattern": "https://example.com"
    },
    "input": {
      "reserved": 123,
      "reserved_is_ceiling": true,
      "submitted": 1,
      "duplicates": 123,
      "invalid": 1
    },
    "created_at": "2026-01-15T12:00:00Z",
    "invalid_urls": [
      {
        "url": "https://example.com",
        "reason": "example"
      }
    ]
  }
}
```

Use `deepline tools get contextdev_submit_batch --json` for the latest machine-readable contract.

## Input reference

Create an asynchronous scraping job.

| Name                 | Type     | Required | Default | Details                                                                           |
| -------------------- | -------- | -------- | ------- | --------------------------------------------------------------------------------- |
| `payload.input`      | `object` | Yes      | —       | Choose a URL list or a site crawl.                                                |
| `payload.webhookUrl` | `string` | No       | —       | URL notified when the batch finishes.                                             |
| `payload.tags`       | `array`  | No       | —       | Tags stored on the batch. Filter the batch list by them later. Maximum items: 20. |

<Info>
  This input schema is too large to embed without slowing the page. Get the complete live contract with `deepline tools get contextdev_submit_batch --json`.
</Info>

## Output reference

| Name                                    | Type                   | Required | Default | Details                      |
| --------------------------------------- | ---------------------- | -------- | ------- | ---------------------------- |
| `result.data`                           | `object`               | Yes      | —       | —                            |
| `result.data.id`                        | `string`               | Yes      | —       | —                            |
| `result.data.status`                    | `"queued"`             | Yes      | —       | Allowed: `queued`.           |
| `result.data.mode`                      | `"scrape" \| "crawl"`  | Yes      | —       | Allowed: `scrape`, `crawl`.  |
| `result.data.format`                    | `"markdown" \| "html"` | Yes      | —       | Allowed: `markdown`, `html`. |
| `result.data.tags`                      | `array`                | Yes      | —       | —                            |
| `result.data.crawl`                     | `object \| null`       | Yes      | —       | —                            |
| `result.data.crawl.source`              | `object`               | Yes      | —       | —                            |
| `result.data.crawl.source.type`         | `"start_url"`          | Yes      | —       | —                            |
| `result.data.crawl.source.url`          | `string`               | Yes      | —       | —                            |
| `result.data.crawl.source.domain`       | `string`               | Yes      | —       | —                            |
| `result.data.crawl.max_pages`           | `integer`              | Yes      | —       | —                            |
| `result.data.crawl.max_depth`           | `integer \| null`      | Yes      | —       | —                            |
| `result.data.crawl.follow_subdomains`   | `boolean`              | Yes      | —       | —                            |
| `result.data.crawl.url_pattern`         | `string \| null`       | Yes      | —       | —                            |
| `result.data.input`                     | `object`               | Yes      | —       | —                            |
| `result.data.input.reserved`            | `integer`              | Yes      | —       | —                            |
| `result.data.input.reserved_is_ceiling` | `boolean`              | Yes      | —       | —                            |
| `result.data.input.submitted`           | `integer \| null`      | Yes      | —       | —                            |
| `result.data.input.duplicates`          | `integer`              | Yes      | —       | —                            |
| `result.data.input.invalid`             | `integer \| null`      | Yes      | —       | —                            |
| `result.data.created_at`                | `string`               | Yes      | —       | —                            |
| `result.data.invalid_urls`              | `array`                | Yes      | —       | —                            |
| `result.data.invalid_urls[].url`        | `string`               | Yes      | —       | —                            |
| `result.data.invalid_urls[].reason`     | `string`               | Yes      | —       | —                            |
| `result.data.key_metadata`              | `object`               | No       | —       | —                            |
| `result.meta`                           | `object`               | No       | —       | —                            |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "scrape",
              "crawl"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "markdown",
              "html"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "crawl": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "source": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "start_url"
                        ]
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "sitemap"
                        ]
                      },
                      "domain": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "domain"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "max_pages": {
                "type": "integer"
              },
              "max_depth": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "follow_subdomains": {
                "type": "boolean"
              },
              "url_pattern": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "source",
              "max_pages",
              "max_depth",
              "follow_subdomains",
              "url_pattern"
            ],
            "additionalProperties": false
          },
          "input": {
            "type": "object",
            "properties": {
              "reserved": {
                "type": "integer"
              },
              "reserved_is_ceiling": {
                "type": "boolean"
              },
              "submitted": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "duplicates": {
                "type": "integer"
              },
              "invalid": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "reserved",
              "reserved_is_ceiling",
              "submitted",
              "duplicates",
              "invalid"
            ],
            "additionalProperties": false
          },
          "created_at": {
            "type": "string"
          },
          "invalid_urls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "url",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "status",
          "mode",
          "format",
          "tags",
          "crawl",
          "input",
          "created_at",
          "invalid_urls"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

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

## Related documentation

* [Context.dev provider guide](/docs/providers/contextdev/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
