5-minute Quick Start
Grab an instant sandbox key (no signup) or register a permanent Starter/Growth account on the marketplace to get both live and sandbox keys.
# One-click sandbox key — free, no signup curl -X POST 'https://api.loan4bank.com/v3/marketplace/sandbox/quick-key' | jq .sandbox_key
Sandbox keys are prefixed `l4b_sandbox_…` and use mock data safe for CI. Live keys start with `l4b_live_…` and hit production partners. Base URL is identical — only the key changes.
# Same URL, different key — the platform routes automatically BASE=https://api.loan4bank.com/v3 export L4B_API_KEY='l4b_sandbox_…' # or l4b_live_…
Every endpoint requires `X-API-Key`. This EMI-calculator call works with a Free-plan sandbox key out of the box.
curl -X POST "$BASE/marketplace/v1/emi-calculator" \
-H "X-API-Key: $L4B_API_KEY" \
-H "Content-Type: application/json" \
-d '{"principal":1000000,"annual_rate_pct":10.5,"tenure_months":60}'All responses follow `{status, message, data}`. Non-2xx codes carry a `detail` field with the human-readable reason. See the Errors page for the full L4B-XXX code table.
// Standard success
{ "status": "SUCCESS", "message": "ok", "data": { "emi": 21493.9 } }
// Plan gate (402)
{ "detail": "This API requires the 'starter' plan or higher." }
// Rate-limit (429) → back off Retry-After seconds
{ "detail": "Rate-limited (60 / minute burst)." }Before flipping the switch from sandbox → live keys in production:
- Rotate any hard-coded sandbox keys — never ship them.
- Move `L4B_API_KEY` to your secret manager (Vault, SSM, Doppler).
- Register at least one webhook endpoint with signature verification.
- Add retry-with-backoff on 429 and 5xx responses.
- Wire the `rate_limit.hit` and `quota.exhausted` webhook events into your on-call alerts.
- Subscribe to the status page for the endpoints you consume.
Video walkthrough
What's next?
Everything you need to know before your first LOAN4BANK API call
The LOAN4BANK API is a single JSON-over-HTTPS surface that exposes India's regulated financial rails as clean, batteries-included endpoints — loan origination, KYC and video-KYC, credit-decisioning, EMI and interest computations, real-time gold-loan pricing, wallet and BBPS payments, corporate rewards, referrals and analytics. Everything is versioned under `/v1`, authenticated with a single `X-API-Key`, and returns predictable `{status, message, data}` envelopes so the same client library can call every endpoint without special-casing.
You do not need a company, a bank tie-up or a signed NDA to start building. The one-click sandbox flow issues a scoped key that hits fully-instrumented mock data — the same request and response shapes as production, but every partner call is replaced with deterministic fixtures. That means you can wire an entire loan-application UI end-to-end, run it in CI, and demo it to internal stakeholders before you ever apply for a live key. When you're ready to go live, swap the key prefix from `l4b_sandbox_` to `l4b_live_` and you're done — the base URL, request shapes, and error contracts are byte-identical.
For production integrations we strongly recommend routing calls through the official SDK for your language (JavaScript, TypeScript, Python, PHP, Java, Go) rather than raw `fetch`. The SDKs handle exponential-backoff retries on 429 and 5xx, HMAC signing for the endpoints that require it, streaming for long-running video-KYC operations, and typed responses so your compiler catches breaking changes at build time. All SDKs ship with the same version cadence as the API itself and are released within 24 hours of a MINOR bump.
Every step in this quick-start maps to a chapter in the API reference: Step 3 (first request) corresponds to `POST /v1/marketplace/v1/emi-calculator`, Step 4 (error handling) links to the L4B-XXX code table on the Errors page, and Step 5 (go-live) is expanded into the Production Readiness checklist under Support. Follow the chapters in order and you'll ship a live integration inside a business day.
Frequently asked questions
How long does it take to build an integration with LOAN4BANK APIs?
Do I need to sign a partnership agreement before using the sandbox?
What is the difference between sandbox and live LOAN4BANK API keys?
Which programming languages does LOAN4BANK officially support?
How do I test LOAN4BANK webhooks locally during development?
Ready to graduate from Quick Start? The API Reference has every endpoint's request and response schema, and the SDK pages have copy-paste snippets for the language you already ship in.