Indonesia Passport Details Extraction
curl --request POST \
--url https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form documentImage='@example-file'import requests
url = "https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough"
files = { "documentImage": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('documentImage', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documentImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documentImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documentImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documentImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Indonesia passport details extraction processed successfully",
"data": {
"outcome": "extracted",
"fields": {
"passportNumber": {
"value": "C1234567",
"confidence": "99.40%"
},
"fullName": {
"value": "BUDI SANTOSO",
"confidence": "98.70%"
},
"surname": {
"value": "SANTOSO",
"confidence": "98.90%"
},
"givenNames": {
"value": "BUDI",
"confidence": "99.10%"
},
"nationality": {
"value": "INDONESIA",
"confidence": "99.35%"
},
"placeOfBirth": {
"value": "JAKARTA",
"confidence": "98.50%"
},
"dateOfBirth": {
"value": "1987-09-25",
"confidence": "98.62%"
},
"gender": {
"value": "M",
"confidence": "99.20%"
},
"dateOfIssue": {
"value": "2023-02-14",
"confidence": "98.05%"
},
"dateOfExpiry": {
"value": "2033-02-14",
"confidence": "98.05%"
},
"issuingAuthority": {
"value": "IMIGRASI JAKARTA SELATAN",
"confidence": "96.85%"
},
"placeOfIssue": {
"value": "JAKARTA SELATAN",
"confidence": "97.30%"
},
"registrationNumber": {
"value": "3174012509870004",
"confidence": "97.95%"
},
"type": {
"value": "P",
"confidence": "99.55%"
},
"countryCode": {
"value": "IDN",
"confidence": "99.60%"
},
"mrzLine1": {
"value": "P<IDNSANTOSO<<BUDI<<<<<<<<<<<<<<<<<<<<<<<<<<",
"confidence": "97.80%"
},
"mrzLine2": {
"value": "C1234567<7IDN8709254M3302147<<<<<<<<<<<<<<04",
"confidence": "97.42%"
},
"signature": null,
"photo": null
},
"missingFields": []
},
"verificationStatus": "VERIFIED",
"verificationStatusCode": 3,
"transactionId": "a48c2f91-6d03-4e57-bb28-71fc5d09a3b6",
"verificationType": "idn_passport_details_extraction",
"metadata": null,
"createdAt": "2026-09-01T05:24:56.000000Z"
}Document OCR
Indonesia Passport Details Extraction
Extract structured fields from an Indonesian passport without creating a Trust Validation.
POST
/
api
/
v3
/
verifications
/
indonesia
/
passport-details-extraction-passthrough
Indonesia Passport Details Extraction
curl --request POST \
--url https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form documentImage='@example-file'import requests
url = "https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough"
files = { "documentImage": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('documentImage', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documentImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documentImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documentImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://{environment-subdomain}.idmetagroup.com/api/v3/verifications/indonesia/passport-details-extraction-passthrough")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documentImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Indonesia passport details extraction processed successfully",
"data": {
"outcome": "extracted",
"fields": {
"passportNumber": {
"value": "C1234567",
"confidence": "99.40%"
},
"fullName": {
"value": "BUDI SANTOSO",
"confidence": "98.70%"
},
"surname": {
"value": "SANTOSO",
"confidence": "98.90%"
},
"givenNames": {
"value": "BUDI",
"confidence": "99.10%"
},
"nationality": {
"value": "INDONESIA",
"confidence": "99.35%"
},
"placeOfBirth": {
"value": "JAKARTA",
"confidence": "98.50%"
},
"dateOfBirth": {
"value": "1987-09-25",
"confidence": "98.62%"
},
"gender": {
"value": "M",
"confidence": "99.20%"
},
"dateOfIssue": {
"value": "2023-02-14",
"confidence": "98.05%"
},
"dateOfExpiry": {
"value": "2033-02-14",
"confidence": "98.05%"
},
"issuingAuthority": {
"value": "IMIGRASI JAKARTA SELATAN",
"confidence": "96.85%"
},
"placeOfIssue": {
"value": "JAKARTA SELATAN",
"confidence": "97.30%"
},
"registrationNumber": {
"value": "3174012509870004",
"confidence": "97.95%"
},
"type": {
"value": "P",
"confidence": "99.55%"
},
"countryCode": {
"value": "IDN",
"confidence": "99.60%"
},
"mrzLine1": {
"value": "P<IDNSANTOSO<<BUDI<<<<<<<<<<<<<<<<<<<<<<<<<<",
"confidence": "97.80%"
},
"mrzLine2": {
"value": "C1234567<7IDN8709254M3302147<<<<<<<<<<<<<<04",
"confidence": "97.42%"
},
"signature": null,
"photo": null
},
"missingFields": []
},
"verificationStatus": "VERIFIED",
"verificationStatusCode": 3,
"transactionId": "a48c2f91-6d03-4e57-bb28-71fc5d09a3b6",
"verificationType": "idn_passport_details_extraction",
"metadata": null,
"createdAt": "2026-09-01T05:24:56.000000Z"
}Authorizations
Use your API token as a Bearer token in the Authorization header.
Headers
Example:
"Bearer {your_api_token}"
Body
multipart/form-data
Response
The document was processed. Check data.outcome and verificationStatus to determine the result.

