API & Developer Docs
REST API for integrating PAMOJA Credit Scoring into your application. Python, JavaScript, and PHP SDKs available.
Base URL
http://localhost:8000
Production: https://api.pamoja.ai
Authentication
X-API-Key: pk_demo_zw_...
Include in every request header
API Connection Test
Verify your backend is running
Endpoints
Score bands (300–850)
| Band | Range | Typical Default Rate | Loan Limit | Suggested APR |
|---|---|---|---|---|
| Excellent | 740–850 | ~3–5% | up to $2,000 | 9% |
| Very Good | 660–739 | ~6–9% | up to $1,200 | 13% |
| Good | 580–659 | ~10–15% | up to $600 | 17% |
| Fair | 500–579 | ~16–22% | up to $300 | 22% |
| Poor | 300–499 | ~30–50% | up to $150 | 28% |
Local setup
bash
# 1. Backend cd backend pip install -r requirements.txt uvicorn main:app --reload --port 8000 # 2. Frontend (new terminal) cd frontend npm install npm run dev # App runs at http://localhost:3000 # API docs at http://localhost:8000/docs