---
updatedAt: 2026-08-24T15:48:49.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/application-security/llms.txt
---

# List PII types

Lists all available PII entity types that can be used in PII detection rules.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Application Security API",
    "url": "https://techdocs.akamai.com/application-security/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Firewall for AI Configuration",
    "version": "v1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/fai-configurations/pii-types": {
      "get": {
        "description": "Lists all available PII entity types that can be used in PII detection rules.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Application Security API",
          "url": "https://techdocs.akamai.com/application-security/reference/get-pii-types"
        },
        "operationId": "get-pii-types",
        "parameters": [
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "piiTypes": [
                    {
                      "piiCategory": "BANK_RELATED",
                      "piiId": "ABA_ROUTING_NUMBER",
                      "piiName": "ABA routing number"
                    },
                    {
                      "piiCategory": "HEALTH_GOVERNMENT",
                      "piiId": "AU_ACN",
                      "piiName": "Australian Company Number"
                    },
                    {
                      "piiCategory": "HEALTH_GOVERNMENT",
                      "piiId": "AU_MEDICARE_NUMBER",
                      "piiName": "Australian Medicare number"
                    },
                    {
                      "piiCategory": "HEALTH_GOVERNMENT",
                      "piiId": "AU_TFN",
                      "piiName": "Australian Tax File Number (TFN)"
                    },
                    {
                      "piiCategory": "BANK_RELATED",
                      "piiId": "CREDIT_CARD_NUMBER",
                      "piiName": "Credit card number"
                    },
                    {
                      "piiCategory": "CUSTOM",
                      "piiId": "CUSTOM",
                      "piiName": "Custom PII entity, defined by user-provided regex patterns"
                    },
                    {
                      "piiCategory": "PERSONAL_DATA",
                      "piiId": "EMAIL",
                      "piiName": "Email address"
                    },
                    {
                      "piiCategory": "BANK_RELATED",
                      "piiId": "IBAN_CODE",
                      "piiName": "International Bank Account Number (IBAN)"
                    },
                    {
                      "piiCategory": "PERSONAL_DATA",
                      "piiId": "IP_ADDRESS",
                      "piiName": "IP address"
                    },
                    {
                      "piiCategory": "OTHER",
                      "piiId": "LOCATION",
                      "piiName": "Location information"
                    },
                    {
                      "piiCategory": "HEALTH_GOVERNMENT",
                      "piiId": "NHS_NUMBER",
                      "piiName": "NHS (National Health Service) number"
                    },
                    {
                      "piiCategory": "PERSONAL_DATA",
                      "piiId": "PERSON",
                      "piiName": "Name of a person"
                    },
                    {
                      "piiCategory": "OTHER",
                      "piiId": "PHONE_NUMBER",
                      "piiName": "Phone number"
                    },
                    {
                      "piiCategory": "BANK_RELATED",
                      "piiId": "US_BANK_NUMBER",
                      "piiName": "U.S. bank account number"
                    },
                    {
                      "piiCategory": "HEALTH_GOVERNMENT",
                      "piiId": "US_DRIVERS_LICENSE_NUMBER",
                      "piiName": "U.S. driver’s license number"
                    },
                    {
                      "piiCategory": "BANK_RELATED",
                      "piiId": "US_ITIN",
                      "piiName": "U.S. Individual Taxpayer Identification Number (ITIN)"
                    },
                    {
                      "piiCategory": "HEALTH_GOVERNMENT",
                      "piiId": "US_PASSPORT_NUMBER",
                      "piiName": "U.S. passport number"
                    },
                    {
                      "piiCategory": "HEALTH_GOVERNMENT",
                      "piiId": "US_SSN",
                      "piiName": "U.S. Social Security Number (SSN)"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "A collection of pre-defined PII entity types available for use in PII detection rules.",
                  "properties": {
                    "piiTypes": {
                      "description": "The list of available pre-defined PII entity types.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Represents a pre-defined personally identifiable information (PII) entity type that can be detected in LLM requests and responses. PII entity types are built-in sensitive data patterns provided by the platform, such as credit card numbers, social security numbers, email addresses, phone numbers, IP addresses, and other common PII categories. These pre-defined types can be referenced in PII detection rules to automatically identify and optionally mask sensitive information to ensure compliance with data privacy regulations.",
                        "properties": {
                          "piiCategory": {
                            "description": "__Read-only__ The category grouping this PII entity type belongs to. One of `BANK_RELATED`, `PERSONAL_DATA`, `HEALTH_GOVERNMENT`, `OTHER`, or `CUSTOM`. `CUSTOM` stands for the custom PII types you define on a configuration version. Reference those from a rule's `customPiiEntities`, not from `piiEntities`.",
                            "enum": [
                              "BANK_RELATED",
                              "PERSONAL_DATA",
                              "HEALTH_GOVERNMENT",
                              "OTHER",
                              "CUSTOM"
                            ],
                            "readOnly": true,
                            "type": "string"
                          },
                          "piiId": {
                            "description": "__Read-only__ Unique identifier for the pre-defined PII entity type. Use this ID to reference the PII type in the PII detection rule's `piiEntities` array, except `CUSTOM`, which stands for your custom PII types. Reference those in `customPiiEntities` by `customPiiId` instead. Refer to [PII entity types](ref:get-pii-types) for the complete list.",
                            "enum": [
                              "ABA_ROUTING_NUMBER",
                              "AU_ACN",
                              "AU_MEDICARE_NUMBER",
                              "AU_TFN",
                              "CREDIT_CARD_NUMBER",
                              "CUSTOM",
                              "EMAIL",
                              "IBAN_CODE",
                              "IP_ADDRESS",
                              "LOCATION",
                              "NHS_NUMBER",
                              "PERSON",
                              "PHONE_NUMBER",
                              "US_BANK_NUMBER",
                              "US_DRIVERS_LICENSE_NUMBER",
                              "US_ITIN",
                              "US_PASSPORT_NUMBER",
                              "US_SSN"
                            ],
                            "readOnly": true,
                            "type": "string"
                          },
                          "piiName": {
                            "description": "__Read-only__ The human-readable name for this PII entity type. This descriptive name helps administrators understand what type of sensitive data this entity represents. It appears in configuration management interfaces and documentation for clarity.",
                            "readOnly": true,
                            "type": "string"
                          }
                        },
                        "required": [
                          "piiId",
                          "piiName"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/pii-entity-type.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "piiTypes"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/pii-types.yaml"
                  }
                }
              }
            },
            "description": "Successful return of PII types."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The signature does not match",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                  "status": 401,
                  "title": "Not authorized",
                  "type": "https://problems.luna-dev.akamaiapis.net/-/pep-authn/deny"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Unauthorized](ref:401).",
            "x-akamai": {
              "file-path": "errors/401.yaml"
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "You don't have permission to read configuration 12345. Ask your Akamai administrator for access to the group that owns it.",
                  "instance": "https://problems.luna.akamaiapis.net/fai-config-api/error-instances/00264e4851db2f06",
                  "status": 403,
                  "title": "This operation is invalid",
                  "type": "https://problems.luna.akamaiapis.net/fai-config-api/error-types/FORBIDDEN-OPERATION"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Forbidden](ref:403). You don't have the access this operation needs, or your account isn't entitled to a feature the request uses, such as a rule, the `MODIFY` action, or `languages`. The `detail` says which access or entitlement to ask for.",
            "x-akamai": {
              "file-path": "errors/403-fai.yaml"
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Something went wrong while processing the request. Try again later. If it keeps happening, contact Akamai support and include the instance value.",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/00276fe0962da3a9",
                  "status": 500,
                  "title": "Internal Server Error",
                  "type": "https://problems.luna.akamaiapis.net/appsec/error-types/INTERNAL-SERVER-ERROR"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Internal server error](ref:500). Something failed on Akamai's side. Try again later. If it keeps happening, contact Akamai support with the `instance` value.",
            "x-akamai": {
              "file-path": "errors/500-fai.yaml"
            }
          }
        },
        "summary": "List PII types",
        "tags": [
          "Reference data"
        ],
        "x-akamai": {
          "path-info": "/fai-configurations/pii-types"
        }
      },
      "x-akamai": {
        "file-path": "paths/fai-pii-types.yaml"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/appsec/v1"
    }
  ],
  "tags": [
    {
      "description": "Manage disallowed topics, languages, rules, limits, and PII types. ",
      "name": "Reference data"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "07-fai-configuration.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [List disallowed topics](https://techdocs.akamai.com/application-security/reference/get-disallowed-topics.md)
* [List languages](https://techdocs.akamai.com/application-security/reference/get-languages.md)
* [Get numeric constraints](https://techdocs.akamai.com/application-security/reference/get-configuration-limits.md)
* [List FAI rule types](https://techdocs.akamai.com/application-security/reference/get-rule-types.md)