PII Fields Classification API

API To Fetch Product Specific Input and Output Fields List and PII Data Categories

The PII Fields Classification API is a utility API designed to provide detailed field-level metadata for a specific version of an Attestr product or service. While the Consent Data Categories API returns the list of supported Data Categories and Data Types across one or more services, this API provides the complete list of input and output fields associated with a particular product version. Additionally, the API identifies whether a field contains Personal Identifiable Information (PII) and, where applicable, returns the corresponding Data Category and Data Type mappings. This enables customers to implement privacy-aware integrations, consent orchestration, dynamic form generation, field-level governance, and regulatory compliance workflows more effectively.

API Definition

Request

TypeURLVersion
POSThttps://api.attestr.com/api/{version/public/consent/fieldsUse "v3" for DPDA compliant version

Request Body Parameters

TypeNameDescriptionOptional (default)Min VersionMax Version
StringtypeProvide the consent purpose. Allowed values are - kyc_verification background_verification Read more at Consent PurposeRequiredv3
StringserviceProduct / Service code for which fields are required to be fetched.Requiredv3
ObjectoptionsReserved for future use. Used for specifying service specific options which helps to decide the associated PII fieldsOptionalv3

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv3
StringAuthorizationBasic {authToken}Requiredv3

If you do not have the authentication token, please refer to Register App to generate one.

Sample Request Payload

JSON
Copy

Response

Http Status 200

KeyDescriptionTypeMin VersionMax Version
inputList of input fields. Each field has the following three properties. isPII - Indicates if the field contains a personally identifiable information PIICategory - If the field is PII, this property provides the name of the data category. For more information on data categories, refer to Consent Data Categories PIIType - If the field is PII, this property provides the specific data type under the category that best matches to the field.Array<Object>v3
valuesList of output fields. Structure is similar to Input fields, except that this contains the output fields for the specific API version.Array<Object>v3

Sample Response

Sample response for valid input

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
httpStatusCodeStringStandard HTTP status code for the error
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Error Codes

HTTP StatusError CodeError Message
4004001Malformed data or missing required parameter values
4004005Operation could not be performed due to low credits balance
4014016Invalid client authorization
4034031Unauthorized access
4034035Requested service is not provisioned for your account
4034039Client's IP address is not whitelisted
4034035Requested service is not provisioned for your account
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed

Sample Error Response

JSON
Copy

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches