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

# Get a loan officer

GET https://api.modex.com/v1/resources/loan-officers/{loan_officer_id}

A single active loan officer.

**Includes:** `mortgage`, `non_qm`, `lender_beneficiaries`, `census`, `licenses`, `employment`, `federal_registrations` (with history), `contacts`.

| Field | Type | Description |
|---|---|---|
| `id` | UUID | Loan officer ID |
| `type` | string | Always `loan_officer` |
| `name` | string | Full name |
| `nmls_id` | integer, nullable | Individual NMLS ID |
| `office_locations` | array | Every office the loan officer is registered at |
| `office_locations[].type` | string | `branch` (an assigned branch office) or `main` (an employer's main office) |
| `office_locations[].employer` | object, nullable | `id`, `name`, `nmls_id` of the company, plus `branch` (`id`, `name`, `nmls_id`) for `branch` locations, or `null` for `main` |
| `office_locations[].address` | object | Office address |
| `has_contact_data` | boolean | Whether contact data exists to unlock. It doesn't mean you've unlocked it. |

Loan officers sponsored by several companies have one location per sponsorship. A `branch` location, when present, is listed first and is usually the best answer for where they work.

Reference: https://docs.modex.com/api-reference/mortgage-data/loan-officers/show-loan-officer

## Authentication

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

## Request

### Path parameters

- `loan_officer_id` (string, required)

### Query parameters

- `include` (string, optional) — Comma-separated extras: mortgage, licenses, census, non_qm, lender_beneficiaries, employment, contacts, federal_registrations. contacts is returned only after this loan officer has been unlocked. federal_registrations returns active and past flags plus registration history. lender_beneficiaries returns 403 when lender beneficiaries aren't enabled for your account.

## Response

### 200

OK

- `id` (string, optional) — Loan officer ID
- `type` (string, optional) — Always `loan_officer`
- `name` (string, optional) — Full name
- `nmls_id` (integer, optional) — Individual NMLS ID
- `office_locations` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaOfficeLocationsItems, optional) — Every office the loan officer is registered at
- `has_contact_data` (boolean, optional) — Whether contact data exists to unlock. It doesn't mean you've unlocked it.
- `mortgage` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaMortgage, optional) — Production over the rolling 12 months. Present when requested with `include=mortgage`.
- `licenses` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaLicenses, optional) — Active mortgage licenses and authorized states. Present with `include=licenses`.
- `employment` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaEmployment, optional) — Current employers, tenure, and employment history. Present with `include=employment`.
- `non_qm` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaNonQm, optional) — Non-QM production over the rolling 12 months. Present with `include=non_qm`.
- `lender_beneficiaries` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaLenderBeneficiaries, optional) — Production by lender over the rolling 12 months. Present with `include=lender_beneficiaries`.
- `census` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensus, optional) — Census-tract breakdown of transactions over the rolling 12 months. Present with `include=census`.
- `federal_registrations` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaFederalRegistrations, optional) — Federal registration status. Present with `include=federal_registrations`.
- `contacts` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaContacts, optional, nullable) — Phone numbers, emails, and websites. `null` until you unlock the record. Present with `include=contacts`.

## Errors

### 403 Forbidden Error

Forbidden

- `error` (ApiErrorError, required)

## Types

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaOfficeLocationsItems

- `type` (string, optional) — `branch` (an assigned branch office) or `main` (an employer's main office)
- `employer` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaOfficeLocationsItemsEmployer, optional) — `id`, `name`, `nmls_id` of the company, plus `branch` (`id`, `name`, `nmls_id`) for `branch` locations, or `null` for `main`
- `address` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaOfficeLocationsItemsAddress, optional) — Office address

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaMortgage

Production over the rolling 12 months. Present when requested with `include=mortgage`.

- `volume` (integer, optional) — Total loan amount, in dollars
- `units` (integer, optional) — Number of loans
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `transaction_type` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaMortgageTransactionTypeItems, optional) — Breakdown by purpose: Purchase, Refinance, Home Equity, Construction
- `loan_type` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaMortgageLoanTypeItems, optional) — Breakdown by loan type: Conventional, FHA, VA, USDA, Stand Alone Second, and others
- `property_type` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaMortgagePropertyTypeItems, optional) — Breakdown by property type: Single Family Residence, Condominium, Townhouse, and others

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaLicenses

Active mortgage licenses and authorized states. Present with `include=licenses`.

- `items` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaLicensesItemsItems, optional)
- `authorized_states` (list of string, optional) — Two-letter codes of states with an active license

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaEmployment

Current employers, tenure, and employment history. Present with `include=employment`.

- `current_employers` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaEmploymentCurrentEmployersItems, optional) — Current employers. A loan officer can have more than one.
- `tenure` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaEmploymentTenure, optional)
- `history` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaEmploymentHistoryItems, optional) — Every employer, newest start date first

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaNonQm

Non-QM production over the rolling 12 months. Present with `include=non_qm`.

- `volume` (integer, optional) — Total dollar amount over the window
- `units` (integer, optional) — Number of transactions over the window
- `average` (integer, optional) — Average dollar amount
- `transaction_type` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaNonQmTransactionTypeItems, optional)
- `loan_type` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaNonQmLoanTypeItems, optional)

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaLenderBeneficiaries

Production by lender over the rolling 12 months. Present with `include=lender_beneficiaries`.

- `items` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaLenderBeneficiariesItemsItems, optional) — One row per lender, sorted by `count`, highest first. Same row fields as `mortgage`, plus `id`.

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensus

Census-tract breakdown of transactions over the rolling 12 months. Present with `include=census`.

- `cra_poverty` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusCraPovertyItems, optional) — Tracts meeting the CRA poverty criterion
- `cra_unemployment` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusCraUnemploymentItems, optional) — Tracts meeting the CRA unemployment criterion
- `cra_distressed` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusCraDistressedItems, optional) — Distressed middle-income tracts
- `cra_remote_rural` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusCraRemoteRuralItems, optional) — Remote rural tracts
- `income_indicator` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusIncomeIndicatorItems, optional) — Tract income level. Sorted by `percent`, highest first.
- `population` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusPopulationItems, optional) — Tract population majority. Sorted by `percent`, highest first.

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaFederalRegistrations

Federal registration status. Present with `include=federal_registrations`.

- `items` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaFederalRegistrationsItemsItems, optional) — Loan officers only: registration history, latest first. Always empty for companies.
- `active` (boolean, optional) — Currently federally registered
- `past` (boolean, optional) — Has a past federal registration that has ended

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaContacts

Phone numbers, emails, and websites. `null` until you unlock the record. Present with `include=contacts`.

- `phone_numbers` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaContactsPhoneNumbersItems, optional) — `{type, value}` rows, e.g. `{"type": "mobile", "value": "(503) 555-0142"}`
- `emails` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaContactsEmailsItems, optional) — `{type, value}` rows
- `websites` (list of V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaContactsWebsitesItems, optional) — `{type, value}` rows

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

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaOfficeLocationsItemsEmployer

`id`, `name`, `nmls_id` of the company, plus `branch` (`id`, `name`, `nmls_id`) for `branch` locations, or `null` for `main`

- `id` (string, optional) — Modex ID (UUID)
- `name` (string, optional) — Name
- `nmls_id` (integer, optional) — NMLS ID
- `branch` (V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaOfficeLocationsItemsEmployerBranch, optional, nullable)

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaOfficeLocationsItemsAddress

Office address

- `street` (string, optional) — Street line
- `city` (string, optional) — Breakdown by city
- `state` (string, optional) — Two-letter state code
- `zipcode` (string, optional) — ZIP code
- `formatted` (string, optional) — Full single-line address

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaMortgageTransactionTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaMortgageLoanTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaMortgagePropertyTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaLicensesItemsItems

- `name` (string, optional) — License name as issued, e.g. `Mortgage Loan Originator License`
- `license_id` (string, optional, nullable) — State license number, when the regulator publishes one
- `regulator` (string, optional) — Issuing state or agency, e.g. `Washington`, `California - DFPI`
- `status_label` (string, optional) — License status, e.g. `Approved`
- `issued_date` (date, optional) — Original issue date
- `status_date` (date, optional) — Date of the latest status change
- `renewed_through` (integer, optional) — Year the license is renewed through
- `authorized_to_conduct_business` (boolean, optional) — Whether the license currently authorizes business

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaEmploymentCurrentEmployersItems

- `company_name` (string, optional) — Company name
- `company_nmls_id` (integer, optional)
- `start_date` (date, optional)
- `end_date` (any, optional)

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaEmploymentTenure

- `employment_years_length` (string, optional) — Total years in the industry, as a decimal string, e.g. `"9.62"`
- `current_job_length` (string, optional) — Years at the current job, as a decimal string
- `current_job_string` (string, optional) — Human-readable time at the current job, e.g. `"4 years, 5 months"`
- `jobs_last_decade` (integer, optional) — Number of employers in the last 10 years

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaEmploymentHistoryItems

- `company_name` (string, optional) — Company name
- `company_nmls_id` (integer, optional)
- `start_date` (date, optional)
- `end_date` (date, optional, nullable)

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaNonQmTransactionTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100
- `percent_sum_total` (double, optional) — This row's dollars as a share of **all** production (not just non-QM), 0–100
- `percent_count_total` (double, optional) — This row's loans as a share of **all** production, 0–100

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaNonQmLoanTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100
- `percent_sum_total` (double, optional) — This row's dollars as a share of **all** production (not just non-QM), 0–100
- `percent_count_total` (double, optional) — This row's loans as a share of **all** production, 0–100

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaLenderBeneficiariesItemsItems

- `id` (string, optional) — Modex's internal ID for this lender name association. It is **not** a lender beneficiary ID and can't be used with **Show Lender Beneficiary**. `null` for `Not provided`.
- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusCraPovertyItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (string, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusCraUnemploymentItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (string, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusCraDistressedItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (string, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusCraRemoteRuralItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (string, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusIncomeIndicatorItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (double, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaCensusPopulationItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (double, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaFederalRegistrationsItemsItems

- `regulator` (string, optional) — Federal regulator
- `start_date` (date, optional) — Registration start
- `end_date` (date, optional) — Registration end; `null` if ongoing

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaContactsPhoneNumbersItems

- `type` (string, optional) — Entry type, for example `mobile`, `office`, or `work`
- `value` (string, optional) — The phone number, email address, or URL

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaContactsEmailsItems

- `type` (string, optional) — Entry type, for example `mobile`, `office`, or `work`
- `value` (string, optional) — The phone number, email address, or URL

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaContactsWebsitesItems

- `type` (string, optional) — Entry type, for example `mobile`, `office`, or `work`
- `value` (string, optional) — The phone number, email address, or URL

### V1ResourcesLoanOfficersLoanOfficerIdGetResponsesContentApplicationJsonSchemaOfficeLocationsItemsEmployerBranch

- `id` (string, optional) — Modex ID (UUID)
- `name` (string, optional) — Name
- `nmls_id` (integer, optional) — NMLS ID

## Examples

### Base record

**Response**

```json
{
  "id": "c4e5f6a7-8b9c-4d0e-a1f2-3b4c5d6e7f80",
  "type": "loan_officer",
  "name": "Jordan Ellery",
  "nmls_id": 2345678,
  "office_locations": [
    {
      "type": "branch",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": {
          "id": "2b9d4e71-6c3a-4f8b-b2d1-7e8f9a0b1c22",
          "name": "Northstar Lending Group, LLC, Portland, OR",
          "nmls_id": 1234568
        }
      },
      "address": {
        "street": "500 SW Main Street, Suite 300",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97204",
        "formatted": "500 SW Main Street, Suite 300, Portland, OR 97204"
      }
    },
    {
      "type": "main",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": null
      },
      "address": {
        "street": "1200 NW Naito Parkway",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97209",
        "formatted": "1200 NW Naito Parkway, Portland, OR 97209"
      }
    }
  ],
  "has_contact_data": true
}
```

**SDK Code**

```python Base record
import requests

url = "https://api.modex.com/v1/resources/loan-officers/loan_officer_id"

querystring = {"include":"mortgage,licenses,census,non_qm,lender_beneficiaries,employment,contacts,federal_registrations"}

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

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

print(response.json())
```

```javascript Base record
const url = 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations';
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 Base record
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations"

	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 Base record
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")

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 Base record
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Base record
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Base record
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")! 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()
```

### With mortgage, licenses, employment

**Response**

```json
{
  "id": "c4e5f6a7-8b9c-4d0e-a1f2-3b4c5d6e7f80",
  "type": "loan_officer",
  "name": "Jordan Ellery",
  "nmls_id": 2345678,
  "office_locations": [
    {
      "type": "branch",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": {
          "id": "2b9d4e71-6c3a-4f8b-b2d1-7e8f9a0b1c22",
          "name": "Northstar Lending Group, LLC, Portland, OR",
          "nmls_id": 1234568
        }
      },
      "address": {
        "street": "500 SW Main Street, Suite 300",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97204",
        "formatted": "500 SW Main Street, Suite 300, Portland, OR 97204"
      }
    },
    {
      "type": "main",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": null
      },
      "address": {
        "street": "1200 NW Naito Parkway",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97209",
        "formatted": "1200 NW Naito Parkway, Portland, OR 97209"
      }
    }
  ],
  "has_contact_data": true,
  "mortgage": {
    "volume": 18450000,
    "units": 46,
    "average": 401087,
    "transaction_type": [
      {
        "label": "Purchase",
        "sum": 12610000,
        "count": 30,
        "average": 420333,
        "percent_sum": 68.3469,
        "percent_count": 65.2174
      },
      {
        "label": "Refinance",
        "sum": 5120000,
        "count": 13,
        "average": 393846,
        "percent_sum": 27.7507,
        "percent_count": 28.2609
      },
      {
        "label": "Home Equity",
        "sum": 720000,
        "count": 3,
        "average": 240000,
        "percent_sum": 3.9024,
        "percent_count": 6.5217
      }
    ],
    "loan_type": [
      {
        "label": "Conventional",
        "sum": 13980000,
        "count": 33,
        "average": 423636,
        "percent_sum": 75.7724,
        "percent_count": 71.7391
      },
      {
        "label": "FHA",
        "sum": 2870000,
        "count": 9,
        "average": 318889,
        "percent_sum": 15.5556,
        "percent_count": 19.5652
      },
      {
        "label": "VA",
        "sum": 1600000,
        "count": 4,
        "average": 400000,
        "percent_sum": 8.6721,
        "percent_count": 8.6957
      }
    ],
    "property_type": [
      {
        "label": "Single Family Residence",
        "sum": 15120000,
        "count": 37,
        "average": 408649,
        "percent_sum": 81.9512,
        "percent_count": 80.4348
      },
      {
        "label": "Condominium",
        "sum": 2210000,
        "count": 7,
        "average": 315714,
        "percent_sum": 11.9783,
        "percent_count": 15.2174
      },
      {
        "label": "Townhouse",
        "sum": 1120000,
        "count": 2,
        "average": 560000,
        "percent_sum": 6.0705,
        "percent_count": 4.3478
      }
    ]
  },
  "licenses": {
    "items": [
      {
        "name": "Mortgage Loan Originator License",
        "license_id": "MLO-2345678",
        "regulator": "Oregon",
        "status_label": "Approved",
        "issued_date": "2017-03-14",
        "status_date": "2026-01-02",
        "renewed_through": 2026,
        "authorized_to_conduct_business": true
      },
      {
        "name": "Mortgage Loan Originator License",
        "license_id": "MLO-2345678",
        "regulator": "Washington",
        "status_label": "Approved",
        "issued_date": "2017-04-02",
        "status_date": "2026-01-02",
        "renewed_through": 2026,
        "authorized_to_conduct_business": true
      },
      {
        "name": "Mortgage Loan Originator License",
        "license_id": null,
        "regulator": "Idaho",
        "status_label": "Approved",
        "issued_date": "2021-08-19",
        "status_date": "2026-01-02",
        "renewed_through": 2026,
        "authorized_to_conduct_business": true
      }
    ],
    "authorized_states": [
      "OR",
      "WA",
      "ID"
    ]
  },
  "employment": {
    "current_employers": [
      {
        "company_name": "Northstar Lending Group, LLC",
        "company_nmls_id": 1234567,
        "start_date": "2022-05-16"
      }
    ],
    "tenure": {
      "employment_years_length": "9.62",
      "current_job_length": "4.45",
      "current_job_string": "4 years, 5 months",
      "jobs_last_decade": 2
    },
    "history": [
      {
        "company_name": "Northstar Lending Group, LLC",
        "company_nmls_id": 1234567,
        "start_date": "2022-05-16",
        "end_date": null
      },
      {
        "company_name": "Evergreen Home Loans, Inc.",
        "company_nmls_id": 7654321,
        "start_date": "2017-03-06",
        "end_date": "2022-05-13"
      }
    ]
  }
}
```

**SDK Code**

```python With mortgage, licenses, employment
import requests

url = "https://api.modex.com/v1/resources/loan-officers/loan_officer_id"

querystring = {"include":"mortgage,licenses,census,non_qm,lender_beneficiaries,employment,contacts,federal_registrations"}

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

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

print(response.json())
```

```javascript With mortgage, licenses, employment
const url = 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations';
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 With mortgage, licenses, employment
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations"

	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 With mortgage, licenses, employment
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")

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 With mortgage, licenses, employment
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php With mortgage, licenses, employment
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp With mortgage, licenses, employment
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift With mortgage, licenses, employment
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")! 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()
```

### With non_qm, lender_beneficiaries, census, federal_registrations

**Response**

```json
{
  "id": "c4e5f6a7-8b9c-4d0e-a1f2-3b4c5d6e7f80",
  "type": "loan_officer",
  "name": "Jordan Ellery",
  "nmls_id": 2345678,
  "office_locations": [
    {
      "type": "branch",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": {
          "id": "2b9d4e71-6c3a-4f8b-b2d1-7e8f9a0b1c22",
          "name": "Northstar Lending Group, LLC, Portland, OR",
          "nmls_id": 1234568
        }
      },
      "address": {
        "street": "500 SW Main Street, Suite 300",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97204",
        "formatted": "500 SW Main Street, Suite 300, Portland, OR 97204"
      }
    },
    {
      "type": "main",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": null
      },
      "address": {
        "street": "1200 NW Naito Parkway",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97209",
        "formatted": "1200 NW Naito Parkway, Portland, OR 97209"
      }
    }
  ],
  "has_contact_data": true,
  "non_qm": {
    "volume": 1960000,
    "units": 3,
    "average": 653333,
    "transaction_type": [
      {
        "label": "Purchase",
        "sum": 1960000,
        "count": 3,
        "average": 653333,
        "percent_sum": 100,
        "percent_count": 100,
        "percent_sum_total": 10.6233,
        "percent_count_total": 6.5217
      }
    ],
    "loan_type": [
      {
        "label": "Conventional",
        "sum": 1960000,
        "count": 3,
        "average": 653333,
        "percent_sum": 100,
        "percent_count": 100,
        "percent_sum_total": 10.6233,
        "percent_count_total": 6.5217
      }
    ]
  },
  "lender_beneficiaries": {
    "items": [
      {
        "id": "40c1d2e3-f4a5-4b6c-8d7e-8f9a0b1c2d30",
        "label": "Northstar Lending Group, LLC",
        "sum": 15890000,
        "count": 40,
        "average": 397250,
        "percent_sum": 86.1247,
        "percent_count": 86.9565
      },
      {
        "id": "41c1d2e3-f4a5-4b6c-8d7e-8f9a0b1c2d31",
        "label": "Evergreen Wholesale Lending",
        "sum": 2560000,
        "count": 6,
        "average": 426667,
        "percent_sum": 13.8753,
        "percent_count": 13.0435
      }
    ]
  },
  "census": {
    "cra_poverty": [
      {
        "label": "Meets CRA Criteria",
        "percent": "4.35",
        "count": 2
      },
      {
        "label": "Does Not Meet Criteria",
        "percent": "95.65",
        "count": 44
      }
    ],
    "cra_unemployment": [
      {
        "label": "Meets CRA Criteria",
        "percent": "2.17",
        "count": 1
      },
      {
        "label": "Does Not Meet Criteria",
        "percent": "97.83",
        "count": 45
      }
    ],
    "cra_distressed": [
      {
        "label": "Meets CRA Criteria",
        "percent": "0.00",
        "count": 0
      },
      {
        "label": "Does Not Meet Criteria",
        "percent": "100.00",
        "count": 46
      }
    ],
    "cra_remote_rural": [
      {
        "label": "Meets CRA Criteria",
        "percent": "0.00",
        "count": 0
      },
      {
        "label": "Does Not Meet Criteria",
        "percent": "100.00",
        "count": 46
      }
    ],
    "income_indicator": [
      {
        "label": "Middle",
        "percent": 52.17,
        "count": 24
      },
      {
        "label": "Upper",
        "percent": 30.43,
        "count": 14
      },
      {
        "label": "Moderate",
        "percent": 13.04,
        "count": 6
      },
      {
        "label": "Low",
        "percent": 4.35,
        "count": 2
      },
      {
        "label": "Unknown",
        "percent": 0,
        "count": 0
      }
    ],
    "population": [
      {
        "label": "White",
        "percent": 82.61,
        "count": 38
      },
      {
        "label": "No Majority",
        "percent": 10.87,
        "count": 5
      },
      {
        "label": "Hispanic",
        "percent": 4.35,
        "count": 2
      },
      {
        "label": "Asian",
        "percent": 2.17,
        "count": 1
      },
      {
        "label": "Black",
        "percent": 0,
        "count": 0
      },
      {
        "label": "Native",
        "percent": 0,
        "count": 0
      },
      {
        "label": "Hawaiian",
        "percent": 0,
        "count": 0
      },
      {
        "label": "Other",
        "percent": 0,
        "count": 0
      }
    ]
  },
  "federal_registrations": {
    "items": [
      {
        "regulator": "OCC",
        "start_date": "2014-01-06",
        "end_date": "2016-11-30"
      }
    ],
    "active": false,
    "past": true
  }
}
```

**SDK Code**

```python With non_qm, lender_beneficiaries, census, federal_registrations
import requests

url = "https://api.modex.com/v1/resources/loan-officers/loan_officer_id"

querystring = {"include":"mortgage,licenses,census,non_qm,lender_beneficiaries,employment,contacts,federal_registrations"}

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

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

print(response.json())
```

```javascript With non_qm, lender_beneficiaries, census, federal_registrations
const url = 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations';
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 With non_qm, lender_beneficiaries, census, federal_registrations
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations"

	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 With non_qm, lender_beneficiaries, census, federal_registrations
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")

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 With non_qm, lender_beneficiaries, census, federal_registrations
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php With non_qm, lender_beneficiaries, census, federal_registrations
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp With non_qm, lender_beneficiaries, census, federal_registrations
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift With non_qm, lender_beneficiaries, census, federal_registrations
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")! 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()
```

### Contacts before unlock

**Response**

```json
{
  "id": "c4e5f6a7-8b9c-4d0e-a1f2-3b4c5d6e7f80",
  "type": "loan_officer",
  "name": "Jordan Ellery",
  "nmls_id": 2345678,
  "office_locations": [
    {
      "type": "branch",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": {
          "id": "2b9d4e71-6c3a-4f8b-b2d1-7e8f9a0b1c22",
          "name": "Northstar Lending Group, LLC, Portland, OR",
          "nmls_id": 1234568
        }
      },
      "address": {
        "street": "500 SW Main Street, Suite 300",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97204",
        "formatted": "500 SW Main Street, Suite 300, Portland, OR 97204"
      }
    },
    {
      "type": "main",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": null
      },
      "address": {
        "street": "1200 NW Naito Parkway",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97209",
        "formatted": "1200 NW Naito Parkway, Portland, OR 97209"
      }
    }
  ],
  "has_contact_data": true,
  "contacts": null
}
```

**SDK Code**

```python Contacts before unlock
import requests

url = "https://api.modex.com/v1/resources/loan-officers/loan_officer_id"

querystring = {"include":"mortgage,licenses,census,non_qm,lender_beneficiaries,employment,contacts,federal_registrations"}

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

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

print(response.json())
```

```javascript Contacts before unlock
const url = 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations';
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 Contacts before unlock
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations"

	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 Contacts before unlock
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")

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 Contacts before unlock
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Contacts before unlock
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Contacts before unlock
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Contacts before unlock
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")! 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()
```

### Contacts after unlock

**Response**

```json
{
  "id": "c4e5f6a7-8b9c-4d0e-a1f2-3b4c5d6e7f80",
  "type": "loan_officer",
  "name": "Jordan Ellery",
  "nmls_id": 2345678,
  "office_locations": [
    {
      "type": "branch",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": {
          "id": "2b9d4e71-6c3a-4f8b-b2d1-7e8f9a0b1c22",
          "name": "Northstar Lending Group, LLC, Portland, OR",
          "nmls_id": 1234568
        }
      },
      "address": {
        "street": "500 SW Main Street, Suite 300",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97204",
        "formatted": "500 SW Main Street, Suite 300, Portland, OR 97204"
      }
    },
    {
      "type": "main",
      "employer": {
        "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
        "name": "Northstar Lending Group, LLC",
        "nmls_id": 1234567,
        "branch": null
      },
      "address": {
        "street": "1200 NW Naito Parkway",
        "city": "Portland",
        "state": "OR",
        "zipcode": "97209",
        "formatted": "1200 NW Naito Parkway, Portland, OR 97209"
      }
    }
  ],
  "has_contact_data": true,
  "contacts": {
    "phone_numbers": [
      {
        "type": "mobile",
        "value": "(503) 555-0142"
      },
      {
        "type": "office",
        "value": "(503) 555-0100"
      }
    ],
    "emails": [
      {
        "type": "work",
        "value": "jordan.ellery@example.com"
      }
    ],
    "websites": [
      {
        "type": "personal",
        "value": "https://www.example.com/jordan-ellery"
      }
    ]
  }
}
```

**SDK Code**

```python Contacts after unlock
import requests

url = "https://api.modex.com/v1/resources/loan-officers/loan_officer_id"

querystring = {"include":"mortgage,licenses,census,non_qm,lender_beneficiaries,employment,contacts,federal_registrations"}

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

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

print(response.json())
```

```javascript Contacts after unlock
const url = 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations';
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 Contacts after unlock
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations"

	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 Contacts after unlock
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")

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 Contacts after unlock
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Contacts after unlock
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Contacts after unlock
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Contacts after unlock
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/loan-officers/loan_officer_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Cemployment%2Ccontacts%2Cfederal_registrations")! 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()
```