> ## 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: Territories Get Territory

> Get one Zoho CRM territory by its ID, with its criteria, manager and parent. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Get one Zoho CRM territory by its ID, with its criteria, manager and parent.

> [!NOTE]
>
> Tool ID: `zoho_crm_territories_get_territory`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_territories_get_territory --input '{
  "id": "id_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "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 describe 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.