---
title: "List all data types"
method: GET
path: "/sdg/v1/datatypes"
tags: ["Sensitive Data Governance"]
---

# List all data types

`GET /sdg/v1/datatypes`

## Request

- Base URL: `https://apis.druva.com/insync`
- URL: `https://apis.druva.com/insync/sdg/v1/datatypes`
- Auth: API key in header `Authorization`

Get the list of all data types available.

## Response `200`

OK

- DatatypeListResponse
  - `datatypes` Datatype[]: List of sensitive data types.
    - `id` integer: Unique ID of the sensitive data type.
    - `name` string: Name of the sensitive data type.
    - `category` string: Category of the sensitive data type.
    - `description` string: Description of the sensitive data type.
    - `expressionType` 'Keyword And' | 'Keyword Or' | 'RegEx': Expression type of the Sensitive data type. Example - 'Keyword And', 'Keyword Or', 'RegEx'.
    - `region` string: Region in which the data type is declared sensitive.
    - `isCustom` boolean: Flag to determine if it is a custom data type.
    - `query` string[]: Query run to identify the sensitive data type.

## Other responses

- `400`: Bad Request
- `403`: Access denied: Insufficient permissions. User requires specific access rights and minimum permissions. Details: https://help.druva.com/en/articles/15069296

---

[API](https://skmtc.dev/druva/apis/insync-cloud.md) - [All operations](https://skmtc.dev/druva/apis/insync-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/insync-cloud/revisions/a0ce6d05033c?raw)
