> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.modex.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.modex.com/_mcp/server.

# Look up an NMLS ID

GET https://api.modex.com/v1/resources/nmls/{nmls_id}

Finds the loan officer, branch, or company that owns an NMLS ID, and returns the URI to fetch it.

**Path:** `nmls_id`, digits only. Leading zeros are ignored.

| Field | Type | Description |
|---|---|---|
| `id` | UUID | Modex ID of the matching record |
| `type` | string | `loan_officer`, `branch`, or `company` |
| `name` | string | Record name |
| `nmls_id` | integer | The NMLS ID |
| `uri` | string | Full URL of the record's detail endpoint |

If more than one active record carries the same NMLS ID, a loan officer wins over a branch, and a branch over a company. Returns 404 when nothing active matches, the match is outside your state restrictions, or the ID isn't numeric.

Saves the ID to `loan_officer_id`, `branch_id`, or `company_id` based on `type`.

Reference: https://docs.modex.com/api-reference/start-here/resolve-nmls-id

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `nmls_id` (string, required)

## Response

### 200

OK

- `id` (string, optional) — Modex ID of the matching record
- `type` (string, optional) — `loan_officer`, `branch`, or `company`
- `name` (string, optional) — Record name
- `nmls_id` (integer, optional) — The NMLS ID
- `uri` (string, optional) — Full URL of the record's detail endpoint

## Errors

### 401 Unauthorized Error

Unauthorized

- `error` (ApiErrorError, required)

### 404 Not Found Error

Not Found

- `error` (ApiErrorError, required)

### 429 Too Many Requests Error

Too Many Requests

- `error` (ApiErrorError, required)

## Types

### ApiErrorError

- `type` (string, required) — Error category: invalid_request, authentication_error, permission_error, not_found, rate_limit_error, or api_error.
- `code` (string, required) — Specific error code. Same as `type`, except `validation_error` for request-body validation failures.
- `message` (string, required) — Human-readable explanation.
- `details` (map from string to list of string, optional) — Validation errors only: each invalid field mapped to its messages.

## Examples

### Loan officer

**Response**

```json
{
  "id": "c4e5f6a7-8b9c-4d0e-a1f2-3b4c5d6e7f80",
  "type": "loan_officer",
  "name": "Jordan Ellery",
  "nmls_id": 2345678,
  "uri": "https://api.modex.com/v1/resources/loan-officers/c4e5f6a7-8b9c-4d0e-a1f2-3b4c5d6e7f80"
}
```

**SDK Code**

```python Loan officer
import requests

url = "https://api.modex.com/v1/resources/nmls/nmls_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Loan officer
const url = 'https://api.modex.com/v1/resources/nmls/nmls_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Loan officer
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.modex.com/v1/resources/nmls/nmls_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Loan officer
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/nmls/nmls_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Loan officer
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/nmls/nmls_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Loan officer
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/nmls/nmls_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Loan officer
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/nmls/nmls_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Loan officer
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/nmls/nmls_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Company

**Response**

```json
{
  "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
  "type": "company",
  "name": "Northstar Lending Group, LLC",
  "nmls_id": 1234567,
  "uri": "https://api.modex.com/v1/resources/companies/8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60"
}
```

**SDK Code**

```python Company
import requests

url = "https://api.modex.com/v1/resources/nmls/nmls_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Company
const url = 'https://api.modex.com/v1/resources/nmls/nmls_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Company
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.modex.com/v1/resources/nmls/nmls_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Company
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/nmls/nmls_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Company
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/nmls/nmls_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Company
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/nmls/nmls_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Company
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/nmls/nmls_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Company
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/nmls/nmls_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```