API Guide
  1. Thailand
API Guide
  • Get Started
  • Document AI
    • Malaysia
      • Extract Bank Statement Data
      • Extract Bill of Lading Data
      • Extract Business Card Data
      • Extract Car Meter Data
      • Extract Cheque (Front) Data
      • Extract Company Financial Statement Data
      • Extract Resume Data
      • Extract E-Invoice Data
      • Extract Electricity Bill Data
      • Extract Identity Card Data
      • Extract Internet Bill Data
      • Extract Invoice Data
      • Extract Passport Data
      • Extract Payslip Data
      • Extract Price Tag Data
      • Extract Purchase Order Data
      • Extract Receipt (General) Data
      • Extract SSM Documents Data
      • Extract Water Bill Data
    • Thailand
      • Extract Business Card Data
        POST
      • Extract Identity Card Data
        POST
      • Extract Passport Data
        POST
      • Extract Receipt Data
        POST
    • Vietnam
      • Extract Business Card Data
      • Extract Identity Card Data
      • Extract Passport Data
      • Extract Receipt Data
    • Philippines
      • Extract Business Card Data
      • Extract Identity Card Data
      • Extract Passport Data
      • Extract Receipt Data
  1. Thailand

Extract Identity Card Data

POST
/document-ai/{model-id}

Extracted Data Types#

The following types will always be present in the API response. If a type parameter is not found in the input, its value will be null.
Parameter NameVariable Type
id_numberstring | null
id_holder_thai_namestring | null
id_holder_namestring | null
id_holder_lastnamestring | null
id_holder_thai_date_of_birthstring | null
id_holder_date_of_birthstring | null
id_holder_thai_religionstring | null
id_holder_thai_addressstring | null
id_holder_heightstring | null
id_date_of_issuestring | null
id_thai_date_of_issuestring | null
id_date_of_expirystring | null
id_thai_date_of_expirystring | null
id_thai_place_of_issuestring | null
id_thai_card_issue_officerstring | null

Notes#

Each type parameter in the data array will always have the specified type, with the possibility of being null.
If a specific type parameter is not present in the input, its value in the response will be null.

Request

Authorization
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
Path Params

Body Params multipart/form-data

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.axtraction.ai/v1/document/document-ai/model-a1b2c3d4e5f6' \
--header 'X-API-KEY;' \
--form 'file=@""' \
--form 'fileBase64="JVBERi0xLjMNCiXi48/...."' \
--form 'mimeType="application/pdf"'

Responses

🟢200Success
application/json
Body

Example
{
    "success": true,
    "data": [
        {
            "type": "id_number",
            "value": "1234567890123"
        },
        {
            "type": "id_holder_thai_name",
            "value": "สมชาย"
        },
        {
            "type": "id_holder_name",
            "value": "Somchai"
        },
        {
            "type": "id_holder_lastname",
            "value": "Sukwong"
        },
        {
            "type": "id_holder_thai_date_of_birth",
            "value": "2540-01-01"
        },
        {
            "type": "id_holder_date_of_birth",
            "value": "1997-01-01"
        },
        {
            "type": "id_holder_thai_religion",
            "value": "พุทธ"
        },
        {
            "type": "id_holder_thai_address",
            "value": "123 ถนนหลัก กรุงเทพฯ"
        },
        {
            "type": "id_holder_height",
            "value": "175 cm"
        },
        {
            "type": "id_date_of_issue",
            "value": "2021-01-01"
        },
        {
            "type": "id_thai_date_of_issue",
            "value": "2564-01-01"
        },
        {
            "type": "id_date_of_expiry",
            "value": "2031-01-01"
        },
        {
            "type": "id_thai_date_of_expiry",
            "value": "2574-01-01"
        },
        {
            "type": "id_thai_place_of_issue",
            "value": "สำนักงานเขตวัฒนา"
        },
        {
            "type": "id_thai_card_issue_officer",
            "value": "นายตำรวจ"
        }
    ],
    "miscellaneous": {
        "processedTime": 108.996
    }
}
Modified at 2025-05-13 04:14:50
Previous
Extract Business Card Data
Next
Extract Passport Data
Built with