Sahal API allows authorised organisations and developers to integrate Sahal Digital Addresses into their own applications and systems.
The example code, its district, its coordinates and its verification status are a currently registered address's actual recorded values. The other fields show the response format only.
Look up a Sahal address by its code (e.g. MG-HD-B0002).
Get full address details including city, district and status.
Return GPS coordinates for a given Sahal address.
Check whether an address is approved, pending, or needs review.
Reverse-lookup: find the nearest Sahal address for a lat/lng pair.
Authorised organisations can query locations within their workspace.
Confirm that a Sahal address code exists and is current before onboarding a customer, dispatching a delivery or disbursing funds. Each call returns the building name, district, city, coordinates and verification status as JSON.
Authenticate with the API key issued to your organisation, sent in the x-api-key header.
Request
curl -X POST https://sahal-addresses.base44.app/functions/publicAddressApi \
-H "Content-Type: application/json" \
-H "x-api-key: sahal_live_your_key" \
-d '{"action":"verify","code":"MG-HD-B0002"}'Response 200
{
"status": "success",
"verified": true,
"code": "MG-HD-B0002",
"address_status": "approved",
"verification_status": "unverified",
"building": { "name": "Hodan Plaza", "type": "shop", "unit": "Floor 1 · Shop 4" },
"district": { "name": "Hodan", "code": "HD" },
"city": { "name": "Mogadishu", "code": "MG" },
"country": "Somalia",
"coordinates": { "latitude": 2.03666, "longitude": 45.30195 },
"plus_code": null,
"map_url": "https://www.google.com/maps/search/?api=1&query=2.03666,45.30195",
"organisation": "Example Fintech Ltd",
"checked_at": "2026-10-02T09:14:00.000Z"
}The example code, its coordinates and its map link are a currently registered address's actual recorded values. The other fields show the response format only. The top-level "verified" flag means one thing: the code exists and its approval status is approved. It is not document verification and not location verification. Document verification is reported separately as "verification_status", which reads "unverified" for this address, and this response makes no location verification claim.
API keys are issued to licensed fintechs, delivery operators and partner organisations. Only a hash of your key is stored, and an admin can revoke it at any time.
API keys are never exposed publicly. Access is granted to authorised organisations on request. All API calls are logged for audit and security purposes. To request API access, submit a pilot request or contact the Sahal team.
Documentation status: This page describes the Sahal API concept and planned functions. A public-facing production API endpoint is available on request for authorised partners. Existing internal services (address resolution, geocoding) are operational and power the Sahal platform.