

# Identity Documentation Response Objects
<a name="identitydocumentfields"></a>

 When you submit an identity document to the AnalyzeID API, it returns a series of `IdentityDocumentField` objects. Each of these objects contains `Type`, and `Value`. `Type` records the normalized field that Amazon Textract detects, and `Value` records the text associated with the normalized field. 

 Following is an example of an `IdentityDocumentField`, shortened for brevity. 

```
{
    "DocumentMetadata": {
        "Pages": 1
    }, 
    "IdentityDocumentFields": [
        {
            "Type": {
                "Text": "first name"
            }, 
            "ValueDetection": {
                "Text": "jennifer", 
                "Confidence": 99.99908447265625
            }
        }, 
        {
            "Type": {
                "Text": "last name"
            }, 
            "ValueDetection": {
                "Text": "sample", 
                "Confidence": 99.99758911132812
            }
        },
```

These are two examples of IdentityDocumentFields cut from a longer response. There is a separation between the type detected and the value for that type. Here, it is the first and last name respectively. This structure repeats with all contained information. If a type is not recognized as a normalized field, it will be listed as "other." Additionally, AnalyzeID returns a Blocks object, the same as document text detection so you can have access to the full text of the document.

Following is a list of normalized fields for Driver's Licenses:
+ First Name — FIRST\$1NAME
+ Last Name — LAST\$1NAME 
+ Middle Name — MIDDLE\$1NAME 
+ Suffix — SUFFIX
+ City in Address — CITY\$1IN\$1ADDRESS 
+ Zip Code In Address — ZIP\$1CODE\$1IN\$1ADDRESS
+ State In Address — STATE\$1IN\$1ADDRESS
+ County — COUNTY
+ Document Number — DOCUMENT\$1NUMBER
+ Expiration Date — EXPIRATION\$1DATE
+ Date of Birth — DATE\$1OF\$1BIRTH
+ State Name — STATE\$1NAME
+ Date of Issue — DATE\$1OF\$1ISSUE
+ Class — CLASS
+ Restrictions — RESTRICTIONS
+ Endorsements — ENDORSEMENTS
+ Id Type — ID\$1TYPE
+ Veteran — VETERAN
+ Address — ADDRESS

  

Following is a list of normalized fields for U.S Passports:
+ First Name — FIRST\$1NAME
+ Last Name — LAST\$1NAME 
+ Middle Name — MIDDLE\$1NAME 
+ Document Number — DOCUMENT\$1NUMBER
+ Expiration Date — EXPIRATON\$1DATE
+ Date of Birth — DATE\$1OF\$1BIRTH
+ Place of Birth — PLACE\$1OF\$1BIRTH
+ Date of Issue — DATE\$1OF\$1ISSUE
+ Id Type — ID\$1TYPE
+ MRZ Code — MRZ\$1CODE