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

# Includes and field reference

Company, branch, loan officer, lender beneficiary, real estate agent, and real estate office records, plus NMLS ID lookup.

Inactive records and records outside your state restrictions return 404. Lender beneficiary and real estate endpoints return 403 when that data isn't enabled for your account.

## Base records

**Address** (companies, branches, offices, loan officer office locations):

| Field       | Type             | Description              |
| ----------- | ---------------- | ------------------------ |
| `street`    | string, nullable | Street line              |
| `city`      | string, nullable | City                     |
| `state`     | string, nullable | Two-letter state code    |
| `zipcode`   | string, nullable | ZIP code                 |
| `formatted` | string, nullable | Full single-line address |

**Company / branch summary** (`company`, `employer`, `branch` objects): `id` (UUID), `name`, `nmls_id` (integer, nullable).

## Includes

| Include                 | Company | Branch |   Loan officer   | Lender beneficiary | RE agent | RE office |
| ----------------------- | :-----: | :----: | :--------------: | :----------------: | :------: | :-------: |
| `mortgage`              |    ✓    |    ✓   |         ✓        |          ✓         |   ✓ \*   |    ✓ \*   |
| `non_qm`                |    ✓    |    ✓   |         ✓        |                    |          |           |
| `lender_beneficiaries`  |    ✓    |    ✓   |         ✓        |                    |          |           |
| `census`                |    ✓    |    ✓   |         ✓        |          ✓         |     ✓    |     ✓     |
| `licenses`              |    ✓    |    ✓   |         ✓        |                    |          |           |
| `trade_names`           |    ✓    |    ✓   |                  |                    |          |           |
| `federal_registrations` |    ✓    |        | ✓ (with history) |                    |          |           |
| `employment`            |         |        |         ✓        |                    |          |           |
| `real_estate`           |         |        |                  |                    |     ✓    |     ✓     |
| `contacts`              |         |        |         ✓        |                    |     ✓    |           |

\* For agents and offices, `mortgage` has a different shape (see **Real estate `mortgage`** below).

Roster endpoints accept the same includes as the matching single-record endpoint. Asking for an include a record type doesn't support returns **400** `The include [name] is not supported.`

### `mortgage` (companies, branches, loan officers, lender beneficiaries)

Recorded loan production over the rolling 12-month window.

| Field              | Type              | Description                                                                             |
| ------------------ | ----------------- | --------------------------------------------------------------------------------------- |
| `volume`           | integer, nullable | Total loan amount, in dollars                                                           |
| `units`            | integer, nullable | Number of loans                                                                         |
| `average`          | integer, nullable | Average loan amount, in dollars                                                         |
| `transaction_type` | array             | Breakdown by purpose: Purchase, Refinance, Home Equity, Construction                    |
| `loan_type`        | array             | Breakdown by loan type: Conventional, FHA, VA, USDA, Stand Alone Second, and others     |
| `property_type`    | array             | Breakdown by property type: Single Family Residence, Condominium, Townhouse, and others |

Each breakdown row:

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

Rows are sorted by `count`, highest first.

### `non_qm` (companies, branches, loan officers)

Same as `mortgage`, limited to non-QM loans, with no `property_type` breakdown. Each row adds:

| Field                 | Type   | Description                                                                  |
| --------------------- | ------ | ---------------------------------------------------------------------------- |
| `percent_sum_total`   | number | This row's dollars as a share of **all** production (not just non-QM), 0–100 |
| `percent_count_total` | number | This row's loans as a share of **all** production, 0–100                     |

### `lender_beneficiaries` (companies, branches, loan officers)

Production by the lender named on the loan (the beneficiary), over the rolling 12 months. Returns 403 when lender beneficiary data isn't enabled for your account.

| Field        | Type           | Description                                                                                                                                                                |
| ------------ | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `items`      | array          | One row per lender, sorted by `count`, highest first. Same row fields as `mortgage`, plus `id`.                                                                            |
| `items[].id` | UUID, nullable | 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`. |

Large companies can have hundreds of rows.

### `census` (all resource types)

Where the record's loans (or, for real estate, transactions) were made, by census tract, over the rolling 12 months. Each list is rows of `{label, percent, count}`, where `count` is the number of transactions in matching tracts and `percent` is that count's share, 0–100.

| Field              | Rows                                                                                | Description                                                    |
| ------------------ | ----------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| `cra_poverty`      | `Meets CRA Criteria`, `Does Not Meet Criteria`                                      | Tracts meeting the CRA poverty criterion                       |
| `cra_unemployment` | same                                                                                | Tracts meeting the CRA unemployment criterion                  |
| `cra_distressed`   | same                                                                                | Distressed middle-income tracts                                |
| `cra_remote_rural` | same                                                                                | Remote rural tracts                                            |
| `income_indicator` | `Low`, `Moderate`, `Middle`, `Upper`, `Unknown`                                     | Tract income level. Sorted by `percent`, highest first.        |
| `population`       | `White`, `Hispanic`, `Black`, `Asian`, `Native`, `Hawaiian`, `Other`, `No Majority` | Tract population majority. Sorted by `percent`, highest first. |

> In the four `cra_*` lists, `percent` is a **string** (`"4.35"`). In `income_indicator` and `population` it's a **number**. Convert before doing math.

Returns an empty object `{}` when there's no census data for the window.

### `licenses` (companies, branches, loan officers)

Active mortgage licenses.

| Field                                    | Type              | Description                                                     |
| ---------------------------------------- | ----------------- | --------------------------------------------------------------- |
| `items[].name`                           | string            | License name as issued, e.g. `Mortgage Loan Originator License` |
| `items[].license_id`                     | string, nullable  | State license number, when the regulator publishes one          |
| `items[].regulator`                      | string            | Issuing state or agency, e.g. `Washington`, `California - DFPI` |
| `items[].status_label`                   | string            | License status, e.g. `Approved`                                 |
| `items[].issued_date`                    | date, nullable    | Original issue date                                             |
| `items[].status_date`                    | date, nullable    | Date of the latest status change                                |
| `items[].renewed_through`                | integer, nullable | Year the license is renewed through                             |
| `items[].authorized_to_conduct_business` | boolean           | Whether the license currently authorizes business               |
| `authorized_states`                      | array of strings  | Two-letter codes of states with an active license               |

### `trade_names` (companies, branches)

| Field               | Type             | Description                                     |
| ------------------- | ---------------- | ----------------------------------------------- |
| `trade_names`       | array of strings | Current trade names (DBAs)                      |
| `prior_trade_names` | array of strings | Trade names used previously. May repeat a name. |

### `federal_registrations` (companies, loan officers)

Federal (bank) registration, for originators registered through a federally regulated institution rather than state-licensed.

| Field                | Type             | Description                                                                         |
| -------------------- | ---------------- | ----------------------------------------------------------------------------------- |
| `active`             | boolean          | Currently federally registered                                                      |
| `past`               | boolean          | Has a past federal registration that has ended                                      |
| `items`              | array            | Loan officers only: registration history, latest first. Always empty for companies. |
| `items[].regulator`  | string, nullable | Federal regulator                                                                   |
| `items[].start_date` | date             | Registration start                                                                  |
| `items[].end_date`   | date, nullable   | Registration end; `null` if ongoing                                                 |

### `employment` (loan officers)

| Field                            | Type              | Description                                                        |
| -------------------------------- | ----------------- | ------------------------------------------------------------------ |
| `current_employers`              | array             | Current employers. A loan officer can have more than one.          |
| `tenure.employment_years_length` | string, nullable  | Total years in the industry, as a decimal string, e.g. `"9.62"`    |
| `tenure.current_job_length`      | string, nullable  | Years at the current job, as a decimal string                      |
| `tenure.current_job_string`      | string, nullable  | Human-readable time at the current job, e.g. `"4 years, 5 months"` |
| `tenure.jobs_last_decade`        | integer, nullable | Number of employers in the last 10 years                           |
| `history`                        | array             | Every employer, newest start date first                            |

Employer rows (`current_employers[]` and `history[]`): `company_name`, `company_nmls_id` (integer, nullable), `start_date` (date), `end_date` (date, `null` if current).

### `contacts` (loan officers, real estate agents)

Phone numbers, emails, and websites. Returns **`null` until you unlock the record** with the Contacts endpoints; unlocks are per user. `has_contact_data` on the base record tells you whether there is anything to unlock.

| Field           | Type  | Description                                                                |
| --------------- | ----- | -------------------------------------------------------------------------- |
| `phone_numbers` | array | `{type, value}` rows, e.g. `{"type": "mobile", "value": "(503) 555-0142"}` |
| `emails`        | array | `{type, value}` rows                                                       |
| `websites`      | array | `{type, value}` rows                                                       |

### `real_estate` (real estate agents and offices)

MLS transactions over the rolling 12 months, split three ways:

| Field      | Description                                                   |
| ---------- | ------------------------------------------------------------- |
| `combined` | Every transaction on either side                              |
| `listing`  | Transactions where the agent or office represented the seller |
| `buyer`    | Transactions where the agent or office represented the buyer  |

Each side:

| Field                                                           | Type              | Description                                                                        |
| --------------------------------------------------------------- | ----------------- | ---------------------------------------------------------------------------------- |
| `volume`                                                        | integer, nullable | Total sale amount, in dollars                                                      |
| `units`                                                         | integer, nullable | Number of transactions                                                             |
| `average`                                                       | integer, nullable | Average sale amount, in dollars                                                    |
| `average_monthly`                                               | integer, nullable | `volume` divided by the months in the window                                       |
| `city`, `property_type`, `senior_community`, `view_description` | arrays            | Breakdown rows: `label`, `sum`, `count`, `average`, `percent_sum`, `percent_count` |

### Real estate `mortgage` (real estate agents and offices)

The loans attached to the agent's or office's MLS transactions over the rolling 12 months, and who originated them.

| Field                   | Type              | Description                                                                           |
| ----------------------- | ----------------- | ------------------------------------------------------------------------------------- |
| `volume`                | integer, nullable | Total sale amount of matched transactions, in dollars                                 |
| `units`                 | integer, nullable | Number of matched transactions                                                        |
| `average`               | integer, nullable | Average sale amount, in dollars                                                       |
| `buyer_loan_officers`   | array             | Up to 10 loan officers who financed buyers on this agent's or office's buy-side deals |
| `listing_loan_officers` | array             | Up to 10 loan officers who financed buyers on listing-side deals                      |
| `buyer_offices`         | array             | Up to 10 mortgage companies on buy-side deals                                         |
| `listing_offices`       | array             | Up to 10 mortgage companies on listing-side deals                                     |

Loan officer rows: `first_name`, `last_name`, `loan_officer_id` (UUID, nullable), `company_name`, `count`, `sale_amount_sum`, `sale_amount_average`, `loan_amount_sum`, `loan_amount_average`, `percent_sum`, `percent_count`. Office rows have the same fields without the name and ID fields, except `company_name`.