Loading
Ongoing maintenance for Salesforce HelpRead More
Set Up and Maintain Your Salesforce Organization
Get Available Sensitive Data Categories

Get Available Sensitive Data Categories

Returns a list of sensitive data categories that can be scanned for by Data Detect.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer editions with the Salesforce Shield or Data Detect Licenses.

Example

curl  https://MyDomainName.my.salesforce.com/services/data/v68.0/datadetect/sensitivecategories -H "Authorization: Bearer token"  -X GET
Example
Example REQUEST BODY

None required

Example
Example 200 RESPONSE BODY
{
  "categories": [
    "Email Address",
    "Phone Number",
    "Social Security Number"
  ],
  "totalCount": 3
}
Example
Example 403 RESPONSE BODY
{
	"errorCode": "FUNCTIONALITY_NOT_ENABLED", "message": "DataDetect headless API is not enabled for this org."
}
 
Loading
Salesforce Help | Article