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)

BandRangeTypical Default RateLoan LimitSuggested APR
Excellent740–850~3–5%up to $2,0009%
Very Good660–739~6–9%up to $1,20013%
Good580–659~10–15%up to $60017%
Fair500–579~16–22%up to $30022%
Poor300–499~30–50%up to $15028%

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