Contact Discovery by NIK
curl --request POST \
--url https://{environment-subdomain}.idmetagroup.com/api/v3/verification/indonesia/contact-discovery-by-nik \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"trustValidationId": "9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f",
"trustFlowId": 123,
"nik": "3174012345670001"
}
'import requests
url = "https://{environment-subdomain}.idmetagroup.com/api/v3/verification/indonesia/contact-discovery-by-nik"
payload = {
"trustValidationId": "9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f",
"trustFlowId": 123,
"nik": "3174012345670001"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
trustValidationId: '9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f',
trustFlowId: 123,
nik: '3174012345670001'
})
};
fetch('https://{environment-subdomain}.idmetagroup.com/api/v3/verification/indonesia/contact-discovery-by-nik', 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/verification/indonesia/contact-discovery-by-nik",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'trustValidationId' => '9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f',
'trustFlowId' => 123,
'nik' => '3174012345670001'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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/verification/indonesia/contact-discovery-by-nik"
payload := strings.NewReader("{\n \"trustValidationId\": \"9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f\",\n \"trustFlowId\": 123,\n \"nik\": \"3174012345670001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/verification/indonesia/contact-discovery-by-nik")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"trustValidationId\": \"9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f\",\n \"trustFlowId\": 123,\n \"nik\": \"3174012345670001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{environment-subdomain}.idmetagroup.com/api/v3/verification/indonesia/contact-discovery-by-nik")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"trustValidationId\": \"9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f\",\n \"trustFlowId\": 123,\n \"nik\": \"3174012345670001\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Successfully completed contact discovery",
"data": {
"phoneNumbers": [
{
"phoneNumber": "6281234567890",
"dateRegistered": "2024-06-19"
},
{
"phoneNumber": "6285712345678",
"dateRegistered": "2023-01-05"
}
]
},
"verificationStatus": "VERIFIED",
"verificationStatusCode": 3,
"trustFlowId": 123,
"trustValidationId": "9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f",
"verificationType": "idn_contact_discovery_by_nik",
"metadata": null,
"createdAt": "2026-12-03 08:15:30+0000"
}Indonesia
Contact Discovery by NIK
Return the phone numbers registered to an Indonesian NIK.
POST
/
api
/
v3
/
verification
/
indonesia
/
contact-discovery-by-nik
Contact Discovery by NIK
curl --request POST \
--url https://{environment-subdomain}.idmetagroup.com/api/v3/verification/indonesia/contact-discovery-by-nik \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"trustValidationId": "9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f",
"trustFlowId": 123,
"nik": "3174012345670001"
}
'import requests
url = "https://{environment-subdomain}.idmetagroup.com/api/v3/verification/indonesia/contact-discovery-by-nik"
payload = {
"trustValidationId": "9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f",
"trustFlowId": 123,
"nik": "3174012345670001"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
trustValidationId: '9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f',
trustFlowId: 123,
nik: '3174012345670001'
})
};
fetch('https://{environment-subdomain}.idmetagroup.com/api/v3/verification/indonesia/contact-discovery-by-nik', 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/verification/indonesia/contact-discovery-by-nik",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'trustValidationId' => '9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f',
'trustFlowId' => 123,
'nik' => '3174012345670001'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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/verification/indonesia/contact-discovery-by-nik"
payload := strings.NewReader("{\n \"trustValidationId\": \"9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f\",\n \"trustFlowId\": 123,\n \"nik\": \"3174012345670001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/verification/indonesia/contact-discovery-by-nik")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"trustValidationId\": \"9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f\",\n \"trustFlowId\": 123,\n \"nik\": \"3174012345670001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{environment-subdomain}.idmetagroup.com/api/v3/verification/indonesia/contact-discovery-by-nik")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"trustValidationId\": \"9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f\",\n \"trustFlowId\": 123,\n \"nik\": \"3174012345670001\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Successfully completed contact discovery",
"data": {
"phoneNumbers": [
{
"phoneNumber": "6281234567890",
"dateRegistered": "2024-06-19"
},
{
"phoneNumber": "6285712345678",
"dateRegistered": "2023-01-05"
}
]
},
"verificationStatus": "VERIFIED",
"verificationStatusCode": 3,
"trustFlowId": 123,
"trustValidationId": "9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f",
"verificationType": "idn_contact_discovery_by_nik",
"metadata": null,
"createdAt": "2026-12-03 08:15:30+0000"
}The response lists every phone number registered to the NIK, with the date each was registered.
The same response body is also sent to the Trust Flow’s webhook URL, if one is set.
Reading the result
verificationStatus | Code | When |
|---|---|---|
VERIFIED | 3 | At least one phone number is found. |
REJECTED | 1 | No phone numbers are found. data.phoneNumbers is empty. |
Authorizations
Body
application/json
Response
Verification completed. The same body is also sent to the Trust Flow's webhook URL, if one is set.

