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

# List all data types

`GET /sdg/v1/datatypes`

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/authentication.md) · [All operations](https://skmtc.dev/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
