Developers · the agentic loan servicing platform
The Lokta API
A lending API for the loan after approval: borrowers, loan accounts, repayments, delinquency, accounting and sourcing partners. Every endpoint is documented, and the guides walk you through real tasks.
- Endpoints
- 314
- Sections
- 35
- Guides
- 7
curl 'https://{host}/lokta-lms/api/v1/loans?offset=0&limit=20' \
-u '{username}:{password}' \
-H 'Tenant-Identifier: {tenant}'{
"totalFilteredRecords": 240,
"pageItems": [ … ]
}Start here
The quickstart takes a borrower to a first repayment. Each of the other six finishes one job your team does every month.
- Quickstart: a borrower to a first repaymentYou'll sign in, create a client, book and disburse a loan, then record its first repayment.
- Handle errorsWhat each status code means, what to do about it and when a retry is safe.
- Repayments, refunds and write-offsEvery money movement on a loan is a command on its transactions, and you'll see how to undo one.
- Set up your ledgerCreate ledger accounts, map financial activities to them, then post a balanced journal entry.
- Close a periodRun accruals and provisioning, check the entries, then close accounting so nothing else posts.
- Onboard a sourcing partnerCreate the partner, add its agreement, activate it and attribute a loan to it.
- Run partner fees and record a paymentWork out what each partner earned, approve the draft invoice, then record the payment once it's made.
What the lending API covers
Eight groups, in the order the reference lists them. Each one opens its first section on developer.lokta.ai.
- Borrowers1 section · 24 endpointsCustomers: onboarding, identifiers, addresses, family members and search.
- Loans5 sections · 44 endpointsLoan accounts, loan products, loan charges, charges and tax on charges.
- Repayments and collections4 sections · 24 endpointsLoan transactions, delinquency buckets, interest pause and rescheduling.
- Accounting4 sections · 45 endpointsGeneral ledger, journal entries, accounting setup, provisioning and accruals.
- Sourcing partners3 sections · 55 endpointsPartners and their agreements, partner invoicing and loan attribution.
- Platform administration9 sections · 53 endpointsUsers, roles and permissions, staff, documents, payment types and reports.
- Governance3 sections · 15 endpointsMaker-checker approvals, the audit trail, and hooks and events.
- Advanced configuration6 sections · 54 endpointsScheduler, data tables, business date, global configuration, search and tenant security.
Authentication, tenants and idempotency
Six conventions to know before your first call. You'll find the rest, dates and locale included, on the conventions page.
- HTTP Basic
- You send an application user's credentials on every request. There's no session or token to keep alive.
- Tenant header
- Every request names its tenant in Tenant-Identifier. If the header's missing or wrong, the request fails before sign-in is even checked.
- Commands
- A state change is a POST with ?command=, such as approve, disburse or repayment. You don't send a bare update.
- Pagination
- List endpoints take offset and limit. Paged responses come back as totalFilteredRecords plus pageItems.
- Errors
- Failures share one envelope. Each error names the parameter and a stable code you can branch your handling on, and a 403 tells you which permission is missing.
- Idempotency-Key
- Send it wherever the reference lists it; four partner endpoints require it. Creating a partner or revising its terms with a reused key and a new body returns 409. For other writes, read the resource back before you retry.
POST /v1/loans/{loanId}?command=approve
POST /v1/loans/{loanId}?command=disburse
POST /v1/loans/{loanId}/transactions?command=repayment{
"httpStatusCode": "400",
"defaultUserMessage": "Validation errors exist.",
"errors": [{
"parameterName": "dueDate",
"userMessageGlobalisationCode":
"validation.msg.loancharge.dueDate.cannot.be.blank"
}]
}OpenAPI, Postman and llms.txt
It's the same reference, in forms your tools and agents can read without a browser.
- OpenAPIOpenAPI documentThe OpenAPI 3.0.3 spec the reference pages are built from. Import it into your own tooling.
- PostmanPostman collectionEvery endpoint as a Postman v2.1 collection, grouped the way the reference is.
- PostmanPostman workspaceIt's the same collection, on the Postman API Network. Fork it. Once the evaluation access below gives you credentials, put the host, tenant, username and password we send you into the collection variables, pick an endpoint from any of the 8 groups, and send your first request without leaving Postman.
- llms.txtllms.txt and llms-full.txtThe reference as Markdown, so an agent can read one page per endpoint or the whole thing in a single file.
- RFC 9727API cataloglokta.ai's machine-readable pointer to the reference and its spec.
- WebMCPBrowser agent toolsOn lokta.ai, search_api_docs and read_api_doc let a browser agent search and read the reference. They don't call the API.
Getting API access
You can read the reference today. For credentials, talk to us: tell us your loan products and the workflows you want to connect. If the evaluation moves forward, you'll get a dedicated cloud sandbox with a loan product configured and test accounts.
Expect a short conversation before your first call.
Questions developers ask
What the API covers, and how you'd get access to it.
What can I build with the Lokta lending API?
You can create borrowers, book and disburse loans, post repayments, refunds and write-offs, manage delinquency buckets, post journal entries, close accounting periods and pay sourcing partners. Your own app can call any endpoint the reference lists.
Does the API cover underwriting and credit decisions?
No. Underwriting and the credit decision stay in your LOS. The API creates the borrower and loan record and carries the loan from approval through disbursal, repayment and closure. Loan Origination is on the Lokta roadmap.
How do I authenticate?
You send HTTP Basic credentials for an application user on every request, plus the Tenant-Identifier header. The user's roles decide which endpoints it can call. Call one without the permission and you'll get a 403 that names it.
Is there a sandbox?
Yes, once an evaluation moves forward. You'll get a dedicated cloud sandbox with a loan product configured, test accounts and API access.
Where's the full API reference?
It's at developer.lokta.ai, with a page for each of the 314 endpoints and a Markdown copy of each, plus the OpenAPI document and the Postman collection.
Bring the endpoints you need.
Tell us which workflows your app or back office has to call, and where your team still works by hand. We'll scope the integration on loans like yours.
Keep borrower data and credentials out of the first message.