Retrieves all available data classes for data classification rules.
https://{serverurl}/endpointdlp/api/data-classification/data-classes
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
curl --request GET \
--url https://appdomains/endpointdlp/api/data-classification/data-classes \
--header 'Accept: application/getDataClass.v1+json' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'List of available data classes
Unique identifier of the data class
Name of the data class
Internal error code (INTERNAL_ERROR) returned when fetching DLP metadata (data category/class/country) fails
Detailed message including the underlying exception message
Successful retrieval of data classes
{
"dataClasses": [
{
"dataClassName": "All",
"dataClassId": "0"
},
{
"dataClassName": "Source code",
"dataClassId": "4"
}
]
}
Internal server error
{
"errorMessage": "Exception occurred while fetching DataClass :: <exception message>",
"errorCode": "INTERNAL_ERROR"
}
![]()
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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.