The Compass Home Loans public API
A versioned, key-authenticated, rate-limited API for partners. Pull live rates, loan programs, and loan officers — and submit leads straight into our pipeline.
Base URL, auth, and limits
All public endpoints live under one versioned base. Reads are open; writes use an API key.
Base URL
Every endpoint is relative to:
https://compasshl.us/api/v1/publicAuthentication
Send your key in the x-api-key header on write endpoints. If your key was issued with a secret, also sign the raw body and send x-signature: sha256=<hex>.
# Node: sign the exact raw JSON body you send
const crypto = require("crypto");
const body = JSON.stringify({ intent: "buy", /* … */ });
const sig = crypto.createHmac("sha256", YOUR_SECRET)
.update(body, "utf8").digest("hex");
// send header: x-signature: sha256=<sig>Rate limits
Requests are limited per key (or client IP). Every response includes:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset
A 429 response adds Retry-After (seconds).
Response envelope
Endpoints return a consistent JSON envelope. Success is { ok: true, data: … } and failure is { ok: false, error: "…" }. A request id is echoed back in X-Request-Id.
Endpoints
Four endpoints today. The full machine-readable contract is in the OpenAPI document.
- GET
/ratesOpenToday's purchase and refinance rates with estimated monthly P&I on a $300,000 loan.
curl https://compasshl.us/api/v1/public/rates - GET
/programsOpenLoan programs by category (name, blurb, best-for audience).
curl https://compasshl.us/api/v1/public/programs - GET
/loan-officersOpenPublic loan-officer directory (name, NMLS, city, state, languages, specialties, rating).
curl https://compasshl.us/api/v1/public/loan-officers - POST
/leadsAPI key (+ HMAC)Submit a partner lead. Requires x-api-key; add x-signature when your key has a secret.
curl -X POST https://compasshl.us/api/v1/public/leads \ -H "Content-Type: application/json" \ -H "x-api-key: YOUR_KEY" \ -d '{ "intent": "buy", "contact": { "firstName": "Jane", "lastName": "Doe", "email": "jane@example.com", "phone": "303-555-0142" }, "consentTcpa": true, "idempotencyKey": "a-unique-string-16chars+" }'
Full schema: https://compasshl.us/api/v1/public/openapi.json
Interactive API explorer
Powered by the OpenAPI document below. Loads on demand from a CDN — if it's blocked, every endpoint is still documented above.
Ready when you are.
Start with a clear loan strategy and a team that keeps you informed through every step.
