> ## 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.

# KTP Details Extraction

> Extraction of all the details from KTP.



## OpenAPI

````yaml api-reference-legacy/openapi.json POST /api/v2/verification/ktp_details_extraction
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/v2/verification/ktp_details_extraction:
    post:
      tags:
        - Government Data
      summary: KTP Details Extraction
      description: Extraction of all the details from KTP.
      operationId: ktpDetailsExtraction
      parameters:
        - name: Accept
          in: header
          required: false
          schema:
            type: string
            default: application/json
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - imageFrontSide
                - template_id
                - verification_id
              properties:
                imageFrontSide:
                  type: string
                  format: binary
                  description: Front side of KTP card image file.
                template_id:
                  type: integer
                  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.
      responses:
        '200':
          description: KTP details extracted successfully
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KtpDetailsExtractionResponse'
              example:
                status: true
                message: OK
components:
  schemas:
    KtpDetailsExtractionResponse:
      type: object
      properties:
        status:
          type: boolean
        message:
          type: string
        result:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use `Bearer {your_api_token}` in the Authorization header.

````