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

# Zoho CRM: README

> Get all territories. Zoho CRM Territories Get All Territories reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline.

Get all territories.

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

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_territories_get_all_territories',
  {
    "include": "account_rule_criteria",
    "ids": "example",
    "page": 123
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute zoho_crm_territories_get_all_territories --input '{
  "include": "account_rule_criteria",
  "ids": "example",
  "page": 123
}' --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get zoho_crm_territories_get_all_territories --json` for the complete live contract.

## Input reference

Retrieves a list of territories.

| Name                            | Type                                                                      | Required | Default | Details                                                                                                                 |
| ------------------------------- | ------------------------------------------------------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
| `payload.include`               | `"account_rule_criteria" \| "lead_rule_criteria" \| "deal_rule_criteria"` | No       | —       | Parameter `include` in `query`. Allowed: `account_rule_criteria`, `lead_rule_criteria`, `deal_rule_criteria`.           |
| `payload.ids`                   | `string`                                                                  | No       | —       | Parameter `ids` in `query`. Maximum length: 100.                                                                        |
| `payload.page`                  | `integer`                                                                 | No       | —       | Parameter `page` in `query`. Format: `int32`.                                                                           |
| `payload.per_page`              | `integer`                                                                 | No       | —       | Parameter `per_page` in `query`. Format: `int32`.                                                                       |
| `payload.filters`               | `string`                                                                  | No       | —       | Parameter `filters` in `query`. Maximum length: 100.                                                                    |
| `payload.include_inner_details` | `"manager.zuid,manager.status" \| "manager.zuid" \| "manager.status"`     | No       | —       | Parameter `include_inner_details` in `query`. Allowed: `manager.zuid,manager.status`, `manager.zuid`, `manager.status`. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Retrieves a list of territories.",
    "properties": {
      "include": {
        "type": "string",
        "description": "Parameter `include` in `query`.",
        "enum": [
          "account_rule_criteria",
          "lead_rule_criteria",
          "deal_rule_criteria"
        ]
      },
      "ids": {
        "type": "string",
        "description": "Parameter `ids` in `query`.",
        "maxLength": 100
      },
      "page": {
        "type": "integer",
        "description": "Parameter `page` in `query`.",
        "format": "int32"
      },
      "per_page": {
        "type": "integer",
        "description": "Parameter `per_page` in `query`.",
        "format": "int32"
      },
      "filters": {
        "type": "string",
        "description": "Parameter `filters` in `query`.",
        "maxLength": 100
      },
      "include_inner_details": {
        "type": "string",
        "description": "Parameter `include_inner_details` in `query`.",
        "enum": [
          "manager.zuid,manager.status",
          "manager.zuid",
          "manager.status"
        ]
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name          | Type     | Required | Default | Details                                        |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `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.",
        "additionalProperties": true
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "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

* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
