> ## 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 Territory. Zoho CRM Territories Get Territory reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Get Territory.

<Info>
  Tool ID: `zoho_crm_territories_get_territory`
</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_territory',
  {
    "id": "id_123"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_territories_get_territory --input '{
  "id": "id_123"
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "territories": [
      {
        "created_time": "2026-01-15T12:00:00Z",
        "modified_time": "2026-01-15T12:00:00Z",
        "manager": {},
        "reporting_to": {},
        "permission_type": "read_write_delete",
        "modified_by": {
          "name": "Example",
          "id": "id_123"
        },
        "description": {},
        "id": "id_123",
        "created_by": {
          "name": "Example",
          "id": "id_123"
        },
        "name": "Example",
        "api_name": "Example"
      }
    ]
  }
}
```

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

## Input reference

`Get Territory By Id`

| Name                            | Type                                                                  | Required | Default | Details                                                                                                                 |
| ------------------------------- | --------------------------------------------------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
| `payload.id`                    | `string`                                                              | Yes      | —       | Parameter `id` in `path`. 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": "`Get Territory By Id`",
    "properties": {
      "id": {
        "type": "string",
        "description": "Parameter `id` in `path`.",
        "maxLength": 100
      },
      "include_inner_details": {
        "type": "string",
        "description": "Parameter `include_inner_details` in `query`.",
        "enum": [
          "manager.zuid,manager.status",
          "manager.zuid",
          "manager.status"
        ]
      }
    },
    "required": [
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                              | Type                                 | Required | Default | Details                                                                     |
| ------------------------------------------------- | ------------------------------------ | -------- | ------- | --------------------------------------------------------------------------- |
| `result.data`                                     | `object`                             | Yes      | —       | A `object` value.                                                           |
| `result.data.territories`                         | `array`                              | Yes      | —       | The `territories` property. Maximum items: 100.                             |
| `result.data.territories[].created_time`          | `string`                             | Yes      | —       | The `created_time` property. Format: `date-time`.                           |
| `result.data.territories[].modified_time`         | `string`                             | Yes      | —       | The `modified_time` property. Format: `date-time`.                          |
| `result.data.territories[].manager`               | `record`                             | Yes      | —       | —                                                                           |
| `result.data.territories[].reporting_to`          | `record`                             | Yes      | —       | —                                                                           |
| `result.data.territories[].permission_type`       | `"read_write_delete" \| "read_only"` | Yes      | —       | The `permission_type` property. Allowed: `read_write_delete`, `read_only`.  |
| `result.data.territories[].modified_by`           | `object`                             | Yes      | —       | The `modified_by` property.                                                 |
| `result.data.territories[].modified_by.name`      | `string`                             | Yes      | —       | The `name` property. Maximum length: 100.                                   |
| `result.data.territories[].modified_by.id`        | `string`                             | Yes      | —       | The `id` property. Maximum length: 100.                                     |
| `result.data.territories[].description`           | `record`                             | Yes      | —       | —                                                                           |
| `result.data.territories[].id`                    | `string`                             | Yes      | —       | The `id` property. Maximum length: 100.                                     |
| `result.data.territories[].created_by`            | `object`                             | Yes      | —       | The `modified_by` property.                                                 |
| `result.data.territories[].created_by.name`       | `string`                             | Yes      | —       | The `name` property. Maximum length: 100.                                   |
| `result.data.territories[].created_by.id`         | `string`                             | Yes      | —       | The `id` property. Maximum length: 100.                                     |
| `result.data.territories[].account_rule_criteria` | `record`                             | No       | —       | The `account_rule_criteria` property.                                       |
| `result.data.territories[].deal_rule_criteria`    | `record`                             | No       | —       | The `deal_rule_criteria` property.                                          |
| `result.data.territories[].lead_rule_criteria`    | `record`                             | No       | —       | The `lead_rule_criteria` property.                                          |
| `result.data.territories[].name`                  | `string`                             | Yes      | —       | The `name` property. Maximum length: 50.                                    |
| `result.data.territories[].api_name`              | `string`                             | Yes      | —       | The `api_name` property. Maximum length: 100. Pattern: `(.?)([A-Za-z])(.)`. |
| `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": "A `object` value.",
        "properties": {
          "territories": {
            "type": "array",
            "description": "The `territories` property.",
            "maxItems": 100,
            "items": {
              "type": "object",
              "description": "The `items` field of type `object`.",
              "properties": {
                "created_time": {
                  "type": "string",
                  "description": "The `created_time` property.",
                  "format": "date-time"
                },
                "modified_time": {
                  "type": "string",
                  "description": "The `modified_time` property.",
                  "format": "date-time"
                },
                "manager": {
                  "type": "object",
                  "additionalProperties": true
                },
                "reporting_to": {
                  "type": "object",
                  "additionalProperties": true
                },
                "permission_type": {
                  "type": "string",
                  "description": "The `permission_type` property.",
                  "enum": [
                    "read_write_delete",
                    "read_only"
                  ]
                },
                "modified_by": {
                  "type": "object",
                  "description": "The `modified_by` property.",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The `name` property.",
                      "maxLength": 100
                    },
                    "id": {
                      "type": "string",
                      "description": "The `id` property.",
                      "maxLength": 100
                    }
                  },
                  "required": [
                    "name",
                    "id"
                  ],
                  "additionalProperties": false
                },
                "description": {
                  "type": "object",
                  "additionalProperties": true
                },
                "id": {
                  "type": "string",
                  "description": "The `id` property.",
                  "maxLength": 100
                },
                "created_by": {
                  "type": "object",
                  "description": "The `modified_by` property.",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The `name` property.",
                      "maxLength": 100
                    },
                    "id": {
                      "type": "string",
                      "description": "The `id` property.",
                      "maxLength": 100
                    }
                  },
                  "required": [
                    "name",
                    "id"
                  ],
                  "additionalProperties": false
                },
                "account_rule_criteria": {
                  "type": "object",
                  "description": "The `account_rule_criteria` property.",
                  "additionalProperties": true
                },
                "deal_rule_criteria": {
                  "type": "object",
                  "description": "The `deal_rule_criteria` property.",
                  "additionalProperties": true
                },
                "lead_rule_criteria": {
                  "type": "object",
                  "description": "The `lead_rule_criteria` property.",
                  "additionalProperties": true
                },
                "name": {
                  "type": "string",
                  "description": "The `name` property.",
                  "maxLength": 50
                },
                "api_name": {
                  "type": "string",
                  "description": "The `api_name` property.",
                  "maxLength": 100,
                  "pattern": "(.?)([A-Za-z])(.)"
                }
              },
              "required": [
                "created_time",
                "modified_time",
                "manager",
                "reporting_to",
                "permission_type",
                "modified_by",
                "description",
                "id",
                "created_by",
                "name",
                "api_name"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "territories"
        ],
        "additionalProperties": false
      },
      "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)
