> ## 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-legacy/openapi.json POST /api/v1/verification/dukcapilfacematch
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: Compliance
    description: Compliance verification endpoints
  - name: Government Data
    description: Government data verification endpoints
paths:
  /api/v1/verification/dukcapilfacematch:
    post:
      tags:
        - Government Data
      summary: Dukcapil Data Facematch
      description: >-
        Match user facial image against Dukcapil database for identity
        confirmation.
      operationId: dukcapilFacematchVerification
      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:
                  date_of_birth: 12-06-1993
                  name: <string>
                  nik: <string>
                  selfie_image: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...
                  template_id: '{your_trust_flow_id}'
                  verification_id: '{your_created_verification_id}'
      responses:
        '200':
          description: Dukcapil facematch completed
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DukcapilFacematchResponse'
              example:
                status: VERIFIED
                message: OK
                result:
                  success: true
                  message: Berhasil
                  data:
                    nik: true
                    name: true
                    date_of_birth: true
                    selfie_image_percentage: '99.8'
                    liveness_result: null
                    liveness_fail_message: ''
                    no_kk: null
                    mother_maiden_name: null
                    place_of_birth: true
                    address: true
                    gender: true
                    marital_status: true
                    job_type: true
                    province: true
                    city: true
                    district: true
                    subdistrict: true
                    rt: true
                    rw: true
                    uuid: f26c9465-9e81-4f58-980f-a94d42aa519d
                    url: ''
                    reason_code: '0'
                    error_message: null
                risk_rating: LOW
                api_request_status: 1
components:
  schemas:
    DukcapilFacematchRequest:
      type: object
      required:
        - date_of_birth
        - name
        - nik
        - selfie_image
        - template_id
        - verification_id
      properties:
        date_of_birth:
          type: string
          description: Date of birth of the individual.
        name:
          type: string
          description: Full name of the individual.
        nik:
          type: string
          minLength: 16
          maxLength: 16
          description: Indonesian National Identity Number (16-digit NIK).
        selfie_image:
          type: string
          description: Selfie image used for facial biometric matching.
        template_id:
          type: string
          description: >-
            Identifier used to categorize or group requests for tracking or
            reporting.
        verification_id:
          type: string
          description: A unique ID used to identify your verification request.
    DukcapilFacematchResponse:
      type: object
      properties:
        status:
          description: Outcome flag; may be boolean or string (for example REJECTED).
          oneOf:
            - type: boolean
            - type: string
        message:
          type: string
        result:
          type: object
          properties:
            success:
              type: boolean
            message:
              type: string
            data:
              type: object
              additionalProperties: true
        risk_rating:
          type: string
          description: Risk rating when returned by the API (for example HIGH).
        api_request_status:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use `Bearer {your_api_token}` in the Authorization header.

````