POST
Verify a Ugandan mobile subscriberβs registered name against the telcoβs records.
/api/v1/ug/kyc/telcoHeaders
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Your appβs secret key, sent as-is β not Bearer. |
AppId | Yes | The App ID from your dashboard. |
Content-Type | Yes | application/json |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | First name of the subscriber. |
last_name | string | Yes | Last name of the subscriber. |
phone_number | string | Yes | The phone number of the subscriber. |
Response
Returns anentity object with the verified subscriber name and a percentage name-match.
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 -X POST "https://api.dojah.io/api/v1/ug/kyc/telco" \
-H "Authorization: {{secret_key}}" \
-H "AppId: {{app_id}}" \
-H "Content-Type: application/json" \
-d '{
"first_name": "John",
"last_name": "Musa",
"phone_number": "+25612345678"
}'
const res = await fetch("https://api.dojah.io/api/v1/ug/kyc/telco", {
method: "POST",
headers: {
Authorization: process.env.DOJAH_SECRET_KEY,
AppId: process.env.DOJAH_APP_ID,
"Content-Type": "application/json",
},
body: JSON.stringify({
first_name: "John",
last_name: "Musa",
phone_number: "+25612345678",
}),
});
const data = await res.json();
import os, requests
res = requests.post(
"https://api.dojah.io/api/v1/ug/kyc/telco",
headers={
"Authorization": os.environ["DOJAH_SECRET_KEY"],
"AppId": os.environ["DOJAH_APP_ID"],
},
json={
"first_name": "John",
"last_name": "Musa",
"phone_number": "+25612345678",
},
)
data = res.json()
{
"entity": {
"first_name": "John",
"last_name": "Musa",
"name_check_error": null,
"network_name": "",
"percentage_name_match": 100,
"phone_is_mm_registered": false,
"phone_number": "+25612345678",
"verified_name": "John Doe Musa"
}
}