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
List loans, first pageGET
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.

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

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

Talk to us
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.

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

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.

Keep borrower data and credentials out of the first message.