---
title: "Lokta lending API | the agentic loan servicing platform"
description: "The Lokta API is a lending API for the loan after approval: borrowers, repayments, collections, accounting and partners, on the agentic loan servicing platform."
canonical: "https://lokta.ai/developers/"
last_updated: 2026-12-05
---

1.  [Home](https://lokta.ai/) 
2.  Developers

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.

[Read the API reference](https://developer.lokta.ai/reference) [Start with the quickstart](https://developer.lokta.ai/guides/quickstart/)

Endpoints

314

Sections

35

Guides

7

List loans, first page GET

```
curl 'https://{host}/lokta-lms/api/v1/loans?offset=0&limit=20' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: {tenant}'
```

```
{
  "totalFilteredRecords": 240,
  "pageItems": [ … ]
}
```

{host} is the API host you're given. The shape comes from the API conventions page, and you'll get credentials with an evaluation.

## Start here

The quickstart takes a borrower to a first repayment. Each of the other six finishes one job your team does every month.

1.  [**Quickstart: a borrower to a first repayment** You'll sign in, create a client, book and disburse a loan, then record its first repayment.](https://developer.lokta.ai/guides/quickstart/)
2.  [**Handle errors** What each status code means, what to do about it and when a retry is safe.](https://developer.lokta.ai/guides/handle-errors/)
3.  [**Repayments, refunds and write-offs** Every money movement on a loan is a command on its transactions, and you'll see how to undo one.](https://developer.lokta.ai/guides/loan-transactions/)
4.  [**Set up your ledger** Create ledger accounts, map financial activities to them, then post a balanced journal entry.](https://developer.lokta.ai/guides/accounting-setup/)
5.  [**Close a period** Run accruals and provisioning, check the entries, then close accounting so nothing else posts.](https://developer.lokta.ai/guides/close-the-period/)
6.  [**Onboard a sourcing partner** Create the partner, add its agreement, activate it and attribute a loan to it.](https://developer.lokta.ai/guides/onboard-sourcing-partner/)
7.  [**Run partner fees and record a payment** Work out what each partner earned, approve the draft invoice, then record the payment once it's made.](https://developer.lokta.ai/guides/partner-fees-and-invoices/)

## What the lending API covers

Eight groups, in the order the reference lists them. Each one opens its first section on developer.lokta.ai.

-   [**Borrowers** 1 section · 24 endpoints Customers: onboarding, identifiers, addresses, family members and search.](https://developer.lokta.ai/api/customers/)
-   [**Loans** 5 sections · 44 endpoints Loan accounts, loan products, loan charges, charges and tax on charges.](https://developer.lokta.ai/api/loan-accounts/)
-   [**Repayments and collections** 4 sections · 24 endpoints Loan transactions, delinquency buckets, interest pause and rescheduling.](https://developer.lokta.ai/api/loan-transactions/)
-   [**Accounting** 4 sections · 45 endpoints General ledger, journal entries, accounting setup, provisioning and accruals.](https://developer.lokta.ai/api/general-ledger/)
-   [**Sourcing partners** 3 sections · 55 endpoints Partners and their agreements, partner invoicing and loan attribution.](https://developer.lokta.ai/api/sourcing-partners/)
-   [**Platform administration** 9 sections · 53 endpoints Users, roles and permissions, staff, documents, payment types and reports.](https://developer.lokta.ai/api/user-management/)
-   [**Governance** 3 sections · 15 endpoints Maker-checker approvals, the audit trail, and hooks and events.](https://developer.lokta.ai/api/maker-checker/)
-   [**Advanced configuration** 6 sections · 54 endpoints Scheduler, data tables, business date, global configuration, search and tenant security.](https://developer.lokta.ai/api/scheduler/)

## 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](https://developer.lokta.ai/conventions).

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.

A state change is a command

```
POST /v1/loans/{loanId}?command=approve
POST /v1/loans/{loanId}?command=disburse
POST /v1/loans/{loanId}/transactions?command=repayment
```

Every error uses one envelope

```
{
  "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.

-   OpenAPI [OpenAPI document](https://developer.lokta.ai/openapi.curated.json) The OpenAPI 3.0.3 spec the reference pages are built from. Import it into your own tooling.
-   Postman [Postman collection](https://developer.lokta.ai/lokta.postman_collection.json) Every endpoint as a Postman v2.1 collection, grouped the way the reference is.
-   Postman [Postman workspace](https://www.postman.com/lokta-loan-management-software-api/lokta-api/overview) It'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.txt [llms.txt and llms-full.txt](https://developer.lokta.ai/llms.txt) The reference as Markdown, so an agent can read one page per endpoint or the whole thing in a single file.
-   RFC 9727 [API catalog](https://lokta.ai/.well-known/api-catalog) lokta.ai's machine-readable pointer to the reference and its spec.
-   WebMCP [Browser agent tools](https://lokta.ai/agents.md) On 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.

[Talk to us](https://lokta.ai/contact/?ref=dev-access&intent=api)

Building a lending app on Lokta? [Loan Management for fintech lenders](https://lokta.ai/products/loan-management-system/for-fintech-lenders/) covers the API-first product. Connecting payment, bureau or accounting systems? Start with [integrations](https://lokta.ai/integrations/).

API questions

## 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.
    
    [See pricing](https://lokta.ai/pricing/)
    
-   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.
    
    [Open the API reference](https://developer.lokta.ai/reference)
    

Connect your app

## 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.

[Talk to us](https://lokta.ai/contact/?ref=dev-ctaband&intent=api)

Keep borrower data and credentials out of the first message.
