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

# Get the latest configuration version

This gets details of the last created configuration version.

# 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/{faiConfigId}/versions/latest": {
      "get": {
        "description": "This gets details of the last created configuration version.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Application Security API",
          "url": "https://techdocs.akamai.com/application-security/reference/get-fai-configuration-version-latest"
        },
        "operationId": "get-fai-configuration-version-latest",
        "parameters": [
          {
            "description": "Identifier for the FAI configuration.",
            "example": "12345",
            "in": "path",
            "name": "faiConfigId",
            "required": true,
            "schema": {
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "x-akamai": {
              "file-path": "parameters/fai-config-id-path.yaml"
            }
          },
          {
            "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": {
                  "activationStatus": "INACTIVE",
                  "canEdit": true,
                  "configVersionId": "12345-5",
                  "createdBy": "mrossi",
                  "createdDate": "2024-06-20T14:22:00Z",
                  "defaultDenyResponse": "Resource doesn't exist",
                  "defaultModifiedResponse": {
                    "body": "{\"error\": \"Cannot process your request\"}",
                    "contentType": "application/json",
                    "cookiesToKeep": [
                      "cookie1",
                      "cookie2"
                    ],
                    "headers": {
                      "X-Security-Block-Reason": "NOT-SPECIFIED"
                    },
                    "headersToKeep": [
                      "Accept",
                      "Cache-Control"
                    ],
                    "statusCode": 403
                  },
                  "faiConfig": {
                    "activeVersion": 4,
                    "contractId": "C-0N7RAC7",
                    "createdBy": "jkowalski",
                    "createdDate": "2024-01-15T10:30:00Z",
                    "description": "Production FAI configuration for main application",
                    "faiConfigId": "12345",
                    "faiConfigName": "production-fai-config",
                    "faiConfigType": "EDGE",
                    "groupId": "54321",
                    "latestVersion": 5,
                    "modifiedBy": "szhang",
                    "modifiedDate": "2024-06-20T14:22:00Z"
                  },
                  "flowInspectType": "DEFAULT",
                  "logInput": true,
                  "logOutput": true,
                  "maskInputPiiFields": true,
                  "maskOutputPiiFields": true,
                  "modifiedBy": "asingh",
                  "modifiedDate": "2024-06-22T15:45:00Z",
                  "rules": [
                    {
                      "action": "ALERT",
                      "ruleId": "LLM-INJECT-PROMPT",
                      "ruleName": "LLM Prompt Injection",
                      "sensitivity": "MEDIUM"
                    },
                    {
                      "action": "ALERT",
                      "maxSize": 32097,
                      "ruleId": "LLM-DOS-IN",
                      "ruleName": "LLM input too long"
                    },
                    {
                      "action": "DENY",
                      "customPiiEntities": [
                        {
                          "action": "DENY",
                          "customPiiId": 10038,
                          "customPiiName": "Employee ID",
                          "patterns": [
                            "^EMP-\\d{6}$"
                          ]
                        }
                      ],
                      "maskPii": true,
                      "piiEntities": [
                        {
                          "action": "MODIFY",
                          "id": "CREDIT_CARD_NUMBER",
                          "modifiedResponse": {
                            "body": "{\"error\": \"Credit card detected\"}",
                            "contentType": "application/json",
                            "statusCode": 403
                          },
                          "name": "Credit card number"
                        },
                        {
                          "action": "MODIFY",
                          "allowList": {
                            "exactMatch": [
                              "A1234341234",
                              "B384750938"
                            ],
                            "regex": [
                              "^[A-Z]{2}[0-9]{6}$"
                            ]
                          },
                          "id": "US_PASSPORT_NUMBER",
                          "name": "U.S. passport number"
                        }
                      ],
                      "presetResponse": "PII detected in the prompt.",
                      "ruleId": "LLM-PII-IN",
                      "ruleName": "PII detected LLM on input"
                    },
                    {
                      "action": "ALERT",
                      "ruleId": "LLM-OFF-TOPIC-IN",
                      "ruleName": "Disallowed topic on LLM input",
                      "sensitivity": "HIGH",
                      "topics": [
                        "POLITICS",
                        "GAMBLING"
                      ]
                    }
                  ],
                  "version": 5
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Represents a specific version of a Firewall for AI configuration, including its security rules, activation status, and version metadata.",
                  "properties": {
                    "activationStatus": {
                      "description": "__Read-only__ The current activation status of this configuration version, either `INACTIVE`, `PENDING`, `ACTIVE`, `WAS_ACTIVE`, or `FAILED`. Only `INACTIVE` and `FAILED` versions can be edited. `WAS_ACTIVE` is a superseded version and stays read-only.",
                      "enum": [
                        "INACTIVE",
                        "PENDING",
                        "ACTIVE",
                        "WAS_ACTIVE",
                        "FAILED"
                      ],
                      "readOnly": true,
                      "type": "string"
                    },
                    "canEdit": {
                      "description": "__Read-only__ Reflects whether you can still edit this version. Only versions with an `activationStatus` of `INACTIVE` or `FAILED` are editable. A successful activation makes the version read-only permanently.",
                      "readOnly": true,
                      "type": "boolean"
                    },
                    "configVersionId": {
                      "description": "__Read-only__ Unique identifier for this configuration version.",
                      "readOnly": true,
                      "type": "string"
                    },
                    "createdBy": {
                      "description": "__Read-only__ The username of the user who created this configuration version.",
                      "readOnly": true,
                      "type": "string"
                    },
                    "createdDate": {
                      "description": "__Read-only__ The time when this configuration version was created.",
                      "format": "date-time",
                      "readOnly": true,
                      "type": "string"
                    },
                    "defaultDenyResponse": {
                      "description": "The default response body returned when a request is denied by any rule configured with a `DENY` action and without its own `presetResponse`. Ignored on `API` type configurations.",
                      "maxLength": 1024,
                      "type": "string"
                    },
                    "defaultModifiedResponse": {
                      "allOf": [
                        {
                          "additionalProperties": false,
                          "description": "Defines a custom HTTP response returned when a rule with a `MODIFY` action triggers.",
                          "properties": {
                            "body": {
                              "description": "Response body. The maximum length is `maxResponseBodySize` from [Get numeric constraints](ref:get-configuration-limits). Must be valid according to the specified contentType (JSON, XML, or plain text).",
                              "type": "string"
                            },
                            "contentType": {
                              "description": "HTTP content type. Must be one of the values in `allowedContentTypes` from [Get numeric constraints](ref:get-configuration-limits). Matching is an exact string comparison.",
                              "type": "string"
                            },
                            "cookiesToKeep": {
                              "description": "List of original cookie names to preserve. The maximum number of names is `maxRetainedCookies`, and the maximum name length is `maxCookieNameSize`, both from [Get numeric constraints](ref:get-configuration-limits). Cookie names are case-insensitive.",
                              "items": {
                                "type": "string"
                              },
                              "type": "array",
                              "uniqueItems": true
                            },
                            "headers": {
                              "additionalProperties": {
                                "description": "The value of the additional response header.",
                                "type": "string"
                              },
                              "description": "Map of additional response header name/value pairs. The maximum number of pairs is `maxAdditionalHeaders`, the maximum header name length is `maxHeaderNameSize`, and the maximum header value length is `maxHeaderValueSize`, all from [Get numeric constraints](ref:get-configuration-limits). Header names are case-insensitive and can't repeat.",
                              "type": "object"
                            },
                            "headersToKeep": {
                              "description": "List of original response header names to preserve. The maximum number of names is `maxRetainedHeaders`, and the maximum name length is `maxHeaderNameSize`, both from [Get numeric constraints](ref:get-configuration-limits). Header names must not overlap with names in `headers`. Header names are case-insensitive.",
                              "items": {
                                "type": "string"
                              },
                              "type": "array",
                              "uniqueItems": true
                            },
                            "statusCode": {
                              "description": "HTTP status code. Must be one of the values in `allowedStatusCodes` from [Get numeric constraints](ref:get-configuration-limits).",
                              "type": "integer"
                            }
                          },
                          "required": [
                            "statusCode",
                            "contentType",
                            "body"
                          ],
                          "type": "object",
                          "x-akamai": {
                            "file-path": "schemas/modify-action-response.yaml"
                          }
                        }
                      ],
                      "description": "The default modified response definition, used by any rule or PII entity with a `MODIFY` action that does not carry its own `modifiedResponse`. A `MODIFY` action that resolves to no modified response at all is rejected when you save the version, not when you activate it."
                    },
                    "faiConfig": {
                      "allOf": [
                        {
                          "additionalProperties": false,
                          "description": "Represents a Firewall for AI configuration that protects LLM applications from security threats.",
                          "properties": {
                            "activeVersion": {
                              "description": "__Read-only__ The currently active version number. Omitted while no version of the configuration is active.",
                              "minimum": 1,
                              "readOnly": true,
                              "type": "integer"
                            },
                            "contractId": {
                              "description": "The unique identifier for the Akamai contract associated with this configuration.",
                              "type": "string"
                            },
                            "createdBy": {
                              "description": "__Read-only__ The username of the user who created this configuration.",
                              "readOnly": true,
                              "type": "string"
                            },
                            "createdDate": {
                              "description": "__Read-only__ The date and time when this configuration was created, in ISO 8601 format.",
                              "format": "date-time",
                              "readOnly": true,
                              "type": "string"
                            },
                            "description": {
                              "description": "A detailed description of the Firewall for AI configuration and its purpose. Omitted when the configuration has none.",
                              "maxLength": 255,
                              "type": "string"
                            },
                            "faiConfigId": {
                              "description": "__Read-only__ Uniquely identifies the Firewall for AI configuration.",
                              "readOnly": true,
                              "type": "string"
                            },
                            "faiConfigName": {
                              "description": "The name of the Firewall for AI configuration.",
                              "maxLength": 255,
                              "minLength": 1,
                              "type": "string"
                            },
                            "faiConfigType": {
                              "description": "The type of Firewall for AI configuration: `EDGE` is deployed on Akamai's edge network, and `API` is accessed via API endpoints.",
                              "enum": [
                                "EDGE",
                                "API"
                              ],
                              "type": "string"
                            },
                            "groupId": {
                              "description": "The unique identifier for the Akamai group associated with this configuration.",
                              "type": "string"
                            },
                            "latestVersion": {
                              "description": "__Read-only__ The latest version number of this configuration.",
                              "minimum": 1,
                              "readOnly": true,
                              "type": "integer"
                            },
                            "modifiedBy": {
                              "description": "__Read-only__ The username of the user who last modified this configuration.",
                              "readOnly": true,
                              "type": "string"
                            },
                            "modifiedDate": {
                              "description": "__Read-only__ The time when this configuration was last modified, in ISO 8601 format.",
                              "format": "date-time",
                              "readOnly": true,
                              "type": "string"
                            }
                          },
                          "required": [
                            "faiConfigName",
                            "faiConfigType"
                          ],
                          "type": "object",
                          "x-akamai": {
                            "file-path": "schemas/fai-configuration.yaml"
                          }
                        }
                      ],
                      "description": "__Read-only__ Parent configuration metadata.",
                      "readOnly": true
                    },
                    "flowInspectType": {
                      "description": "__Read-only__ Which traffic flow the version inspects, either `DEFAULT` or `DEFERRED`. Returned on `EDGE` type configurations and omitted on `API` type configurations.",
                      "enum": [
                        "DEFAULT",
                        "DEFERRED"
                      ],
                      "readOnly": true,
                      "type": "string"
                    },
                    "logInput": {
                      "default": true,
                      "description": "Whether input logging is enabled. When `true`, all input prompts to the LLM are logged.",
                      "type": "boolean"
                    },
                    "logOutput": {
                      "default": true,
                      "description": "Whether output logging is enabled. When `true`, all LLM responses are logged.",
                      "type": "boolean"
                    },
                    "maskInputPiiFields": {
                      "default": true,
                      "description": "Whether PII fields are masked in input logs. When `true`, it redacts detected PII in prompts.",
                      "type": "boolean"
                    },
                    "maskOutputPiiFields": {
                      "default": true,
                      "description": "Whether PII fields are masked in output logs. When `true`, it redacts detected PII in responses.",
                      "type": "boolean"
                    },
                    "modifiedBy": {
                      "description": "__Read-only__ The username of the user who last modified this configuration version.",
                      "readOnly": true,
                      "type": "string"
                    },
                    "modifiedDate": {
                      "description": "__Read-only__ The date and time when this configuration version was last modified, in ISO 8601 format.",
                      "format": "date-time",
                      "readOnly": true,
                      "type": "string"
                    },
                    "rules": {
                      "description": "The security rules configured for this version, including sensitivity, size, PII, or off-topic rules depending on the rule type. Run [List FAI rule types](ref:get-rule-types) operation for available rules.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Represents a security rule within a Firewall for AI configuration version. Rules define detection logic and enforcement actions for threats such as prompt injection, PII exposure, toxic content, secrets, size limits, and off-topic content. The set of applicable properties depends on the rule identified by `ruleId`. Sensitivity-based rules use `sensitivity`, size rules use `maxSize`, PII rules use `maskPii`/`piiEntities`/`customPiiEntities`, and off-topic rules use `sensitivity`/`topics`.\nA rule applies because it is present in the version's `rules` array. Since an update replaces the array in full, dropping a rule from it removes that rule from the version.",
                        "properties": {
                          "action": {
                            "description": "Action to perform when the rule triggers: `ALERT` logs the detection, `DENY` blocks the request, and `MODIFY` changes the request or response to remove the threat.",
                            "enum": [
                              "ALERT",
                              "DENY",
                              "MODIFY"
                            ],
                            "type": "string"
                          },
                          "allowList": {
                            "description": "For secrets rules, values excluded from detection.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "customPiiEntities": {
                            "description": "For PII rules, the list of custom PII entities enabled for this rule. Each entry references a custom PII type already created on this same configuration version, so create the types first with the [Create a custom PII type](ref:post-custom-pii-type) operation.",
                            "items": {
                              "additionalProperties": false,
                              "description": "Represents a custom PII entity based on regular expression patterns, configured within a PII detection rule. The referenced custom PII type must already exist in the configuration version.",
                              "properties": {
                                "action": {
                                  "description": "Action for this entity: `ALERT` logs the detection, `DENY` blocks the request, and `MODIFY` changes the request or response to remove the threat.",
                                  "enum": [
                                    "ALERT",
                                    "DENY",
                                    "MODIFY"
                                  ],
                                  "type": "string"
                                },
                                "customPiiId": {
                                  "description": "Identifier of the custom PII type, as returned by [Create a custom PII type](ref:post-custom-pii-type) for this same configuration version. That operation returns the identifier as a string. An identifier from another version isn't accepted.",
                                  "format": "int64",
                                  "type": "integer"
                                },
                                "customPiiName": {
                                  "description": "__Read-only__ Display name of the custom entity.",
                                  "readOnly": true,
                                  "type": "string"
                                },
                                "modifiedResponse": {
                                  "allOf": [
                                    {
                                      "additionalProperties": false,
                                      "description": "Defines a custom HTTP response returned when a rule with a `MODIFY` action triggers.",
                                      "properties": {
                                        "body": {
                                          "description": "Response body. The maximum length is `maxResponseBodySize` from [Get numeric constraints](ref:get-configuration-limits). Must be valid according to the specified contentType (JSON, XML, or plain text).",
                                          "type": "string"
                                        },
                                        "contentType": {
                                          "description": "HTTP content type. Must be one of the values in `allowedContentTypes` from [Get numeric constraints](ref:get-configuration-limits). Matching is an exact string comparison.",
                                          "type": "string"
                                        },
                                        "cookiesToKeep": {
                                          "description": "List of original cookie names to preserve. The maximum number of names is `maxRetainedCookies`, and the maximum name length is `maxCookieNameSize`, both from [Get numeric constraints](ref:get-configuration-limits). Cookie names are case-insensitive.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array",
                                          "uniqueItems": true
                                        },
                                        "headers": {
                                          "additionalProperties": {
                                            "description": "The value of the additional response header.",
                                            "type": "string"
                                          },
                                          "description": "Map of additional response header name/value pairs. The maximum number of pairs is `maxAdditionalHeaders`, the maximum header name length is `maxHeaderNameSize`, and the maximum header value length is `maxHeaderValueSize`, all from [Get numeric constraints](ref:get-configuration-limits). Header names are case-insensitive and can't repeat.",
                                          "type": "object"
                                        },
                                        "headersToKeep": {
                                          "description": "List of original response header names to preserve. The maximum number of names is `maxRetainedHeaders`, and the maximum name length is `maxHeaderNameSize`, both from [Get numeric constraints](ref:get-configuration-limits). Header names must not overlap with names in `headers`. Header names are case-insensitive.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array",
                                          "uniqueItems": true
                                        },
                                        "statusCode": {
                                          "description": "HTTP status code. Must be one of the values in `allowedStatusCodes` from [Get numeric constraints](ref:get-configuration-limits).",
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "statusCode",
                                        "contentType",
                                        "body"
                                      ],
                                      "type": "object",
                                      "x-akamai": {
                                        "file-path": "schemas/modify-action-response.yaml"
                                      }
                                    }
                                  ],
                                  "description": "Custom modified response for this entity when its action is `MODIFY`. When absent, the entity falls back to the rule's `modifiedResponse` and then to the version's `defaultModifiedResponse`."
                                },
                                "patterns": {
                                  "description": "__Read-only__ The regular expression patterns of the referenced custom PII type. Echoed on read. Changing them here has no effect, so update the custom PII type instead.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "readOnly": true,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "customPiiId",
                                "action"
                              ],
                              "type": "object",
                              "x-akamai": {
                                "file-path": "schemas/custom-pii-entity.yaml"
                              }
                            },
                            "type": "array"
                          },
                          "maskPii": {
                            "default": false,
                            "description": "For PII rules, whether to mask all detected PII. Default `false`. Currently applied only for the response payload.",
                            "type": "boolean"
                          },
                          "maxSize": {
                            "description": "Maximum allowed size for size rules.",
                            "minimum": 1,
                            "type": "integer"
                          },
                          "modifiedResponse": {
                            "allOf": [
                              {
                                "additionalProperties": false,
                                "description": "Defines a custom HTTP response returned when a rule with a `MODIFY` action triggers.",
                                "properties": {
                                  "body": {
                                    "description": "Response body. The maximum length is `maxResponseBodySize` from [Get numeric constraints](ref:get-configuration-limits). Must be valid according to the specified contentType (JSON, XML, or plain text).",
                                    "type": "string"
                                  },
                                  "contentType": {
                                    "description": "HTTP content type. Must be one of the values in `allowedContentTypes` from [Get numeric constraints](ref:get-configuration-limits). Matching is an exact string comparison.",
                                    "type": "string"
                                  },
                                  "cookiesToKeep": {
                                    "description": "List of original cookie names to preserve. The maximum number of names is `maxRetainedCookies`, and the maximum name length is `maxCookieNameSize`, both from [Get numeric constraints](ref:get-configuration-limits). Cookie names are case-insensitive.",
                                    "items": {
                                      "type": "string"
                                    },
                                    "type": "array",
                                    "uniqueItems": true
                                  },
                                  "headers": {
                                    "additionalProperties": {
                                      "description": "The value of the additional response header.",
                                      "type": "string"
                                    },
                                    "description": "Map of additional response header name/value pairs. The maximum number of pairs is `maxAdditionalHeaders`, the maximum header name length is `maxHeaderNameSize`, and the maximum header value length is `maxHeaderValueSize`, all from [Get numeric constraints](ref:get-configuration-limits). Header names are case-insensitive and can't repeat.",
                                    "type": "object"
                                  },
                                  "headersToKeep": {
                                    "description": "List of original response header names to preserve. The maximum number of names is `maxRetainedHeaders`, and the maximum name length is `maxHeaderNameSize`, both from [Get numeric constraints](ref:get-configuration-limits). Header names must not overlap with names in `headers`. Header names are case-insensitive.",
                                    "items": {
                                      "type": "string"
                                    },
                                    "type": "array",
                                    "uniqueItems": true
                                  },
                                  "statusCode": {
                                    "description": "HTTP status code. Must be one of the values in `allowedStatusCodes` from [Get numeric constraints](ref:get-configuration-limits).",
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "statusCode",
                                  "contentType",
                                  "body"
                                ],
                                "type": "object",
                                "x-akamai": {
                                  "file-path": "schemas/modify-action-response.yaml"
                                }
                              }
                            ],
                            "description": "Custom modified response for this rule when its action is `MODIFY`. Overrides the version-level `defaultModifiedResponse`, which applies when this is not set."
                          },
                          "piiEntities": {
                            "description": "For PII rules, the list of pre-defined PII entities enabled for this rule. Every entry needs its own `action`.",
                            "items": {
                              "additionalProperties": false,
                              "description": "Represents a pre-defined PII entity type configured within a PII detection rule.",
                              "properties": {
                                "action": {
                                  "description": "Action for this entity: `ALERT` logs the detection, `DENY` blocks the request, and `MODIFY` changes the request or response to remove the threat.",
                                  "enum": [
                                    "ALERT",
                                    "DENY",
                                    "MODIFY"
                                  ],
                                  "type": "string"
                                },
                                "allowList": {
                                  "allOf": [
                                    {
                                      "additionalProperties": false,
                                      "description": "Defines values and patterns to exclude from PII detection for a specific PII entity.",
                                      "properties": {
                                        "exactMatch": {
                                          "description": "List of exact values to exclude from detection.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array"
                                        },
                                        "regex": {
                                          "description": "List of regular expression patterns. Values matching any pattern are excluded from detection.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array"
                                        }
                                      },
                                      "type": "object",
                                      "x-akamai": {
                                        "file-path": "schemas/pii-allow-list.yaml"
                                      }
                                    }
                                  ],
                                  "description": "Values and patterns excluded from detection for this specific PII entity."
                                },
                                "id": {
                                  "description": "PII type identifier, such as `CREDIT_CARD_NUMBER`. Run [List PII types](ref:get-pii-types) for available values. Reference custom PII types from the rule's `customPiiEntities` instead.",
                                  "enum": [
                                    "ABA_ROUTING_NUMBER",
                                    "AU_ACN",
                                    "AU_MEDICARE_NUMBER",
                                    "AU_TFN",
                                    "CREDIT_CARD_NUMBER",
                                    "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"
                                  ],
                                  "type": "string",
                                  "x-enum-descriptions": {
                                    "ABA_ROUTING_NUMBER": "ABA routing number.",
                                    "AU_ACN": "Australian Company Number.",
                                    "AU_MEDICARE_NUMBER": "Australian Medicare number.",
                                    "AU_TFN": "Australian Tax File Number (TFN).",
                                    "CREDIT_CARD_NUMBER": "Credit card number.",
                                    "EMAIL": "Email address.",
                                    "IBAN_CODE": "International Bank Account Number (IBAN).",
                                    "IP_ADDRESS": "IP address.",
                                    "LOCATION": "Location information.",
                                    "NHS_NUMBER": "NHS (National Health Service) number.",
                                    "PERSON": "Name of a person.",
                                    "PHONE_NUMBER": "Phone number.",
                                    "US_BANK_NUMBER": "U.S. bank account number.",
                                    "US_DRIVERS_LICENSE_NUMBER": "U.S. driver’s license number.",
                                    "US_ITIN": "U.S. Individual Taxpayer Identification Number (ITIN).",
                                    "US_PASSPORT_NUMBER": "U.S. passport number.",
                                    "US_SSN": "U.S. Social Security Number (SSN)."
                                  }
                                },
                                "modifiedResponse": {
                                  "allOf": [
                                    {
                                      "additionalProperties": false,
                                      "description": "Defines a custom HTTP response returned when a rule with a `MODIFY` action triggers.",
                                      "properties": {
                                        "body": {
                                          "description": "Response body. The maximum length is `maxResponseBodySize` from [Get numeric constraints](ref:get-configuration-limits). Must be valid according to the specified contentType (JSON, XML, or plain text).",
                                          "type": "string"
                                        },
                                        "contentType": {
                                          "description": "HTTP content type. Must be one of the values in `allowedContentTypes` from [Get numeric constraints](ref:get-configuration-limits). Matching is an exact string comparison.",
                                          "type": "string"
                                        },
                                        "cookiesToKeep": {
                                          "description": "List of original cookie names to preserve. The maximum number of names is `maxRetainedCookies`, and the maximum name length is `maxCookieNameSize`, both from [Get numeric constraints](ref:get-configuration-limits). Cookie names are case-insensitive.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array",
                                          "uniqueItems": true
                                        },
                                        "headers": {
                                          "additionalProperties": {
                                            "description": "The value of the additional response header.",
                                            "type": "string"
                                          },
                                          "description": "Map of additional response header name/value pairs. The maximum number of pairs is `maxAdditionalHeaders`, the maximum header name length is `maxHeaderNameSize`, and the maximum header value length is `maxHeaderValueSize`, all from [Get numeric constraints](ref:get-configuration-limits). Header names are case-insensitive and can't repeat.",
                                          "type": "object"
                                        },
                                        "headersToKeep": {
                                          "description": "List of original response header names to preserve. The maximum number of names is `maxRetainedHeaders`, and the maximum name length is `maxHeaderNameSize`, both from [Get numeric constraints](ref:get-configuration-limits). Header names must not overlap with names in `headers`. Header names are case-insensitive.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": "array",
                                          "uniqueItems": true
                                        },
                                        "statusCode": {
                                          "description": "HTTP status code. Must be one of the values in `allowedStatusCodes` from [Get numeric constraints](ref:get-configuration-limits).",
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "statusCode",
                                        "contentType",
                                        "body"
                                      ],
                                      "type": "object",
                                      "x-akamai": {
                                        "file-path": "schemas/modify-action-response.yaml"
                                      }
                                    }
                                  ],
                                  "description": "Custom modified response for this entity when its action is `MODIFY`. When absent, the entity falls back to the rule's `modifiedResponse` and then to the version's `defaultModifiedResponse`."
                                },
                                "name": {
                                  "description": "__Read-only__ Display name of the PII type.",
                                  "readOnly": true,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "action"
                              ],
                              "type": "object",
                              "x-akamai": {
                                "file-path": "schemas/pii-entity.yaml"
                              }
                            },
                            "type": "array"
                          },
                          "presetResponse": {
                            "description": "Response body returned for this rule when its action is `DENY`. Overrides the version-level `defaultDenyResponse`, which applies when this is not set.",
                            "maxLength": 1024,
                            "type": "string"
                          },
                          "ruleId": {
                            "description": "Rule identifier. See the List rule types operation for available values, such as `LLM-INJECT-PROMPT`.",
                            "maxLength": 255,
                            "minLength": 1,
                            "type": "string"
                          },
                          "ruleName": {
                            "description": "__Read-only__ Canonical display name of the rule, derived from its `ruleId`.",
                            "maxLength": 255,
                            "minLength": 1,
                            "readOnly": true,
                            "type": "string"
                          },
                          "sensitivity": {
                            "description": "Detection sensitivity for sensitivity-based rules (prompt injection, toxicity) and off-topic rules: `HIGH` is most aggressive, `MEDIUM` balances accuracy against false positives, and `LOW` keeps high-confidence detections only. Required for sensitivity rules. A new version's default rules start at `MEDIUM`.",
                            "enum": [
                              "HIGH",
                              "MEDIUM",
                              "LOW"
                            ],
                            "type": "string"
                          },
                          "topics": {
                            "description": "For off-topic rules, this is the list of disallowed topic IDs, at least one. Each entry needs to be a topic identifier from the [List disallowed topics](ref:get-disallowed-topics) operation.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "ruleId",
                          "action"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/fai-rule.yaml"
                        }
                      },
                      "type": "array"
                    },
                    "version": {
                      "description": "__Read-only__ The version number of this configuration. Version numbers are sequential and auto-incremented starting from 1.",
                      "minimum": 1,
                      "readOnly": true,
                      "type": "integer"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/fai-configuration-version.yaml"
                  }
                }
              }
            },
            "description": "Successful return of latest configuration version."
          },
          "400": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "faiConfigId must be a number, but the request has \"abc\". Use a faiConfigId from List FAI configurations.",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/00241e66342ab3ed",
                  "status": 400,
                  "title": "Invalid Input Error",
                  "type": "https://problems.luna.akamaiapis.net/appsec/error-types/INVALID-INPUT-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": "[Bad request](ref:400). The request isn't valid, for example an id that isn't a number, a missing or out-of-range field, a value that isn't allowed, or rule settings that conflict. The `detail` names the field, the value sent, and what to change.",
            "x-akamai": {
              "file-path": "errors/400-fai.yaml"
            }
          },
          "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"
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Configuration 12345 doesn't exist in your account. Check the faiConfigId, or run List FAI configurations to find it.",
                  "instance": "https://problems.luna.akamaiapis.net/fai-config-api/error-instances/0026e8bba97ea06e",
                  "status": 404,
                  "title": "Not Found",
                  "type": "https://problems.luna.akamaiapis.net/fai-config-api/error-types/NOT-FOUND"
                },
                "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": "[Not found](ref:404). A resource in the URL doesn't exist: the configuration, version, custom PII type, application, access key, or activation. The `detail` names the missing id and where to find valid ones.",
            "x-akamai": {
              "file-path": "errors/404-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": "Get the latest configuration version",
        "tags": [
          "Configuration versions"
        ],
        "x-akamai": {
          "path-info": "/fai-configurations/{faiConfigId}/versions/latest"
        }
      },
      "x-akamai": {
        "file-path": "paths/fai-configuration-version-latest.yaml"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/appsec/v1"
    }
  ],
  "tags": [
    {
      "description": "Manage configurations and their versions.",
      "name": "Configuration versions"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "07-fai-configuration.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [Get a configuration version](https://techdocs.akamai.com/application-security/reference/get-fai-configuration-version.md)
* [Update a configuration version](https://techdocs.akamai.com/application-security/reference/put-fai-configuration-version.md)
* [Activate an FAI configuration version](https://techdocs.akamai.com/application-security/reference/post-fai-configuration-version-activate.md)
* [Clone an FAI configuration version](https://techdocs.akamai.com/application-security/reference/post-fai-configuration-version-clone.md)