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

# ZoomInfo: Enrich Org Chart

> List the contacts in a department of a company, showing its org chart and reporting lines. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List the contacts in a department of a company, showing its org chart and reporting lines.

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

## 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(
  'zoominfo_enrich_org_chart',
  {
    "data": {
      "type": "OrgChartEnrich",
      "attributes": {
        "companyId": "company_123",
        "department": "example",
        "contactAccuracyScoreMin": "example"
      }
    }
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoominfo_enrich_org_chart --input '{
  "data": {
    "type": "OrgChartEnrich",
    "attributes": {
      "companyId": "company_123",
      "department": "example",
      "contactAccuracyScoreMin": "example"
    }
  }
}' --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": {
    "data": [
      {
        "id": "id_123",
        "type": "OrgChart",
        "attributes": {
          "firstName": "Jane",
          "middleName": "Example",
          "lastName": "Doe"
        }
      }
    ]
  }
}
```

Use `deepline describe zoominfo_enrich_org_chart --json` for the latest machine-readable contract.

## Input reference

Org chart enrich request.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.page` | `object` | No | — | Page number for the results. |
| `payload.sort` | `string` | No | — | Sort results by valid output fields: contactAccuracyScore and lastName. If no valid fields are specified, results default to relevance-based sorting. Add minus sign ('-') for descending order. |
| `payload.data` | `object` | Yes | — | Org chart enrich request resource. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Org chart enrich request.",
    "properties": {
      "page": {
        "type": "object",
        "description": "Page number for the results.",
        "properties": {
          "number": {
            "type": "integer",
            "description": "Page number for the results.",
            "minimum": 1,
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "description": "Number of records to return per page. Default is 25.",
            "minimum": 1,
            "maximum": 100,
            "format": "int32"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "sort": {
        "type": "string",
        "description": "Sort results by valid output fields: contactAccuracyScore and lastName. If no valid fields are specified, results default to relevance-based sorting. Add minus sign ('-') for descending order."
      },
      "data": {
        "type": "object",
        "description": "Org chart enrich request resource.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the resource",
            "default": "OrgChartEnrich",
            "pattern": "OrgChartEnrich"
          },
          "attributes": {
            "type": "object",
            "description": "Org chart enrich request attributes.",
            "properties": {
              "companyId": {
                "type": "string",
                "description": "The ID of the company for which you want to view the org chart."
              },
              "department": {
                "type": "string",
                "description": "A comma-separated string of departments to display org charts for."
              },
              "contactAccuracyScoreMin": {
                "type": "string",
                "description": "Minimum accuracy score for search results. This score indicates the likelihood that a contact is reachable and still employed by the company listed. Minimum score is 70 and maximum is 99."
              },
              "contactAccuracyScoreMax": {
                "type": "string",
                "description": "Maximum accuracy score for search results. This score indicates the likelihood that a contact is reachable and still employed by the company listed. Minimum score is 70 and maximum is 99."
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Org charts that match the criteria specified in the request |
| `result.data.data` | `array` | Yes | — | The primary data of the document |
| `result.data.data[].id` | `string` | Yes | — | The unique identifier for the resource |
| `result.data.data[].type` | `string` | Yes | `"OrgChart"` | The type of the resource Pattern: `OrgChart`. |
| `result.data.data[].attributes` | `object` | Yes | — | Org chart enrich response attributes. |
| `result.data.data[].attributes.firstName` | `string` | No | — | Contact first name. |
| `result.data.data[].attributes.middleName` | `string` | No | — | Contact middle name |
| `result.data.data[].attributes.lastName` | `string` | No | — | Contact last name. |
| `result.data.data[].attributes.lastUpdatedDate` | `string` | No | — | Date on which the contact record was last updated. |
| `result.data.data[].attributes.title` | `string` | No | — | Contact job title at current place of employment. |
| `result.data.data[].attributes.hasEmail` | `boolean` | No | — | Indicates whether ZoomInfo has an email address for the contact. |
| `result.data.data[].attributes.hasDirectPhone` | `boolean` | No | — | Indicates whether ZoomInfo has a direct phone number for the contact. |
| `result.data.data[].attributes.department` | `string` | No | — | Contact department at current place of employment. |
| `result.data.data[].attributes.jobFunction` | `string` | No | — | Contact job function at current place of employment. |
| `result.data.data[].attributes.orgChartTier` | `integer` | No | — | Integer representing hierarchy within a department, with 1 being the highest. Format: `int32`. |
| `result.data.data[].attributes.orgChartSubTier` | `integer` | No | — | Secondary tier within orgChartTier. Format: `int32`. |
| `result.data.data[].attributes.contactAccuracyScore` | `number` | No | — | This score indicates the likelihood that a contact is reachable and still employed by the company listed. Minimum score is 75 and maximum is 99. Format: `double`. |
| `result.data.data[].attributes.companyId` | `string` | No | — | Unique ZoomInfo identifier for a company. |
| `result.data.data[].attributes.companyName` | `string` | No | — | Company name. |
| `result.data.meta` | `object` | No | — | Metadata including paging information and the total number of records in the result set |
| `result.data.meta.totalResults` | `integer` | Yes | — | The total number of results based on the specified filters Format: `uint32`. |
| `result.data.meta.page` | `object` | Yes | — | Meta information related to the current page and total number of pages |
| `result.data.meta.page.total` | `integer` | Yes | — | The total number of pages within the current result set Format: `uint32`. |
| `result.data.meta.page.number` | `integer` | Yes | — | The current page number of the results Format: `uint32`. |
| `result.data.links` | `object` | No | — | Helpful links for fetching different pages of data from the current result set. When using these links, please provide the exact same request body between requests |
| `result.data.links.first` | `string` | No | — | A link to the first page of data Format: `uri`. |
| `result.data.links.last` | `string` | No | — | A link to the last page of data Format: `uri`. |
| `result.data.links.prev` | `string` | No | — | A link to the previous page of data Format: `uri`. |
| `result.data.links.next` | `string` | No | — | A link to the next page of data Format: `uri`. |
| `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": "Org charts that match the criteria specified in the request",
        "properties": {
          "data": {
            "type": "array",
            "description": "The primary data of the document",
            "items": {
              "type": "object",
              "description": "Org chart.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier for the resource"
                },
                "type": {
                  "type": "string",
                  "description": "The type of the resource",
                  "default": "OrgChart",
                  "pattern": "OrgChart"
                },
                "attributes": {
                  "type": "object",
                  "description": "Org chart enrich response attributes.",
                  "properties": {
                    "firstName": {
                      "type": "string",
                      "description": "Contact first name."
                    },
                    "middleName": {
                      "type": "string",
                      "description": "Contact middle name"
                    },
                    "lastName": {
                      "type": "string",
                      "description": "Contact last name."
                    },
                    "lastUpdatedDate": {
                      "type": "string",
                      "description": "Date on which the contact record was last updated."
                    },
                    "title": {
                      "type": "string",
                      "description": "Contact job title at current place of employment."
                    },
                    "hasEmail": {
                      "type": "boolean",
                      "description": "Indicates whether ZoomInfo has an email address for the contact."
                    },
                    "hasDirectPhone": {
                      "type": "boolean",
                      "description": "Indicates whether ZoomInfo has a direct phone number for the contact."
                    },
                    "department": {
                      "type": "string",
                      "description": "Contact department at current place of employment."
                    },
                    "jobFunction": {
                      "type": "string",
                      "description": "Contact job function at current place of employment."
                    },
                    "orgChartTier": {
                      "type": "integer",
                      "description": "Integer representing hierarchy within a department, with 1 being the highest.",
                      "format": "int32"
                    },
                    "orgChartSubTier": {
                      "type": "integer",
                      "description": "Secondary tier within orgChartTier.",
                      "format": "int32"
                    },
                    "contactAccuracyScore": {
                      "type": "number",
                      "description": "This score indicates the likelihood that a contact is reachable and still employed by the company listed. Minimum score is 75 and maximum is 99.",
                      "format": "double"
                    },
                    "companyId": {
                      "type": "string",
                      "description": "Unique ZoomInfo identifier for a company."
                    },
                    "companyName": {
                      "type": "string",
                      "description": "Company name."
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "type",
                "attributes"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "description": "Metadata including paging information and the total number of records in the result set",
            "properties": {
              "totalResults": {
                "type": "integer",
                "description": "The total number of results based on the specified filters",
                "format": "uint32"
              },
              "page": {
                "type": "object",
                "description": "Meta information related to the current page and total number of pages",
                "properties": {
                  "total": {
                    "type": "integer",
                    "description": "The total number of pages within the current result set",
                    "format": "uint32"
                  },
                  "number": {
                    "type": "integer",
                    "description": "The current page number of the results",
                    "format": "uint32"
                  }
                },
                "required": [
                  "total",
                  "number"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "totalResults",
              "page"
            ],
            "additionalProperties": false
          },
          "links": {
            "type": "object",
            "description": "Helpful links for fetching different pages of data from the current result set. When using these links, please provide the exact same request body between requests",
            "properties": {
              "first": {
                "type": "string",
                "description": "A link to the first page of data",
                "format": "uri"
              },
              "last": {
                "type": "string",
                "description": "A link to the last page of data",
                "format": "uri"
              },
              "prev": {
                "type": "string",
                "description": "A link to the previous page of data",
                "format": "uri"
              },
              "next": {
                "type": "string",
                "description": "A link to the next page of data",
                "format": "uri"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "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

* [ZoomInfo provider guide](https://deepline.com/docs/providers/zoominfo/guide.md)
* [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.