> ## Documentation Index
> Fetch the complete documentation index at: https://docs.idmetagroup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dukcapil Data Facematch

> Match user facial image against Dukcapil database for identity confirmation.



## OpenAPI

````yaml api-reference/openapi.json POST /api/v3/verifications/indonesia/dukcapil-facematch
openapi: 3.0.3
info:
  title: IDmeta API
  description: IDmeta verification and integration API.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://{environment-subdomain}.idmetagroup.com
    description: Your environment (replace `{environment-subdomain}`)
    variables:
      environment-subdomain:
        default: integrate
        description: IDmeta environment subdomain
security:
  - bearerAuth: []
tags:
  - name: Processes
    description: Verification process endpoints
  - name: Trust Flow Links
    description: Trust Flow link generation endpoints
  - name: Compliance
    description: Compliance verification endpoints
  - name: Government Data
    description: Government data verification endpoints
  - name: Alternative Verifications
    description: Alternative verification and intelligence endpoints
  - name: OCR
    description: Document OCR extraction endpoints
paths:
  /api/v3/verifications/indonesia/dukcapil-facematch:
    post:
      tags:
        - Government Data
      summary: Dukcapil Data Facematch
      description: >-
        Match user facial image against Dukcapil database for identity
        confirmation.


        All request fields are required: `name`, `nik`, `date_of_birth`,
        `selfie_image`, `trustFlowId`, and `trustValidationId`.
      operationId: dukcapilFacematchVerificationV3
      parameters:
        - name: Accept
          in: header
          required: false
          schema:
            type: string
            default: application/json
        - name: Content-Type
          in: header
          required: false
          schema:
            type: string
            default: application/json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DukcapilFacematchRequest'
            examples:
              default:
                summary: Dukcapil facematch verification request
                value:
                  name: ''
                  nik: ''
                  date_of_birth: ''
                  selfie_image: ''
                  trustFlowId: 0
                  trustValidationId: '{your_created_trust_validation_id}'
      responses:
        '200':
          description: Dukcapil facematch completed
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DukcapilFacematchV3Response'
              example:
                success: true
                message: Indonesia Dukcapil Facematch processed successfully
                data:
                  isValid: true
                  success: true
                  message: Berhasil
                  data:
                    nik: true
                    name: true
                    dateOfBirth: true
                    selfieImagePercentage: '99.8'
                    livenessResult: null
                    livenessFailMessage: ''
                    noKk: null
                    motherMaidenName: null
                    placeOfBirth: true
                    address: true
                    gender: true
                    maritalStatus: true
                    jobType: true
                    province: true
                    city: true
                    district: true
                    subdistrict: true
                    rt: true
                    rw: true
                    uuid: f26c9465-9e81-4f58-980f-a94d42aa519d
                    url: ''
                    reasonCode: '0'
                    errorMessage: null
                verificationStatus: VERIFIED
                verificationStatusCode: 3
                trustFlowId: 0
                trustValidationId: '{your_trust_validation_id}'
                verificationType: dukcapil_facematch
                metadata: null
components:
  schemas:
    DukcapilFacematchRequest:
      type: object
      required:
        - name
        - nik
        - date_of_birth
        - selfie_image
        - trustFlowId
        - trustValidationId
      properties:
        name:
          type: string
          description: Full name of the individual.
        nik:
          type: string
          minLength: 16
          maxLength: 16
          description: Indonesian National Identity Number (16-digit NIK).
        date_of_birth:
          type: string
          description: Date of birth of the individual in `YYYY-MM-DD` format.
        selfie_image:
          type: string
          description: Selfie image used for facial biometric matching.
        trustFlowId:
          type: integer
          description: >-
            Identifier used to categorize or group requests for tracking or
            reporting.
        trustValidationId:
          type: string
          description: A unique ID used to identify your verification request.
    DukcapilFacematchV3Response:
      type: object
      required:
        - success
        - message
        - data
        - verificationStatus
        - verificationStatusCode
        - trustFlowId
        - trustValidationId
        - verificationType
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
          properties:
            isValid:
              type: boolean
            success:
              type: boolean
            message:
              type: string
            data:
              type: object
              properties:
                nik:
                  type: boolean
                  nullable: true
                name:
                  type: boolean
                  nullable: true
                dateOfBirth:
                  type: boolean
                  nullable: true
                selfieImagePercentage:
                  nullable: true
                  oneOf:
                    - type: string
                    - type: number
                livenessResult:
                  nullable: true
                  oneOf:
                    - type: boolean
                    - type: string
                livenessFailMessage:
                  type: string
                  nullable: true
                noKk:
                  type: boolean
                  nullable: true
                motherMaidenName:
                  type: boolean
                  nullable: true
                placeOfBirth:
                  type: boolean
                  nullable: true
                address:
                  type: boolean
                  nullable: true
                gender:
                  type: boolean
                  nullable: true
                maritalStatus:
                  type: boolean
                  nullable: true
                jobType:
                  type: boolean
                  nullable: true
                province:
                  type: boolean
                  nullable: true
                city:
                  type: boolean
                  nullable: true
                district:
                  type: boolean
                  nullable: true
                subdistrict:
                  type: boolean
                  nullable: true
                rt:
                  type: boolean
                  nullable: true
                rw:
                  type: boolean
                  nullable: true
                uuid:
                  type: string
                url:
                  type: string
                  nullable: true
                reasonCode:
                  type: string
                  nullable: true
                errorMessage:
                  type: string
                  nullable: true
              additionalProperties: true
        verificationStatus:
          type: string
          description: >-
            Outcome of the verification (for example VERIFIED, REJECTED,
            REVIEW_NEEDED).
        verificationStatusCode:
          type: integer
        trustFlowId:
          type: integer
          description: Trust flow identifier.
        trustValidationId:
          type: string
        verificationType:
          type: string
          description: >-
            Verification type identifier (for example dukcapil,
            dukcapil_facematch, dukcapil_full).
        metadata:
          type: object
          nullable: true
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use `Bearer {your_api_token}` in the Authorization header.

````