GET
Verify a Ugandan voter by voter number, application ID, or NIN, plus first and last name.
/api/v1/ug/kyc/voterHeaders
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Your appβs secret key, sent as-is β not Bearer. |
AppId | Yes | The App ID from your dashboard. |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The Voter Number, Application ID, or National ID Number (NIN). |
first_name | string | Yes | The first name of the document holder. |
last_name | string | Yes | The last name of the document holder. |
Response
Returns anentity object with the voterβs polling details and name-match flags.
Errors
| Code | Meaning |
|---|---|
400 | Bad request β a required parameter is missing or malformed. |
401 | Unauthorized β check your key and AppId (no Bearer prefix). |
402 | Insufficient wallet balance. Fund your wallet. |
404 | No record found for the supplied identifier. |
424 | The upstream source was unavailable β retry shortly. |
429 | Too many requests β back off and retry. |
curl --request GET \
"https://api.dojah.io/api/v1/ug/kyc/voter?id=12345678&first_name=John&last_name=Musa" \
-H "Authorization: {{secret_key}}" \
-H "AppId: {{app_id}}"
const params = new URLSearchParams({
"id": "12345678",
"first_name": "John",
"last_name": "Musa",
});
const url = "https://api.dojah.io/api/v1/ug/kyc/voter?" + params;
const res = await fetch(url, {
headers: {
Authorization: process.env.DOJAH_SECRET_KEY,
AppId: process.env.DOJAH_APP_ID,
},
});
const data = await res.json();
import os, requests
res = requests.get(
"https://api.dojah.io/api/v1/ug/kyc/voter",
headers={
"Authorization": os.environ["DOJAH_SECRET_KEY"],
"AppId": os.environ["DOJAH_APP_ID"],
},
params={ "id": "12345678", "first_name": "John", "last_name": "Musa" },
)
data = res.json()
{
"entity": {
"voter_number": "12345678",
"first_name": "JOHN",
"last_name": "MUSA",
"gender": "M",
"village": "BIROBOKA",
"district": "KYANKWANZI",
"constituency": "BIROBOKA - KAYANJA PRIMARY SCHOOL",
"sub_county": "BUTEMBA COUNTY",
"parish": "KYANKWANZI TOWN COUNCIL",
"polling_station": "BIROBOKA WARD",
"is_first_name_match": true,
"is_last_name_match": true
}
}