curl -X POST https://verification.didit.me/v3/kyb/search/ \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"country_code": "GB",
"name": "Tesco",
"search_type": "contains",
"vendor_data": "company-1234"
}'import os, requests
resp = requests.post(
"https://verification.didit.me/v3/kyb/search/",
headers={"x-api-key": os.environ["DIDIT_API_KEY"]},
json={"country_code": "GB", "name": "Tesco"},
timeout=60, # synchronous mode waits for the registry to resolve
)
resp.raise_for_status()
candidates = resp.json()["kyb_registry"]["companies"]
kyb_response_id = candidates[0]["kyb_response_id"] # pass to /v3/kyb/select/const res = await fetch('https://verification.didit.me/v3/kyb/search/', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ country_code: 'GB', name: 'Tesco' }),
});
const data = await res.json();
const kybResponseId = data.kyb_registry.companies[0].kyb_response_id;<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/kyb/search/",
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([
'country_code' => 'GB',
'name' => 'Tesco',
'registration_number' => '<string>',
'search_type' => 'contains',
'vendor_data' => '<string>',
'metadata' => [
],
'webhook_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://verification.didit.me/v3/kyb/search/"
payload := strings.NewReader("{\n \"country_code\": \"GB\",\n \"name\": \"Tesco\",\n \"registration_number\": \"<string>\",\n \"search_type\": \"contains\",\n \"vendor_data\": \"<string>\",\n \"metadata\": {},\n \"webhook_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://verification.didit.me/v3/kyb/search/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"country_code\": \"GB\",\n \"name\": \"Tesco\",\n \"registration_number\": \"<string>\",\n \"search_type\": \"contains\",\n \"vendor_data\": \"<string>\",\n \"metadata\": {},\n \"webhook_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/kyb/search/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country_code\": \"GB\",\n \"name\": \"Tesco\",\n \"registration_number\": \"<string>\",\n \"search_type\": \"contains\",\n \"vendor_data\": \"<string>\",\n \"metadata\": {},\n \"webhook_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "0c7e9a40-3a13-4f7e-8a44-9d2e2f1c5b6a",
"kyb_registry": {
"companies": [
{
"kyb_response_id": "69aeeb95febb0f1704042259",
"name": "Tesco PLC",
"registration_number": "00445790",
"status": "active",
"type": "Public Limited Company",
"risk_level": null,
"fetch_status": "pending"
},
{
"kyb_response_id": "69aeeb95febb0f170404225a",
"name": "E-TESCO LTD",
"registration_number": "15168476",
"status": "active",
"type": "Private Limited Company",
"risk_level": null,
"fetch_status": "pending"
}
],
"pagination": {
"total": 2,
"page": 1,
"per_page": 25
},
"search_status": "resolved",
"search_resolved": true
},
"vendor_data": "company-1234",
"metadata": null,
"created_at": "2026-06-11T10:40:00.000000+00:00"
}KYB Registry Search
Search official company registries for candidate companies by name and/or registration number. This is step 1 of the two-step registry flow: search returns lightweight candidates, then POST /v3/kyb/select/ retrieves the full profile of one candidate.
The search is free — no balance check, no billing. Candidates always come back with fetch_status: "pending": the full company data is only fetched (and billed) on select.
kyb_response_id is ephemeral. It is a per-search handle, not a stable company id. Select promptly after searching and re-search to get a fresh handle instead of storing it.
Two modes.
- Synchronous (default): the API polls the registry until the search resolves and returns the final candidate list (
search_resolved: true). - Asynchronous: pass
webhook_urland the API returns immediately — usually withsearch_status: "pending"and an empty candidate list — then POSTs akyb.registry_search.resolvedcallback to your URL when the registry finishes. The callback body is{"event_id", "event_type": "kyb.registry_search.resolved", "request_id", "vendor_data", "metadata", "search_status", "search_resolved", "kyb_registry", "timestamp", "created_at"}— notetimestampandcreated_atin the callback are epoch integers, unlike this endpoint’s ISOcreated_at— and is sent unsigned (headerX-Didit-Unsigned-Callback: true, noX-Signature).
Country codes. ISO 3166-1 alpha-2 (GB, DE), plus XX-YY subdivision codes where registries are regional — e.g. US-CA for California.
Sandbox. Keys from sandbox applications return one static candidate without contacting any registry.
curl -X POST https://verification.didit.me/v3/kyb/search/ \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"country_code": "GB",
"name": "Tesco",
"search_type": "contains",
"vendor_data": "company-1234"
}'import os, requests
resp = requests.post(
"https://verification.didit.me/v3/kyb/search/",
headers={"x-api-key": os.environ["DIDIT_API_KEY"]},
json={"country_code": "GB", "name": "Tesco"},
timeout=60, # synchronous mode waits for the registry to resolve
)
resp.raise_for_status()
candidates = resp.json()["kyb_registry"]["companies"]
kyb_response_id = candidates[0]["kyb_response_id"] # pass to /v3/kyb/select/const res = await fetch('https://verification.didit.me/v3/kyb/search/', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ country_code: 'GB', name: 'Tesco' }),
});
const data = await res.json();
const kybResponseId = data.kyb_registry.companies[0].kyb_response_id;<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/kyb/search/",
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([
'country_code' => 'GB',
'name' => 'Tesco',
'registration_number' => '<string>',
'search_type' => 'contains',
'vendor_data' => '<string>',
'metadata' => [
],
'webhook_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://verification.didit.me/v3/kyb/search/"
payload := strings.NewReader("{\n \"country_code\": \"GB\",\n \"name\": \"Tesco\",\n \"registration_number\": \"<string>\",\n \"search_type\": \"contains\",\n \"vendor_data\": \"<string>\",\n \"metadata\": {},\n \"webhook_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://verification.didit.me/v3/kyb/search/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"country_code\": \"GB\",\n \"name\": \"Tesco\",\n \"registration_number\": \"<string>\",\n \"search_type\": \"contains\",\n \"vendor_data\": \"<string>\",\n \"metadata\": {},\n \"webhook_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/kyb/search/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country_code\": \"GB\",\n \"name\": \"Tesco\",\n \"registration_number\": \"<string>\",\n \"search_type\": \"contains\",\n \"vendor_data\": \"<string>\",\n \"metadata\": {},\n \"webhook_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "0c7e9a40-3a13-4f7e-8a44-9d2e2f1c5b6a",
"kyb_registry": {
"companies": [
{
"kyb_response_id": "69aeeb95febb0f1704042259",
"name": "Tesco PLC",
"registration_number": "00445790",
"status": "active",
"type": "Public Limited Company",
"risk_level": null,
"fetch_status": "pending"
},
{
"kyb_response_id": "69aeeb95febb0f170404225a",
"name": "E-TESCO LTD",
"registration_number": "15168476",
"status": "active",
"type": "Private Limited Company",
"risk_level": null,
"fetch_status": "pending"
}
],
"pagination": {
"total": 2,
"page": 1,
"per_page": 25
},
"search_status": "resolved",
"search_resolved": true
},
"vendor_data": "company-1234",
"metadata": null,
"created_at": "2026-06-11T10:40:00.000000+00:00"
}webhook_url, Didit can return immediately while the provider resolves the search, then post the candidates to your callback URL when they are ready. The callback is unsigned by design, so you do not need to configure a webhook secret for this search notification. See the search callback payload example.
After you pick the correct kyb_response_id, call POST /v3/kyb/select/ (Lite), POST /v3/kyb/shareholders/ or POST /v3/kyb/ubo/ to retrieve the billable registry profile at the tier you need.
fetch_status is pending at search time and stays pending until you select that candidate — search only lists candidates, and select is what fetches the full profile. Do not poll search waiting for it to resolve.kyb_response_id is an opaque, ephemeral handle scoped to one search request: pass it back exactly as you received it and never parse it or derive anything from its contents, and expect repeating the same search to return new ids. Select the candidate promptly after searching, and use registration_number when you need a stable identifier for the company itself.Handle registry outages
If the registry provider is temporarily unavailable, the endpoint returns502 with a stable machine-readable code:
{
"detail": "The company registry provider is temporarily unavailable.",
"code": "kyb_registry_provider_unavailable"
}
400 and does not use this outage code.Authorizations
Body
ISO 3166-1 alpha-2 code of the country whose company registry to search. For example, GB. Where company registries operate at state or province level, append the ISO 3166-2 subdivision code as XX-YY: US-CA searches the California registry. United States searches always require the subdivision — a bare US is rejected. Case-insensitive; normalized to upper case.
10"GB"
Company name to search for. Either name or registration_number is required.
255"Tesco"
Registry registration number to search for. Either name or registration_number is required.
100Name-matching strategy applied by the registry search.
contains, start_with, fuzzy Your identifier for this lookup; echoed back and included in the webhook callback.
Free-form JSON; echoed back and included in the webhook callback.
Switches the search to asynchronous mode: the API returns immediately and POSTs an unsigned kyb.registry_search.resolved callback to this URL when the candidate list is ready.
500Response
Search accepted. Synchronous mode returns the resolved candidate list; webhook mode returns immediately (often search_status: "pending") and delivers the final list via the kyb.registry_search.resolved callback.
With webhook_url: the persisted search-request id, echoed as request_id in the kyb.registry_search.resolved callback. Without webhook_url: a transient correlation UUID (the search is not stored).
Show child attributes
Show child attributes
Echo of the vendor_data you sent.
Echo of the metadata you sent.