Getting Started

The LendingWise API lets your own systems read and manage loan files in LendingWise. It is a JSON REST API: you send a request with your API key, and every answer comes back in the same shape. The reference is published as OpenAPI 3.1, so you can generate a client from it with the tooling you already use.

This page takes you from nothing to a working call in a few minutes.

1. Create an API key

You create API keys yourself, in LendingWise.

Who can do it: a user with the Manager role in your company. Other roles do not see the API Keys section.

  1. In LendingWise, open Settings → Platform Settings → Integration Hub, then click API Keys in the Jump to bar.
  2. Click Generate New Key.
  3. Enter a label naming the system the key is for, such as "Zapier automation". It is required, up to 255 characters, and only helps you recognise the key later. The system using the key never sees it.
  4. Copy the API key and the Key ID, then click I have copied the key.

Good to know:

  • The key is shown only once. LendingWise stores a scrambled form of it and cannot show it to you again, so put it straight into your password manager or secret store. If you lose it, rotate it (step 10) or revoke it and create a new one.
  • Give each system its own key. You can create as many keys as you need, and revoking one does not affect the others. The API Keys section lists every key with its label, who created it, when it was created and last used, how many requests it made in the last 30 days, and its status. An active key has Rotate and Revoke buttons.
  • The Key ID is not secret. Quote it when you contact support, and never send the key itself. Copy it when you create the key, because the list does not show it again.
  • The key belongs to your company, not to a person. It keeps working if the person who created it leaves.
  • Sensitive personal data comes back partly hidden. SSNs, driver's licence numbers and EINs show only their last four digits (a value of four digits or fewer comes back in full). Dates of birth come back in full.

A key looks like this — a number, a pipe, then a long random string:

42|xJ3kQ9mPvR2sT7wY4bN6hL8dF1gC5aZ0eU3iO9pK7c4a8d09

Treat it exactly as you would a password.

2. Base URL

Every call goes to the same address:

https://api.lendingwise.com

Paths on this page are relative to it — for example GET /api/v4/loans is https://api.lendingwise.com/api/v4/loans.

3. Send the key

Put the key in the Authorization header of every request, after the word Bearer:

Authorization: Bearer 42|xJ3kQ9mPvR2sT7wY4bN6hL8dF1gC5aZ0eU3iO9pK7c4a8d09

That header is the only place the API accepts a key. Never put a key in a URL: URLs end up in server logs, proxy logs and browser history, none of which you can clear.

4. Make your first call

Check that the key works by asking who it belongs to:

curl -sS "https://api.lendingwise.com/api/v4/me" \
  -H "Authorization: Bearer $LENDINGWISE_API_KEY" \
  -H "Accept: application/json"

The answer names your company (companyId, companyName) and shows principalType api-key and accessScope company: the key can reach every loan file in your company.

Then read a loan file:

curl -sS "https://api.lendingwise.com/api/v4/loans?per_page=1" \
  -H "Authorization: Bearer $LENDINGWISE_API_KEY" \
  -H "Accept: application/json"

A 200 comes back shaped like this. The row is shortened; the reference lists every field.

{
  "data": [
    {
      "id": 123456,
      "branchId": 12,
      "branchID": 12,
      "brokerId": 3407,
      "loanBrokerID": 3407,
      "loanOfficerId": null,
      "loanOfficerID": null,
      "borrowerId": 654321,
      "borrowerName": "Jane Example",
      "borrowerEmail": "[email protected]",
      "loanNumber": "LN-000123",
      "primaryStatusId": 4,
      "primaryStatusLabel": "Lead",
      "active": true,
      "activeStatus": 1,
      "createdDate": "2026-08-01",
      "createdAt": "2026-08-01"
    }
  ],
  "meta": {
    "requestId": "01M0FS5FF3G8RQ2W6H4YKD7XZP",
    "timestamp": "2026-11-18T09:29:36-05:00",
    "pagination": {
      "page": 1,
      "perPage": 1,
      "total": 4566,
      "totalPages": 4566,
      "hasMore": true
    }
  }
}

The values above are examples. A few fields appear under two names, such as branchId and branchID. Use the first spelling in each pair (branchId, brokerId, loanOfficerId, active, createdDate); the other is being phased out, and its removal date will be announced in the changelog.

Page through loan files with page and per_page (1 to 100, 25 if you leave it out). The reply also carries a Deprecation header about the name per_page; on this route you can ignore it. With an API key, this list does not filter: search, archiveState and primaryStatusId have no effect.

If you would rather start with something smaller, GET /api/v4/loan-types returns your company's loan types and needs no parameters.

5. Read the response

Every response has the same two-part shape, so one handler can read them all.

Success

{ "data": <the result>, "meta": { "requestId": "…", "timestamp": "…" } }

meta also carries pagination on paged lists, and count on other lists that have rows. Two more entries appear only when they have something to say:

  • warnings: on a loan write, FIELD_IGNORED names certain fields you sent that were accepted but not stored. On a GET, UNKNOWN_PARAMETER names a query parameter the endpoint does not recognise, so it did not narrow the answer.
  • dryRun and effects: on a preview (step 9).

Error

{
  "error": { "code": "…", "message": "…" },
  "meta": { "requestId": "…", "timestamp": "…" }
}

Some errors add details, and validation errors add fields with a message for each field. Read requestId and timestamp from meta; copies inside error are also sent for now, but will be removed.

requestId is a unique 26-character ID on every response, also sent in the X-Request-Id header. Log it — quoting it to support identifies the exact call. timestamp is when the server received the request, in ISO 8601 with the US Eastern offset (-05:00 in winter, -04:00 in summer), like every date-time in a response body. If your code compares times, parse the offset rather than assuming Z.

6. Know what failure looks like

A missing or rejected key gets 401 with code: "UNAUTHENTICATED":

{
  "error": {
    "code": "UNAUTHENTICATED",
    "message": "invalid token",
    "requestId": "01M0FRRY3DZ9429JVZY070AJ3F",
    "timestamp": "2026-11-18T09:21:34-05:00"
  },
  "meta": {
    "requestId": "01M0FRRY3DZ9429JVZY070AJ3F",
    "timestamp": "2026-11-18T09:21:34-05:00"
  }
}
messageWhat happened
unauthorizedNo Authorization header was sent, or it was empty.
invalid tokenA key was sent but not accepted: it is mistyped, revoked or rotated.

invalid token is the same for every rejected key, so it does not say which part was wrong. Check that you copied the whole key, including the number and the pipe.

Other error codes, all in the same shape: BAD_REQUEST (400, or 413 when a body or file is too large), FORBIDDEN (403), RESOURCE_NOT_FOUND (404), METHOD_NOT_ALLOWED (405, with an Allow header listing the methods the path accepts), RESOURCE_CONFLICT (409), RESOURCE_GONE (410), UNSUPPORTED_MEDIA_TYPE (415), VALIDATION_FAILED (422), RATE_LIMITED (429), INTERNAL_ERROR (500), DEPENDENCY_FAILED (502).

7. How fast you can call

Each API key may make 120 calls a minute. The limit belongs to the key, not to the machine calling, so all your servers share it. A minute starts with your first call and lasts 60 seconds.

Every reply to a call made with your key shows where you stand:

HeaderWhat it means
X-RateLimit-LimitHow many calls you may make in the current minute.
X-RateLimit-RemainingHow many of those you have left.

Go over and the call is refused with 429 and error.code RATE_LIMITED. Nothing you sent is saved, and the reply says how long to wait:

{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Too Many Attempts.",
    "details": { "retryAfterSeconds": 41 },
    "requestId": "01K2Z9V8QK7YB3M4N5P6R7S8T9",
    "timestamp": "2026-11-18T09:21:34-05:00"
  },
  "meta": {
    "requestId": "01K2Z9V8QK7YB3M4N5P6R7S8T9",
    "timestamp": "2026-11-18T09:21:34-05:00"
  }
}

The Retry-After header carries the same number of seconds, and X-RateLimit-Reset gives the same moment as a Unix time in seconds (UTC).

When you see one, wait Retry-After seconds, then send the same request again — a refused call changed nothing, so it is safe to repeat. Don't retry immediately in a loop: that uses up your next minute's allowance as soon as it starts. For a batch job, watch X-RateLimit-Remaining and slow down before it reaches 0. If you need more than 120 calls a minute, ask support: a higher limit can be set for your key.

8. Retry a create safely

If a call times out, you cannot tell whether it worked. These calls accept an Idempotency-Key header, so a retry never creates a second record: POST /api/v4/loans, POST /api/v4/loans/{id}/properties, POST /api/v4/loans/{id}/members, POST /api/v4/document-types, POST /api/v4/loans/{id}/document-checklist/{slot}/files and POST /api/v4/tasks.

  • Send a value you generate, such as a UUID, at most 64 characters (a longer one is refused with 422).
  • Sending the same key with the same request again returns the original result with Idempotency-Replayed: true, and creates nothing.
  • Sending the same key with a different path, query string or body is refused with 409 RESOURCE_CONFLICT; error.details.reason says why. Use a new key for each new request.
  • Without the header, the call behaves normally.

A repeated call shows the record as it is now, not a copy of the first reply. Keys are remembered for at least 24 hours.

9. Preview a loan write

Add ?dryRun=true to POST /api/v4/loans or PATCH /api/v4/loans/{id} to see what the save would do without keeping it. The save runs and is then undone. The answer carries meta.dryRun: true and meta.effects, which lists what the save would set off.

  • Send it in the query string, spelled exactly dryRun, as true or false (1/0, yes/no and on/off also work, in any case). A different spelling, or dryRun on any other write, is refused with 422 so it can never turn into a real save by mistake.
  • A change that cannot be previewed safely is refused with 409 RESOURCE_CONFLICT and error.details.reason DRY_RUN_UNSAFE.

10. Key lifetime, rotation and revocation

Your key does not expire. There is nothing to refresh. A key stops working only when someone stops it, in the API Keys section:

  • Revoke — the key stops working on the very next request, which gets 401 invalid token.
  • Rotate — a new value is issued and the old one stops working at the same moment. The new value is shown once, and your integration fails until you deploy it. The label and Key ID stay the same.

To replace a key with no downtime, create a second key, deploy it, then revoke the old one.

11. Reads and writes

Every key can both read and write; there are no read-only keys. Reads are GET, HEAD and OPTIONS; everything else is a write.

Older sign-in method

Integrations built before API keys sign in with a client_id and client_secret at POST /api/v4/authenticate, then send the token that returns. That still works, but use an API key for anything new. The Authenticate section of the reference describes the older method.

Where to go next

The API Reference in the sidebar covers every endpoint: health checks, your own credential (GET /api/v4/me), loans and the pipeline summary, loan assignments, reference data, documents, custom fields, tasks and user profiles. Each one lists its parameters, response fields and error codes. Bring the key from step 1 and the header from step 3, and every one of them will answer.

Changes to the API are announced in the changelog.