S
StaffLoansapp
API & Architecture Documentation
Complete reference for developers and operators
/api/loans
List all loans
GET
Authentication
Authorization: Bearer tokenResponse
{ loans: [], total: number, page: number }Rate Limit: 1000 requests/minute
Timeout: 30 seconds
Quick Start
1. Authentication
POST /api/auth/login { email, password }
Returns: {token, user}
Use in all requests: Authorization: Bearer {token}2. Rate Limits
Per IP: 1000 req/min | Per User: 100 req/min | Per Endpoint: varies
3. Error Handling
All errors return JSON: {error, message, code, timestamp}