# Retrieves all available data classes Retrieves all available data classes for data classification rules. ## Endpoint `GET /endpointdlp/api/data-classification/data-classes` ## Request URL `https://{server-hostname}:8383/endpointdlp/api/data-classification/data-classes` ### Scope `EndpointDLP.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/getDataClass.v1+json` ## Sample Request ```curl curl --request GET \ --url https://appdomain/endpointdlp/api/data-classification/data-classes \ --header 'Accept: application/getDataClass.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 #### Response Body — application/json - `JSON object` - **dataClasses** (`JSON array`): List of available data classes ### HTTP code 500 #### Response Body — application/json - `JSON object` - **errorCode** (`string`): Internal error code (`INTERNAL_ERROR`) returned when fetching DLP metadata (data category/class/country) fails - **errorMessage** (`string`): Detailed message including the underlying exception message ## Possible Response Codes - **200** — HTTP code - **500** — HTTP code ## Sample Response: HTTP 200 Successful retrieval of data classes ```json { "dataClasses": [ { "dataClassName": "All", "dataClassId": "0" }, { "dataClassName": "Source code", "dataClassId": "4" } ] } ``` ## Sample Response: HTTP 500 Internal server error ```json { "errorMessage": "Exception occurred while fetching DataClass :: ", "errorCode": "INTERNAL_ERROR" } ``` ![ ](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration — Time window for the threshold. Threshold — Number of API calls allowed within the specified duration. Lock Period — Wait time before consecutive API requests.