API v1Landlords · Property Managers · Agencies

Build on Makazi

Integrate your property management system with Tanzania's largest rental marketplace.Unganisha mfumo wako wa mali na soko la Makazi

100Listings per call
SHA-256Key encryption
RESTJSON API

API Capabilities

Everything you need to manage properties at scale · Uwezo wa API

Quickstart

Get your first listing uploaded in 3 steps · Mwongozo wa Kuanza Haraka

1

Generate an API Key

Go to your API Management page and generate a new key. Copy immediately — shown only once.

2

Make Your First Request

bash
curl -X POST https://makazi.io/api/v1/listings/bulk \
  -H "Content-Type: application/json" \
  -H "X-API-Key: mkz_live_YOUR_KEY_HERE" \
  -d '{
    "listings": [
      {
        "title": "Penthouse ya Kisasa Masaki",
        "description": "3BR penthouse with ocean views...",
        "property_type": "apartment",
        "price": 4500000,
        "currency": "TZS",
        "bedrooms": 3,
        "bathrooms": 2,
        "amenities": ["pool", "gym", "parking"],
        "images": ["https://example.com/img1.jpg"]
      }
    ]
  }'
3

Check the Response

json
{
  "summary": {
    "total": 1,
    "succeeded": 1,
    "failed": 0,
    "test_mode": false
  },
  "results": [
    {
      "index": 0,
      "success": true,
      "listing_id": "a1b2c3d4-e5f6-..."
    }
  ]
}

API Reference

Rejea ya API

Endpoints

POST/api/v1/listings/bulk

Create up to 100 listings in a single request

GET/api/v1/listings/bulk

Check API key status and usage statistics

Authentication · Uthibitishaji

All requests require an X-API-Key header.

HeaderTypeDescription
X-API-KeystringYour mkz_live_ or mkz_test_ key
Content-TypestringMust be application/json

Listing Object Schema

FieldTypeReqDescription
titlestringreqListing title
descriptionstringreqFull description
property_typeenumreqapartment · house · studio · room · commercial · land
pricenumberreqMonthly rent amount
currencystringoptTZS (default) or USD
bedroomsintegeroptNumber of bedrooms
bathroomsintegeroptNumber of bathrooms
area_sqmnumberoptSize in m²
addressstringoptStreet address
latitudenumberoptGPS latitude
longitudenumberoptGPS longitude
amenitiesstring[]opte.g. pool, gym, parking
imagesstring[]optImage URLs
video_urlstringoptVideo tour URL
whatsapp_numberstringoptContact WhatsApp
location_iduuidoptLocations table ref

Rate Limits & Errors · Mipaka na Makosa

100

Listings per request

60

Requests per minute

StatusMeaning
201Created — All or some listings succeeded
400Bad Request — Invalid body or all listings failed
401Unauthorized — Missing or malformed API key
403Forbidden — Key revoked or insufficient tier
429Rate Limited — Too many requests

Code Examples

Mifano ya Msimbo

JSNode.js

javascript
import axios from 'axios';

const MAKAZI_API = 'https://makazi.io/api/v1';
const API_KEY = process.env.MAKAZI_API_KEY;

async function uploadListings(listings) {
  const { data } = await axios.post(
    `${MAKAZI_API}/listings/bulk`,
    { listings },
    { headers: { 'X-API-Key': API_KEY } }
  );

  console.log(`✅ ${data.summary.succeeded} uploaded`);
  console.log(`❌ ${data.summary.failed} failed`);
  return data;
}

PYPython

python
import requests

API_KEY = "mkz_live_YOUR_KEY_HERE"
BASE_URL = "https://makazi.io/api/v1"

response = requests.post(
    f"{BASE_URL}/listings/bulk",
    headers={"X-API-Key": API_KEY},
    json={
        "listings": [
            {
                "title": "Studio Apartment Mikocheni",
                "description": "Modern studio...",
                "property_type": "studio",
                "price": 800000,
                "bedrooms": 1,
                "bathrooms": 1,
            }
        ]
    }
)

data = response.json()
print(f"Uploaded: {data['summary']['succeeded']}")

Tenant Safety

Mwongozo wa Usalama wa Mpangaji

Verify Before You Pay

Thibitisha Kabla ya Kulipa

Always visit the property in person. Never send money before seeing the unit and meeting the landlord.

Use Official Receipts

Tumia Risiti Rasmi

Request a signed rental agreement and official receipt for all payments. Keep copies of everything.

Report Suspicious Listings

Ripoti Tangazo Tata

If a deal seems too good to be true, report it using the flag button or contact support.

Know Your Rights

Jua Haki Zako

Tanzanian law requires landlords to provide a written tenancy agreement. You have the right to a habitable dwelling.

Ready to build?

Get your Enterprise API key and start uploading properties to Tanzania's largest rental marketplace.Uko tayari kujenga?

Get Started