Getting started
Getting started
- Get an API key (access token) by contacting support@modex.com or your Modex Account Executive.
- Send it as a bearer token on every request (see Authentication).
- Call
GET /v1/pingto confirm the API is reachable, then callGET /v1/resources/nmls/{nmls_id}with any NMLS ID. - Browse every endpoint in the API Reference, or download the OpenAPI spec to generate a client or import the API into your own tools.
Base URL
https://api.modex.com/v1
All requests and responses are JSON. Every response is JSON, including errors, regardless of the Accept header you send.
Authentication
Send your token as a bearer token on every request except Ping:
Tokens are issued per user. The token’s user must belong to an active Modex client.
What your token can see
- Active records only. Inactive records return 404, as if they didn’t exist.
- State restrictions. If your account is limited to certain states, loan officers, branches, real estate agents, and real estate offices outside those states return 404, and rosters leave them out. Companies and lender beneficiaries aren’t state-restricted.
- Feature access. Lender beneficiary data, real estate data, and contact access are enabled per account. When one isn’t enabled, its endpoints (and the
lender_beneficiariesinclude) return 403.
Rate limits
600 requests per minute per token. Every response carries:
Going over returns 429 rate_limit_error with Retry-After (seconds to wait) and X-RateLimit-Reset (Unix time the window resets).
IDs
Every record is identified by a Modex UUID. Detail, workforce, and roster endpoints take the UUID, not the NMLS ID. To start from an NMLS ID, call Resolve NMLS ID and follow the returned uri.
Includes
Detail and roster endpoints return a small base record. Add sections with include, comma-separated:
* 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.
Field-by-field definitions for every include are on Includes and field reference.
Data windows
mortgage,non_qm,lender_beneficiaries,census,real_estatecover a rolling 12 months: from the first day of the month 11 months before Modex’s latest data refresh, through the refresh date. They don’t take a timeframe parameter.- Workforce endpoints take a
timeframeparameter:3,6,9, or12(months),ytd, or a calendar year from2019to2025. Default is12. - Dollar amounts (
volume,sum,average,average_monthly) are whole US dollars.unitsandcountare numbers of transactions. - A record with no activity in the window returns
nulltotals and empty lists, not zeros. Treat that as “no production in the window.” - Dates are
YYYY-MM-DD. Timestamps are ISO 8601 with an offset.
Pagination
Roster and list endpoints are cursor-paginated:
Keep requesting next_page_url until next_cursor is null. Rosters are ordered by record ID, so pages are stable while you walk them.
Errors
Every error uses the same envelope:
details appears only on validation errors and maps each field to its messages.
Questions or issues: support@modex.com.
